* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
@ 2013-10-06 16:40 ` bugzilla-daemon
2013-10-06 16:41 ` bugzilla-daemon
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-06 16:40 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 319 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #1 from klondike <klondike@klondike.es> ---
Created attachment 87200
--> https://bugs.freedesktop.org/attachment.cgi?id=87200&action=edit
64 bit unsigned add, causes the second
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1302 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
2013-10-06 16:40 ` [Bug 70199] " bugzilla-daemon
@ 2013-10-06 16:41 ` bugzilla-daemon
2013-10-12 21:57 ` bugzilla-daemon
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-06 16:41 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 340 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #2 from klondike <klondike@klondike.es> ---
Created attachment 87201
--> https://bugs.freedesktop.org/attachment.cgi?id=87201&action=edit
64 bit unsigned multiply, also generates the second isssue.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1365 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
2013-10-06 16:40 ` [Bug 70199] " bugzilla-daemon
2013-10-06 16:41 ` bugzilla-daemon
@ 2013-10-12 21:57 ` bugzilla-daemon
2013-10-12 22:03 ` bugzilla-daemon
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-12 21:57 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 871 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
Peter Wu <lekensteyn@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lekensteyn@gmail.com
--- Comment #3 from Peter Wu <lekensteyn@gmail.com> ---
Confirmed, both piglit tests scalar-arithmetic-long.cl and
scalar-arithmetic-ulong.cl tests show the following error (__udivdi3 for
ulong):
0x1cb47c0: i32 = ExternalSymbol'__divdi3'
Undefined function
UNREACHABLE executed at /src/llvm/lib/Target/R600/AMDGPUISelLowering.h:77!
Stack dump:
0. Running pass 'Function Pass Manager' on module 'radeon'.
1. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on
function '@div'
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2249 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (2 preceding siblings ...)
2013-10-12 21:57 ` bugzilla-daemon
@ 2013-10-12 22:03 ` bugzilla-daemon
2013-10-13 1:52 ` bugzilla-daemon
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-12 22:03 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #4 from Peter Wu <lekensteyn@gmail.com> ---
I forgot to mention my environment:
- HD6790
- Linux 3.11.0
- Mesa from git master, commit d7d539a1cb8dcf50cb7cd534e6ae7df3f42914c8
- LLVM from SVN trunk, rev 192532 (via git-svn)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (3 preceding siblings ...)
2013-10-12 22:03 ` bugzilla-daemon
@ 2013-10-13 1:52 ` bugzilla-daemon
2013-10-13 3:29 ` bugzilla-daemon
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-13 1:52 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 990 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #5 from klondike <klondike@klondike.es> ---
Created attachment 87543
--> https://bugs.freedesktop.org/attachment.cgi?id=87543&action=edit
Expand most of the 64 bit operations into 32 bit ones
Well I have been messing a little bit with the TargetLowering. I have managed
to get some operations to work (ANDs, ORs, XORs, UMULs, ADDS and SUBS amongst
others) by forcing llvm to expand them.
DIVs are a completely different world since they require more advanced
algorithms which I'm not familiar with or support for calls (plus porting gcc's
functions). The first one I don't have time to do (for now) the second one is
waaaaay out of my league.
The attached patch expands some of the 64 bit integer operations (but is still
a WIP since likely most if not all (exceptions being loads and stores) need to
be expanded and I haven't covered them all.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2087 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (4 preceding siblings ...)
2013-10-13 1:52 ` bugzilla-daemon
@ 2013-10-13 3:29 ` bugzilla-daemon
2013-10-13 9:15 ` bugzilla-daemon
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-13 3:29 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 333 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #6 from klondike <klondike@klondike.es> ---
Just a small note, the functions also seem to be defined in compiler-rt, we
could use clang to compile them and preload them as part of the runtime.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1149 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (5 preceding siblings ...)
2013-10-13 3:29 ` bugzilla-daemon
@ 2013-10-13 9:15 ` bugzilla-daemon
2013-10-13 12:41 ` bugzilla-daemon
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-13 9:15 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 262 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #7 from Peter Wu <lekensteyn@gmail.com> ---
I tried the the patch from comment 5, but the piglit tests have not improved.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1117 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (6 preceding siblings ...)
2013-10-13 9:15 ` bugzilla-daemon
@ 2013-10-13 12:41 ` bugzilla-daemon
2014-02-08 21:04 ` bugzilla-daemon
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2013-10-13 12:41 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 2582 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #8 from Peter Wu <lekensteyn@gmail.com> ---
Created attachment 87554
--> https://bugs.freedesktop.org/attachment.cgi?id=87554&action=edit
piglit test showing importance of parameter order
The order of parameters for long seems to matter. Output for the attached
piglit test (failing tests on top):
> Running kernel test: Arg0 = a + b
Using kernel add0
Setting kernel arguments...
Running the kernel...
Validating results...
Expecting 3 (0x3) with tolerance 0, but got 12884901888 (0x300000000)
Error at long[0]
Argument 0: FAIL
PIGLIT:subtest {'Arg0 = a + b' : 'fail'}
> Running kernel test: Arg1 = a + b
Using kernel add1
Setting kernel arguments...
Running the kernel...
Validating results...
Expecting 3 (0x3) with tolerance 0, but got 8589934593 (0x200000001)
Error at long[0]
Argument 1: FAIL
PIGLIT:subtest {'Arg1 = a + b' : 'fail'}
> Running kernel test: set arg0 to arg1
Using kernel set0
Setting kernel arguments...
Running the kernel...
Validating results...
Expecting 4 (0x4) with tolerance 0, but got 17179869184 (0x400000000)
Error at long[0]
Argument 0: FAIL
PIGLIT:subtest {'set arg0 to arg1' : 'fail'}
(Passing tests below:)
> Running kernel test: set arg1 to arg0
Using kernel set1
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 1: PASS
PIGLIT:subtest {'set arg1 to arg0' : 'pass'}
> Running kernel test: Arg2 = a + b
Using kernel add2
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 2: PASS
PIGLIT:subtest {'Arg2 = a + b' : 'pass'}
> Running kernel test: set arg0 to arg1 (indirected)
Using kernel setp0
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 0: PASS
PIGLIT:subtest {'set arg0 to arg1 (indirected)' : 'pass'}
> Running kernel test: set arg1 to arg0 (indirected)
Using kernel setp1
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 1: PASS
PIGLIT:subtest {'set arg1 to arg0 (indirected)' : 'pass'}
> Running kernel test: set arg0 to arg2 (with dummy pointer)
Using kernel set0_2
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 0: PASS
PIGLIT:subtest {'set arg0 to arg2 (with dummy pointer)' : 'pass'}
> Running kernel test: set arg2 to arg0 (with dummy pointer)
Using kernel set2_0
Setting kernel arguments...
Running the kernel...
Validating results...
Argument 2: PASS
PIGLIT:subtest {'set arg2 to arg0 (with dummy pointer)' : 'pass'}
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3866 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (7 preceding siblings ...)
2013-10-13 12:41 ` bugzilla-daemon
@ 2014-02-08 21:04 ` bugzilla-daemon
2015-12-21 12:53 ` bugzilla-daemon
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2014-02-08 21:04 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 382 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
Andreas Boll <andreas.boll.dev@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/DRI/R600 |Drivers/Gallium/r600
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1101 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (8 preceding siblings ...)
2014-02-08 21:04 ` bugzilla-daemon
@ 2015-12-21 12:53 ` bugzilla-daemon
2015-12-21 16:06 ` bugzilla-daemon
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-12-21 12:53 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 219 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #9 from Vedran Miletić <rivanvx@gmail.com> ---
Does this still occur?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1051 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (9 preceding siblings ...)
2015-12-21 12:53 ` bugzilla-daemon
@ 2015-12-21 16:06 ` bugzilla-daemon
2017-03-22 15:35 ` bugzilla-daemon
2017-03-22 20:34 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-12-21 16:06 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 347 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
--- Comment #10 from klondike <klondike@klondike.es> ---
(In reply to Vedran Miletić from comment #9)
> Does this still occur?
I no longer have access to such machines aas the one I used has died. Sorry :(
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1246 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (10 preceding siblings ...)
2015-12-21 16:06 ` bugzilla-daemon
@ 2017-03-22 15:35 ` bugzilla-daemon
2017-03-22 20:34 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2017-03-22 15:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1389 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
Vedran Miletić <vedran@miletic.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |99553
Resolution|--- |WORKSFORME
CC| |jan.vesely@rutgers.edu
Status|NEW |RESOLVED
--- Comment #11 from Vedran Miletić <vedran@miletic.net> ---
I am unable to recompile the the LLVM IR files due to the following error:
llc: kk.ll:9:59: error: use of undefined metadata '!1'
store i64 %div, i64 addrspace(1)* %out, align 8, !tbaa !1
^
However, compiling the piglit test with
$ clang -x cl -target r600-- -mcpu=cayman -Dcl_clang_storage_class_specifiers=1
-Xclang -mlink-bitcode-file -Xclang /usr/local/lib64/clc/cayman-r600--.bc
-I/usr/local/include/clc/ -include /usr/local/include/clc/clc.h kernel.cl
produces no crashes. If anyone can confirm this is still an issue, please
reopen.
Referenced Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=99553
[Bug 99553] Tracker bug for runnning OpenCL applications on Clover
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3584 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* [Bug 70199] clang+llvm from svn crashes when generating opencl code for 64 bit types
2013-10-06 16:40 [Bug 70199] New: clang+llvm from svn crashes when generating opencl code for 64 bit types bugzilla-daemon
` (11 preceding siblings ...)
2017-03-22 15:35 ` bugzilla-daemon
@ 2017-03-22 20:34 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2017-03-22 20:34 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 556 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=70199
Jan Vesely <jan.vesely@rutgers.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WORKSFORME |FIXED
--- Comment #12 from Jan Vesely <jan.vesely@rutgers.edu> ---
64 bit integer division was implemented back in 2014 (r207508, r207589, fixed
in r222073). should be in llvm as old 3.6
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2022 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread