https://llvm.org/bugs/show_bug.cgi?id=31254
Bug ID: 31254
Summary: [inline asm] ambiguity between register ip and
variable name
Product: new-bugs
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The following code doesn't compile:
(compile with -fasm-blocks for this syntax)
void test(int *ip)
{
__asm {
mov eax, ip
}
}
The error is:
<source>:4:5: error: invalid operand for instruction
__asm {
^
<inline asm>:2:2: note: instantiated into assembly here
mov eax, ip
^
1 error generated.
when changing the function declaration to "void test()" it does compile.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs