summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll')
-rw-r--r--test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll b/test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll
new file mode 100644
index 000000000000..33d797297be8
--- /dev/null
+++ b/test/CodeGen/X86/2009-06-03-Win64SpillXMM.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -o %t1 -f
+; RUN: grep "subq.*\\\$40, \\\%rsp" %t1
+; RUN: grep "movaps \\\%xmm8, \\\(\\\%rsp\\\)" %t1
+; RUN: grep "movaps \\\%xmm7, 16\\\(\\\%rsp\\\)" %t1
+target triple = "x86_64-mingw64"
+
+define i32 @a() nounwind {
+entry:
+ tail call void asm sideeffect "", "~{xmm7},~{xmm8},~{dirflag},~{fpsr},~{flags}"() nounwind
+ ret i32 undef
+}
+