[LLVMbugs] [Bug 1245] NEW: Invalid bytecode assembled

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 9 03:31:43 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1245

           Summary: Invalid bytecode assembled
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru


Consider the attached .ll file.

Do:
llvm-as foo.ll -o - | ./llvm-dif -o foo-cmp.ll

I have (x86-linux):

....
-       %ov35 = add i32 %ov16, -29              ; <i32> [#uses=1]
+       %ov35 = add i32 %ov16, -93              ; <i32> [#uses=1]
        store i32 %ov35, i32* %state
        %pcc8 = add i32 %pcv7, 1                ; <i32> [#uses=1]
        store i32 %tmp20, i32* %tmp20_c
@@ -321,7 +321,7 @@
        %ov7 = xor i32 %ov18_cc, 251            ; <i32> [#uses=3]
        %ov41 = xor i32 %ov7, 116               ; <i32> [#uses=1]
        %ov63 = sub i32 139, %ov7               ; <i32> [#uses=2]
-       %hvar68 = add i32 %ov63, -1             ; <i32> [#uses=1]
+       %hvar68 = add i32 %ov63, -9             ; <i32> [#uses=1]

and so on. Valgrind is quite. It's definitely an assembler bug, since output
binary code is broken.



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