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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to