diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-23 23:42:25 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-23 23:42:25 +0000 |
commit | a96da4773cb9d5867a2e59a7f3a67d24b9dd8447 (patch) | |
tree | f9b3334a6cc65c7d5b44f6498c7206d1a96dbf6b /clang/test/CodeGen/ms-inline-asm-64.c | |
parent | a62352448727b11b03b8d82022f1d77f7df416f4 (diff) | |
download | bcm5719-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.c | 9 |
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 +} |