[LLVMbugs] [Bug 24071] New: Invalid operand for inline asm constraint 'n'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 8 16:34:39 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24071

            Bug ID: 24071
           Summary: Invalid operand for inline asm constraint 'n'
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: mgrang at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu, sharparrow1 at yahoo.com
    Classification: Unclassified

Created attachment 14567
  --> https://llvm.org/bugs/attachment.cgi?id=14567&action=edit
testcase.ll

I have the following reduced testcase file:

> cat testcase.ll

define i32 @foo(i32 %a, i32 %b) {
entry:
  %0 = call i32 asm "", "=r,r,n,n"(i32 %a, i32 %b, i32 %b)
  ret i32 %0
}

When invoking llc on the above file I get this error:

> llc testcase.ll
error: invalid operand for inline asm constraint 'n'

> clang -v
clang version 3.7.0 (http://llvm.org/git/clang.git
93ea4643bdacc8e2fe229b69f06ac9fa96e03313) (http://llvm.org/git/llvm.git
080d7a819f4fd04883e6ac2e13617f5c8a14be6d)
Target: arm--linux-gnueabi
Thread model: posix


Note: There is bug on a similar issue:
https://llvm.org/bugs/show_bug.cgi?id=11657

However the asm in that bug was malformed. I am not sure whether the asm in my
testcase is malformed. Could someone please comment?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150708/ff9e40e4/attachment.html>


More information about the llvm-bugs mailing list