[AVX512] add PSLLW and PSLLV Intrinsic
[oota-llvm.git] / test / CodeGen / X86 / vec_return.ll
index 106966fd52128f08439026b89abf9dcd231ec0c9..f7fcd032cab3608725b4bd9f67ebbd65e6e45a64 100644 (file)
@@ -1,12 +1,16 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 > %t
-; RUN: grep xorps %t | count 1
-; RUN: grep movaps %t | count 1
-; RUN: not grep shuf %t
+; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
 
+; Without any typed operations, always use the smaller xorps.
+; CHECK: test
+; CHECK: xorps
 define <2 x double> @test() {
        ret <2 x double> zeroinitializer
 }
 
+; Prefer a constant pool load here.
+; CHECK: test2
+; CHECK-NOT: shuf
+; CHECK: movaps {{.*}}{{CPI|__xmm@}}
 define <4 x i32> @test2() nounwind  {
        ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
 }