[LLVMbugs] [Bug 15494] New: Unsupported asm: input constraint with a matching output constraint of incompatible type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 12 03:00:02 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15494

            Bug ID: 15494
           Summary: Unsupported asm: input constraint with a matching
                    output constraint of incompatible type
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kretz at kde.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following testcase compiles with GCC but not with clang:

struct X { float a; };
void f() {
    X tmp0;
    asm volatile("":"+r"(tmp0));
}

The error message is:
fatal error: error in backend: Unsupported asm: input constraint with a
matching output constraint of incompatible type!

-- 
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/20130312/10134c0b/attachment.html>


More information about the llvm-bugs mailing list