[Bug hsa/70234] New: HSA back-end produces invalid code for libgomp.c/examples-4/declare_target-5.c test case
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 15 10:24:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70234
Bug ID: 70234
Summary: HSA back-end produces invalid code for
libgomp.c/examples-4/declare_target-5.c test case
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: hsa
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jamborm at gcc dot gnu.org
Target Milestone: ---
Running:
$ ./xgcc -B. -fopenmp -c
/home/marxin/Programming/gcc2/libgomp/testsuite/libgomp.c/examples-4/declare_target-5.c
-O1 -fdump-tree-hsagen -fdump-tree-optimized
/home/marxin/Programming/gcc2/libgomp/testsuite/libgomp.c/examples-4/declare_target-5.c:
In function ‘accum._omp_fn.1.hsa’:
cc1: warning: could not emit HSAIL for the function [-Whsa]
cc1: note: support for HSA does not implement loading of expression {<unknown>,
<unknown>, <unknown>, <unknown>}
produces invalid code:
$ objcopy -O binary -j .brig declare_target-5.o z.brig && $HSAASM z.brig
-disassemble
Error in hsa_operand section, at offset 1536:
Identifier is not defined/declared or is not visible in the current scope
Martin
More information about the Gcc-bugs
mailing list