On MS-style, the following snippet:
int eax;
__asm mov eax, ebx
should yield loading of ebx, into the location pointed by the variable eax
This patch sees to it.
Currently, a reg-to-reg move would have been invoked.
Test: D34740
Differential D34739
[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides coby on Jun 27 2017, 11:50 PM. Authored by
Details On MS-style, the following snippet: int eax; should yield loading of ebx, into the location pointed by the variable eax This patch sees to it. Currently, a reg-to-reg move would have been invoked. Test: D34740
Diff Detail
Event TimelineComment Actions I reverted this in rL308926 because it broke sanitizer-windows: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/14535 With this patch, clang would reject this code: namespace cl { } void f() { __asm { mov al, cl } } |