summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_set-6.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_set-6.ll
parenta4091d34f3c05717eb5bb66a1257a0c1005e6dfa (diff)
downloadexternal_llvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.zip
external_llvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.tar.gz
external_llvm-0c0f83ff5d214a7f42e86ae62814526ba40a28cf.tar.bz2
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_set-6.ll')
-rw-r--r--test/CodeGen/X86/vec_set-6.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/vec_set-6.ll b/test/CodeGen/X86/vec_set-6.ll
index a28c544..1eeedf1 100644
--- a/test/CodeGen/X86/vec_set-6.ll
+++ b/test/CodeGen/X86/vec_set-6.ll
@@ -2,7 +2,7 @@
; RUN: grep unpcklps %t | count 1
; RUN: grep shufps %t | count 1
-define <4 x float> @test(float %a, float %b, float %c) {
+define <4 x float> @test(float %a, float %b, float %c) nounwind {
%tmp = insertelement <4 x float> zeroinitializer, float %a, i32 1 ; <<4 x float>> [#uses=1]
%tmp8 = insertelement <4 x float> %tmp, float %b, i32 2 ; <<4 x float>> [#uses=1]
%tmp10 = insertelement <4 x float> %tmp8, float %c, i32 3 ; <<4 x float>> [#uses=1]