diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-02-15 21:58:41 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-02-15 21:58:41 +0000 |
commit | a6e0a0db0afcbdcd5b7c939869a39754332ad040 (patch) | |
tree | 770de253381853651e2a10929bae752a02a5bf1a | |
parent | c0dcc2d7beaeb6a80c0c7d69086b4c8894b662a0 (diff) |
Add test case for r175312.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175313 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/ms-inline-asm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 2283a50987..1a441b6447 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -348,3 +348,9 @@ int *t30() // CHECK: call void asm sideeffect inteldialect "lea edi, dword ptr $0", "*m,~{edi},~{dirflag},~{fpsr},~{flags}"([2 x i32]* @{{.*}}) nounwind // CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, edi", "=*m,~{dirflag},~{fpsr},~{flags}"(i32** %{{.*}}) nounwind } + +void t31(int a) { + __asm mov eax, dword ptr [a] +// CHECK: t31 +// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [$0]", "*m,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind +} |