aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-inline-asm.c
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
commitda5c3b7fa13e35bdc6973ca2a314cbbfe26f71d1 (patch)
treee49c253c42d6ec283c21da49045e064fd59c95cf /test/CodeGen/ms-inline-asm.c
parent11ce5fe7d8dda29f3d093e5759a7476b140e3241 (diff)
[ms-inline asm] Test case for r166790.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-inline-asm.c')
-rw-r--r--test/CodeGen/ms-inline-asm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index cd0d05ebf6..7f43da891e 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/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
+}