summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_splat-2.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-05 00:30:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-05 00:30:36 +0000
commit0c0f83ff5d214a7f42e86ae62814526ba40a28cf (patch)
treeffb95313874d040042271f886170c24b80ebd693 /test/CodeGen/X86/vec_splat-2.ll
parenta4091d34f3c05717eb5bb66a1257a0c1005e6dfa (diff)
downloadllvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.tar.gz
llvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.tar.bz2
llvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.tar.xz
Favors pshufd over shufps when shuffling elements from one vector. pshufd is faster than shufps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_splat-2.ll')
-rw-r--r--test/CodeGen/X86/vec_splat-2.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/vec_splat-2.ll b/test/CodeGen/X86/vec_splat-2.ll
index 26e1b8839a..c6e3dddd5f 100644
--- a/test/CodeGen/X86/vec_splat-2.ll
+++ b/test/CodeGen/X86/vec_splat-2.ll
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufd | count 1
-define void @test(<2 x i64>* %P, i8 %x) {
+define void @test(<2 x i64>* %P, i8 %x) nounwind {
%tmp = insertelement <16 x i8> zeroinitializer, i8 %x, i32 0 ; <<16 x i8>> [#uses=1]
%tmp36 = insertelement <16 x i8> %tmp, i8 %x, i32 1 ; <<16 x i8>> [#uses=1]
%tmp38 = insertelement <16 x i8> %tmp36, i8 %x, i32 2 ; <<16 x i8>> [#uses=1]