[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22699] New: sh*: Immediate signedness is incorrect in and/
From: |
achurch+sourceware at achurch dot org |
Subject: |
[Bug binutils/22699] New: sh*: Immediate signedness is incorrect in and/or/tst/xor #imm |
Date: |
Thu, 11 Jan 2018 06:10:53 +0000 |
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/22699] New: sh*: Immediate signedness is incorrect in and/or/tst/xor #imm,
achurch+sourceware at achurch dot org <=