[LLVMbugs] [Bug 11810] New: Inline asm: "undef" rejected for 'i' constraint

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 20 04:10:17 PST 2012


             Bug #: 11810
           Summary: Inline asm: "undef" rejected for 'i' constraint
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On the following testcase llc outputs:
  error: invalid operand for inline asm constraint 'i'
It accepts the asm if "undef" is replaced by "0".  I think undef should be

target datalayout =
target triple = "x86_64--linux-gnu"

define void @foo() {
  call void asm "# bar on $0", "i,~{fpsr},~{flags}"(i32 undef) nounwind
  ret void

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list