X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Fvec_return.ll;h=f7fcd032cab3608725b4bd9f67ebbd65e6e45a64;hb=89095a7882dcb4520a5d5fc77fe6f0230292d6dd;hp=ed1a15c8607b4cfe123896bb0e37dea026e9b94b;hpb=db2d524d5f491d55ff1f10809636981cc7506a74;p=oota-llvm.git diff --git a/test/CodeGen/X86/vec_return.ll b/test/CodeGen/X86/vec_return.ll index ed1a15c8607..f7fcd032cab 100644 --- a/test/CodeGen/X86/vec_return.ll +++ b/test/CodeGen/X86/vec_return.ll @@ -1,12 +1,16 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | count 1 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | count 1 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shuf +; 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 > }