[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


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:

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