aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-25 19:13:23 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-25 19:13:23 +0000
commit59c900304a390b11c4efcad2924bf6373979db73 (patch)
tree051e629d00e4113178c833a7b03647a6c20d7b7c
parent6980f17c78442a7db80d98902932ef047930284a (diff)
Add a front-end test case for r176036.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176038 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/ms-inline-asm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index 64b12aa0f8..7f130d697b 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -349,4 +349,12 @@ int *t30()
// CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, edi", "=*m,~{dirflag},~{fpsr},~{flags}"(i32** %{{.*}}) [[NUW]]
}
+void t31() {
+ __asm pushad
+ __asm popad
+// CHECK: t31
+// CHECK: call void asm sideeffect inteldialect "pushad", "~{dirflag},~{fpsr},~{flags}"() [[NUW]]
+// CHECK: call void asm sideeffect inteldialect "popad", "~{dirflag},~{fpsr},~{flags}"() [[NUW]]
+}
+
// CHECK: attributes [[NUW]] = { nounwind }