From 77d56be3f02e1f96d26612aeae2c1088098b8039 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 15 Feb 2013 21:58:41 +0000 Subject: [PATCH] Add test case for r175312. llvm-svn: 175313 --- clang/test/CodeGen/ms-inline-asm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 2283a50..1a441b6 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/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 +} -- 2.7.4