https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61231

--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> ---
Created attachment 32828
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32828&action=edit
Test case that errors out with invalid assembly on big-endian



[bergner@makalu-lp1 BUGS]$
/home/bergner/gcc/build/gcc-fsf-mainline-r210518/gcc/xg++
-B/home/bergner/gcc/build/gcc-fsf-mainline-r210518/gcc/ -c -O2 -m64 pr61231.ii 
[bergner@makalu-lp1 BUGS]$
/home/bergner/gcc/build/gcc-fsf-mainline-r210520/gcc/xg++
-B/home/bergner/gcc/build/gcc-fsf-mainline-r210520/gcc -c -O2 -m64 pr61231.ii 
/tmp/ccNkPBLm.s: Assembler messages:
/tmp/ccNkPBLm.s:65: Error: operand out of domain (2 is not a multiple of 4)

The problematic assembly is:

        lwa 3,2(31)

The problem is that the offset for the lwa instruction needs to be a multiple
of 4.  I'm not exactly sure that Vlad's patch is at fault here.  It could be
that it's just exposing a latent bug?

Reply via email to