Open Quuxplusone opened 13 years ago
Bugzilla Link | PR8984 |
Status | NEW |
Importance | P normal |
Reported by | Charles Davis (cdavis5x@gmail.com) |
Reported on | 2011-01-16 12:47:19 -0800 |
Last modified on | 2013-05-17 11:29:05 -0700 |
Version | trunk |
Hardware | PC All |
CC | arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, rafael@espindo.la |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Updating the test case as the original one seems (to me at least) to trigger a
real error now.
$ cat inline-asm.c
void t(){
asm("movl (%rax,4), %eax");
}
$ clang -c inline-asm.c
inline-asm.c:6:7: error: scale factor without index register is ignored
asm("movl (%rax,4), %eax");
^
<inline asm>:1:13: note: instantiated into assembly here
movl (%rax,4), %eax
^
1 error generated.
but in lib/Target/X86/AsmParser/X86AsmParser.cpp,
X86AsmParser::ParseMemOperand, this is defined as:
Warning(Loc, "scale factor without index register is ignored"));
and neither -Werror nor "fatal-assembler-warnings" are in use.