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

           Summary: clang rejects input constraint 'er' in asm
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


This comes from linux-2.6.28.1:

$ cat /tmp/bug27.c 
typedef struct {
        long counter;
} atomic64_t;

inline void atomic64_sub(long i, atomic64_t *v)
{
        asm volatile("subq %1,%0"
                     : "=m" (v->counter)
                     : "er" (i), "m" (v->counter));
}
$ gcc -c -W -Wall  /tmp/bug27.
$ icc -c -Wall  /tmp/bug27.c
$ clang /tmp/bug27.c
/tmp/bug27.c:9:24: error: invalid input constraint 'er' in asm
                     : "er" (i), "m" (v->counter));
                       ^
1 diagnostic generated.
$


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