[LLVMbugs] [Bug 886] NEW: asmparser doesn't catch invalid code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 25 12:12:57 PDT 2006


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

           Summary: asmparser doesn't catch invalid code
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM assembly language parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


This .ll file is buggy (%X isn't defined):

ulong %foo(ulong %x) { 
         %tmp.1 = load long* %X          ; <long> [#uses=1]
        %tmp.3 = cast long %tmp.1 to ubyte              ; <ubyte> [#uses=1]
        %tmp.4 = shl ulong %x, ubyte %tmp.3             ; <ulong> [#uses=1]
        ret ulong %tmp.4
}

When parsing it, I don't get a good error from the asmparser, I get assertion failures.

I could have sworn this used to be caught.

-Chris



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