[LLVMbugs] [Bug 1308] NEW: Inline asm causes assertion in llc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 4 15:27:33 PDT 2007


           Summary: Inline asm causes assertion in llc
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jackrobi at gmail.com

$ cat|llvm-as|llc >/dev/null
define void @stuff(i32, ...) {
        %foo = alloca i8*
        %bar = alloca i32*
        %tmp10.i.i57 = call i32 asm sideeffect "movl   $4,%edi", "={ax},0,i,m,m"( i32 0, i32 120, i8** %foo, 
i32** %bar )
        ret void
llc: /usr/local/code/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:233: unsigned int 
llvm::MachineOperand::getReg() const: Assertion `isRegister() && "This is not a register operand!"' 
llc((anonymous namespace)::PrintStackTrace()+0x19)[0x861ee09]

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