summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-13 21:34:54 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-13 21:34:54 +0000
commit5bdd8ed74d102480abe96167e923cbe95439e042 (patch)
tree230e1258796149fabf4a06535e8491f36706b294 /clang/test
parent282edd7caabaf148f1349d1fc287a9b2e1bfb5fb (diff)
downloadbcm5719-llvm-5bdd8ed74d102480abe96167e923cbe95439e042.tar.gz
bcm5719-llvm-5bdd8ed74d102480abe96167e923cbe95439e042.zip
[ms-inline asm] Add test case for r175083.
llvm-svn: 175084
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/ms-inline-asm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c
index 05ea0e0b0af..2283a50987d 100644
--- a/clang/test/CodeGen/ms-inline-asm.c
+++ b/clang/test/CodeGen/ms-inline-asm.c
@@ -336,3 +336,15 @@ void t29() {
// CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, $$8", "=*m,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
// CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, $$4", "=*m,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
}
+
+int results[2] = {13, 37};
+int *t30()
+{
+ int *res;
+ __asm lea edi, results
+ __asm mov res, edi
+ return res;
+// CHECK: 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
+}
OpenPOWER on IntegriCloud