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

           Summary: clang doesn't understand "q"/"Q" constraint for __asm
           Product: clang
           Version: unspecified
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Created an attachment (id=1884)
 --> (http://llvm.org/bugs/attachment.cgi?id=1884)
builds with gcc, errors out with clang

FreeBSD's machine/endian.h on AMD64 contains the following definition:

#define __byte_swap_word_var(x) \
__extension__ ({ register __uint16_t __X = (x); \
   __asm ("xchgb %h0, %b0" : "+Q" (__X)); \
   __X; })

On i386, the definition is the same except with "+Q" replaced by "+q".

In both cases, clang exits with an error message complaining about the "+Q" or
"+q":  "error: invalid output constraint in asm"


-- 
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