summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-15 21:58:41 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-15 21:58:41 +0000
commit77d56be3f02e1f96d26612aeae2c1088098b8039 (patch)
tree17023418d525ffb48078e19bb3d822b76d8141b5
parenta915bbf4a1cdd248e327a1c54c357dac8940492c (diff)
downloadbcm5719-llvm-77d56be3f02e1f96d26612aeae2c1088098b8039.tar.gz
bcm5719-llvm-77d56be3f02e1f96d26612aeae2c1088098b8039.zip
Add test case for r175312.
llvm-svn: 175313
-rw-r--r--clang/test/CodeGen/ms-inline-asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c
index 2283a50987d..1a441b64476 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
+}
OpenPOWER on IntegriCloud