summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_return.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-12 06:45:40 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-12 06:45:40 +0000
commitdb2d524d5f491d55ff1f10809636981cc7506a74 (patch)
tree5393aadd8a821d50b5728ae5b6eecd87c4f4d80b /test/CodeGen/X86/vec_return.ll
parent621deadee8967ab3a56c5478bb810b7200c48edb (diff)
downloadllvm-db2d524d5f491d55ff1f10809636981cc7506a74.tar.gz
llvm-db2d524d5f491d55ff1f10809636981cc7506a74.tar.bz2
llvm-db2d524d5f491d55ff1f10809636981cc7506a74.tar.xz
Lower a build_vector with all constants into a constpool load unless it can be done with a move to low part.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_return.ll')
-rw-r--r--test/CodeGen/X86/vec_return.ll13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/CodeGen/X86/vec_return.ll b/test/CodeGen/X86/vec_return.ll
index 2b2d954031..ed1a15c860 100644
--- a/test/CodeGen/X86/vec_return.ll
+++ b/test/CodeGen/X86/vec_return.ll
@@ -1,5 +1,12 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah
+; 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
-<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 >
}