http://sourceware.org/bugzilla/show_bug.cgi?id=14739
Bug #: 14739
Summary: Incorrect opcode generated when adding to sp on M32C
Product: binutils
Version: 2.22
Status: NEW
Severity: critical
Priority: P2
Component: binutils
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
m32c-elf-as 2.22 hosted on Windows XP.
The following source:
add.l #127,sp
add.l #128,sp
add.l #129,sp
assembles to:
0: b6 03 7f add.l:s #127,sp
3: b6 03 80 add.l:s #-128,sp
6: b6 03 81 add.l:s #-127,sp
So it looks like immediate values are always treated as 8-bit signed constants.
--
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
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils