CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / sse-align-3.ll
index 6f96bba69e419c681de1a9ba196646cc355bd002..b6b0471e913f40c0861e6cea4f4a75335fcb6412 100644 (file)
@@ -1,12 +1,15 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | wc -l | grep 2
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; CHECK-NOT:     movapd
+; CHECK:     movaps
+; CHECK-NOT:     movapd
+; CHECK:     movaps
+; CHECK-NOT:     movap
 
-define void @foo(<4 x float>* %p, <4 x float> %x)
-{
+define void @foo(<4 x float>* %p, <4 x float> %x) nounwind {
   store <4 x float> %x, <4 x float>* %p
   ret void
 }
-define void @bar(<2 x double>* %p, <2 x double> %x)
-{
+define void @bar(<2 x double>* %p, <2 x double> %x) nounwind {
   store <2 x double> %x, <2 x double>* %p
   ret void
 }