]> granicus.if.org Git - clang/commit
[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two...
authorCoby Tayree <coby.tayree@intel.com>
Mon, 24 Jul 2017 07:06:37 +0000 (07:06 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Mon, 24 Jul 2017 07:06:37 +0000 (07:06 +0000)
commit4c6428f58e52e60bdb05e1c4f63c6cc26ffd2f19
treef5e688168804e333e04c48aa4b9ab9cf2674756f
parent5122cbe743b607e9af3b17c25aef48d8185ff602
[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides

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.

llvm: D34739

Differential Revision: https://reviews.llvm.org/D34740

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308867 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/ms-inline-asm-var-name.c [new file with mode: 0644]