https://llvm.org/bugs/show_bug.cgi?id=24499
Bug ID: 24499 Summary: inline assembler causes an assertion Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangb...@nondot.org Reporter: andrey.kules...@intel.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 14745 --> https://llvm.org/bugs/attachment.cgi?id=14745&action=edit Assertion log =============SMALL REPRODUCER================== void test4() { int t0 = 15; int r0, r1; __asm ("mov %2, %%eax\n\t" "add %%eax, %%eax\n\t" "mov %%eax, %2\n\t" "mov $42, %0" : "=a" (r0), "=m" (r1) : "1" (t0), "1" (t0)); } ============================================== Clang fails with an assertion, seems that llvm::InlineAsm is guilty in this case. The problem is 'illegal type for constraints' gcc in this case fails with: error: inconsistent operand constraints in an ‘asm’ Assertion log is attached. ---------------- Intel Software Engineer Andrey Kuleshov -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs