https://bugs.llvm.org/show_bug.cgi?id=32101
Bug ID: 32101
Summary: [inline asm][ms compatability] structure syntax
support
Product: new-bugs
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Consider this:
typedef struct foo {
float a;
double b;
} foo;
int main() {
foo x;
__asm {lea eax, x
};
}
microsoft allows the following syntaxes for structures:
fstp foo[eax].b (evaluates it to be eax+b_offset)
fstp x[eax].b (evaluates it to be x+eax+b_offset)
fstp x.b[eax] (evaluates it to be eax+b_offset)
fstp foo.b[eax] (evaluates it to be eax+b_offset)
fstp [eax].b (as long as b isn't ambiguous)
while llvm only accepts (ms also accept these):
fstp [eax]x.b (evaluates it to be eax+b_offset)
fstp [eax]foo.b (evaluates it to be eax+b_offset)
--
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