aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-inline-asm.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-24 17:48:01 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-24 17:48:01 +0000
commit1bed9b7678a9a7d91832926a69411e7fc5be2825 (patch)
tree9302dc96f60b0b2e558c431d0f146f7d8eed1e6c /test/CodeGen/ms-inline-asm.c
parent36a16498ff911a218f26c7955376bbe99ddb16df (diff)
[ms-inline asm] Add test cases for r166451.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-inline-asm.c')
-rw-r--r--test/CodeGen/ms-inline-asm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index 597d58148e..3c2025c07f 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -153,3 +153,13 @@ void t16() {
// CHECK: t16
// CHECK: call void asm sideeffect inteldialect "mov [eax], $0", "r,~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
}
+
+void t17() {
+ __asm _emit 0x4A
+ __asm _emit 0x43
+ __asm _emit 0x4B
+// CHECK: t17
+// CHECK: call void asm sideeffect inteldialect ".byte 0x4A", "~{dirflag},~{fpsr},~{flags}"() nounwind
+// CHECK: call void asm sideeffect inteldialect ".byte 0x43", "~{dirflag},~{fpsr},~{flags}"() nounwind
+// CHECK: call void asm sideeffect inteldialect ".byte 0x4B", "~{dirflag},~{fpsr},~{flags}"() nounwind
+}