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

           Summary: Unsupported asm: input constraint with a matching output
                    constraint of incompatible type! in x86_64 mode
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: regression
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ cat t.c
int main() {
  unsigned _data = 42;
  __asm__("bswap   %0":"+r"(_data));
  /* asm from /usr/include/libkern/i386/_OSByteOrder.h */
}

$ clang -m64 t.c
LLVM ERROR: llvm: error: Unsupported asm: input constraint with a matching
output constraint of incompatible type!

I'm using LLVM r77969 on OS X 10.5.


--- Comment #1 from Benjamin Kramer <[email protected]>  2009-08-03 05:34:32 
---
Created an attachment (id=3279)
 --> (http://llvm.org/bugs/attachment.cgi?id=3279)
bitcode


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to