http://sourceware.org/bugzilla/show_bug.cgi?id=14758

             Bug #: 14758
           Summary: ppc64 insns incorrectly assembled in 32-bit mode
           Product: binutils
           Version: 2.24 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sourceware.org
        ReportedBy: amo...@gmail.com
    Classification: Unclassified


See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619#c15

cat > lwa.s <<\EOF
 .text
 lwa 3,ext@l(4)
EOF
as -a32 -mppc64 -o lwa.o lwa.s
objdump -Many -dr lwa.o 
[snip]
   0:    e8 64 00 00     ld      r3,0(r4)
            2: R_PPC_ADDR16_LO    ext

So the assembler loses the bottom two bits of the insn, turning lwa into ld.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to