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

             Bug #: 13843
           Summary: Negative immediate for vmov fails on 32-bit host
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sourceware.org
        ReportedBy: a...@sourceware.org
    Classification: Unclassified
              Host: i686-pc-linux-gnu armv7l-unknown-linux-gnu
            Target: arm


These two inputs are supposed to give the same output:

        vmov.i64        d21, #-65536  @ di
        vmov.i64        d21, #0xffffffffffff0000  @ di

But the actual disassembly looks like this:

   0:   efc0 5e3c       vmov.i64        d21, #0x00000000ffff0000
   4:   ffc7 5e3c       vmov.i64        d21, #0xffffffffffff0000

The negative decimal constant has been truncated to 32 bits.

This bug appears to only occur on 32-bit hosts. (I've reproduced it on i686 and
armv7a, but not on x86_64.)

This may be related to bug 12715, although that's already been fixed.

-- 
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