summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ms-inline-asm-64.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-23 23:42:25 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-23 23:42:25 +0000
commita96da4773cb9d5867a2e59a7f3a67d24b9dd8447 (patch)
treef9b3334a6cc65c7d5b44f6498c7206d1a96dbf6b /clang/test/CodeGen/ms-inline-asm-64.c
parenta62352448727b11b03b8d82022f1d77f7df416f4 (diff)
downloadbcm5719-llvm-a96da4773cb9d5867a2e59a7f3a67d24b9dd8447.tar.gz
bcm5719-llvm-a96da4773cb9d5867a2e59a7f3a67d24b9dd8447.zip
[ms-inline asm] Test case for r166526.
llvm-svn: 166527
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm-64.c')
-rw-r--r--clang/test/CodeGen/ms-inline-asm-64.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm-64.c b/clang/test/CodeGen/ms-inline-asm-64.c
new file mode 100644
index 00000000000..6bf3e209d16
--- /dev/null
+++ b/clang/test/CodeGen/ms-inline-asm-64.c
@@ -0,0 +1,9 @@
+// REQUIRES: x86-64-registered-target
+// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -O0 -fms-extensions -fenable-experimental-ms-inline-asm -w -emit-llvm -o - | FileCheck %s
+
+void t1() {
+ int var = 10;
+ __asm mov rax, offset var ; rax = address of myvar
+// CHECK: t1
+// CHECK: call void asm sideeffect inteldialect "mov rax, $0", "r,~{rax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
+}
OpenPOWER on IntegriCloud