[llvm-bugs] [Bug 36789] New: LLVM assembly parser fails for inline asm uselistorder directive

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 18 10:51:32 PDT 2018


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

            Bug ID: 36789
           Summary: LLVM assembly parser fails for inline asm uselistorder
                    directive
           Product: libraries
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM assembly language parser
          Assignee: unassignedbugs at nondot.org
          Reporter: dpfister at mail.de
                CC: dexonsmith at apple.com, llvm-bugs at lists.llvm.org

Created attachment 20088
  --> https://bugs.llvm.org/attachment.cgi?id=20088&action=edit
test case

$ cat test.ll
define void @foo() {
  %1 = call i32 asm "bswap $0", "=r,0"(i32 1)
  %2 = call i32 asm "bswap $0", "=r,0"(i32 2)
  ret void

; uselistorder directives
  uselistorder i32 (i32)* asm "bswap $0", "=r,0", { 1, 0 }
}

$ llc test.ll
llc: test.ll:7:27: error: invalid type for inline asm constraint string
  uselistorder i32 (i32)* asm "bswap $0", "=r,0", { 1, 0 }
                          ^

-- 
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/20180318/631392c9/attachment.html>


More information about the llvm-bugs mailing list