https://sourceware.org/bugzilla/show_bug.cgi?id=22699

            Bug ID: 22699
           Summary: sh*: Immediate signedness is incorrect in
                    and/or/tst/xor #imm
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: achurch+sourceware at achurch dot org
  Target Milestone: ---

When objdump disassembles SuperH (sh2, sh4, etc.) instructions of the form
"AND/OR/TST/XOR #imm,R0", it treats the immediate as a signed 8-bit value, but
in fact the value is unsigned.

To reproduce: echo 'tst #128,r0' |sh4-as -o foo.o; sh4-objdump -d foo.o

Expected output:
   0:   80 c8           tst     #128,r0

Actual output:
   0:   80 c8           tst     #-128,r0

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