[LLVMbugs] [Bug 1245] llvm-as mis-reads some negative integers
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Mar 9 11:30:43 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1245
rspencer at x10sys.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|Invalid bytecode assembled |llvm-as mis-reads some
| |negative integers
------- Additional Comments From rspencer at x10sys.com 2007-03-09 13:30 -------
This problem only affected negative integers whose "next to last" significant
bit was set. In such cases the number of bits computed as needed by the value
was off-by-one as it did not account for the sign bit. Consequently, the number
was parsed correctly by the "fromString" constructor but truncated to the wrong
length which changed the value.
This simple patch fixes it:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070305/045759.html
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list