Fix a minor regression from my dag combiner changes. One more place which needs to...
[oota-llvm.git] / test / CodeGen / X86 / vec_return.ll
index 2b2d9540314bdaa57db962f7d0cfcf2b6841b82f..66762b4a0604ead13e725c668d86f4d60a56b197 100644 (file)
@@ -1,5 +1,12 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah
+; RUN: llc < %s -march=x86 -mattr=+sse2 > %t
+; RUN: grep xorps %t | count 1
+; RUN: grep movaps %t | count 1
+; RUN: not grep shuf %t
 
-<2 x double> %test() {
-       ret <2 x double> <double 0.0, double 0.0>
+define <2 x double> @test() {
+       ret <2 x double> zeroinitializer
+}
+
+define <4 x i32> @test2() nounwind  {
+       ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
 }