[LLVMbugs] [Bug 15211] New: Clang doesn't react to some constraints in inline asm instructions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 8 02:47:31 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15211
Bug ID: 15211
Summary: Clang doesn't react to some constraints in inline asm
instructions
Product: clang
Version: 3.2
Hardware: PC
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ili.filippov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
We can write simple test:
void f() {
register int in asm("ebx") = 0;
__asm("test %h0, %h0" : : "A"(in));
}
and watch clang's assembler for it.
We will see:
movl $0, -12(%rbp)
movl -12(%rbp), %ebx
## InlineAsm Start
test %bh, %bh
## InlineAsm End
But constraint "A" says, that input parameter must be placed in eax.
Other constraints have the same errors.
--
Software Engineer
Intel Compiler Team
Intel Corp.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130208/0c10483d/attachment.html>
More information about the llvm-bugs
mailing list