https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70391
Bug ID: 70391
Summary: HSA back-end produces wrong alignment load/store
instructions
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: ---
Hello.
As reported here:
https://github.com/HSAFoundation/gccbrig/issues/6#issuecomment-197986345
current HSA back-end produces wrong alignment load/stores, for instance in
following example:
prog function &foo(align(4) arg_u8 %res[12])(align(4) arg_u8 %c[12]) <--- 'c'
has alignment just 4
{
align(4) private_u8 %__private_0[12];
align(4) private_u8 %__hsa_anonymous_2357[12];
ld_arg_align(8)_u64 $d0, [%c]; <---- alignment == 8
....
Martin