aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-inline-asm.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-12 18:34:34 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-12 18:34:34 +0000
commit47fa9991c5ff7b2221801444c00006b7212fd305 (patch)
tree50e4359b52abea69f111ccbb2f10bb6001728288 /test/CodeGen/ms-inline-asm.c
parent808a1d0f5ad71b5a3a6c9445b67e149b7a82c011 (diff)
[ms-inline asm] Add a test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-inline-asm.c')
-rw-r--r--test/CodeGen/ms-inline-asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index a3758c67cf..9202614208 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -145,3 +145,9 @@ void t17(void) {
// CHECK: t17
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr [eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
}
+
+void t18(void) {
+ __asm mov dword ptr [eax], eax
+// CHECK: t18
+// CHECK: call void asm sideeffect inteldialect "mov dword ptr [eax], eax", "~{dirflag},~{fpsr},~{flags}"() nounwind
+}