summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-26 18:04:45 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-26 18:04:45 +0000
commit0473d5429cdefb815988932f040f14564fbf1de1 (patch)
treecd628a72838140d7a5cf98bfd49ba707d36ecc82 /clang
parent11c42f2d2caa9b85885137fad1fefd3ac01155b7 (diff)
downloadbcm5719-llvm-0473d5429cdefb815988932f040f14564fbf1de1.tar.gz
bcm5719-llvm-0473d5429cdefb815988932f040f14564fbf1de1.zip
[ms-inline asm] Test case for r166790.
llvm-svn: 166791
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/ms-inline-asm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c
index cd0d05ebf64..7f43da891e9 100644
--- a/clang/test/CodeGen/ms-inline-asm.c
+++ b/clang/test/CodeGen/ms-inline-asm.c
@@ -193,3 +193,10 @@ int t19() {
// CHECK: t19
// CHECK: call void asm sideeffect inteldialect "lea ebx, foo\0A\09mov eax, [ebx].0\0A\09mov [ebx].4, ecx", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
}
+
+void t20() {
+ int foo;
+ __asm mov eax, TYPE foo
+// CHECK: t20
+// CHECK: call void asm sideeffect inteldialect "mov eax, $$4", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
+}
OpenPOWER on IntegriCloud