[LLVMbugs] [Bug 3385] New: clang rejects input constraint 'er' in asm
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Jan 24 02:53:32 PST 2009
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: unassignedclangbugs at nondot.org
ReportedBy: bagnara at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, bolzoni at cs.unipr.it
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.
More information about the llvm-bugs
mailing list