[llvm-bugs] [Bug 32027] New: [inline asm] "=ir" constraints support - gcc compatiblity

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 21 05:11:18 PST 2017


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

            Bug ID: 32027
           Summary: [inline asm] "=ir" constraints support - gcc
                    compatiblity
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ziv.izhar at intel.com
                CC: llvm-bugs at lists.llvm.org

The following test is compiled with gcc and fails on llvm:
int main(void){
  int x=5 , z = 5;
  asm ("add %1, %0": "=ri" (x): "r" (z));
  return 0;
}

llvm fails on the "=ri" constraint.

gcc ignores the 'i' in the output since it makes no sense and treats it just
like "=r", while llvm just outputs an error.

same goes for "=iQ","=ia",etc..

-- 
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/20170221/23cbfe68/attachment.html>


More information about the llvm-bugs mailing list