[X86] Add intrinsics for reading and writing to the flags register
[oota-llvm.git] / test / CodeGen / X86 / 2009-06-03-Win64SpillXMM.ll
index 7dfb65a23f9de6e731c8ddd9726bf7a116b4f8f8..dfb98bb1ab39fcaf416c4bdf539384d161fd0411 100644 (file)
@@ -1,12 +1,10 @@
-; RUN: llvm-as < %s | llc -o %t1 -f
-; RUN: grep "subq.*\\\$72, \\\%rsp" %t1
-; RUN: grep "movaps    \\\%xmm8, 32\\\(\\\%rsp\\\)" %t1
-; RUN: grep "movaps    \\\%xmm7, 48\\\(\\\%rsp\\\)" %t1
-target triple = "x86_64-mingw64"
+; RUN: llc -mcpu=generic -mtriple=x86_64-mingw32 < %s | FileCheck %s
+; CHECK: subq    $40, %rsp
+; CHECK: movaps  %xmm8, 16(%rsp)
+; CHECK: movaps  %xmm7, (%rsp)
 
 define i32 @a() nounwind {
 entry:
-       tail call void asm sideeffect "", "~{xmm7},~{xmm8},~{dirflag},~{fpsr},~{flags}"() nounwind
-       ret i32 undef
+        tail call void asm sideeffect "", "~{xmm7},~{xmm8},~{dirflag},~{fpsr},~{flags}"() nounwind
+        ret i32 undef
 }
-