diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-05 00:30:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-05 00:30:36 +0000 |
commit | 0c0f83ff5d214a7f42e86ae62814526ba40a28cf (patch) | |
tree | ffb95313874d040042271f886170c24b80ebd693 /test/CodeGen/X86/peep-vector-extract-concat.ll | |
parent | a4091d34f3c05717eb5bb66a1257a0c1005e6dfa (diff) | |
download | external_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/peep-vector-extract-concat.ll')
-rw-r--r-- | test/CodeGen/X86/peep-vector-extract-concat.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/peep-vector-extract-concat.ll b/test/CodeGen/X86/peep-vector-extract-concat.ll index 737da66..e6c88bb 100644 --- a/test/CodeGen/X86/peep-vector-extract-concat.ll +++ b/test/CodeGen/X86/peep-vector-extract-concat.ll @@ -1,6 +1,6 @@ -; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+sse2,-sse41 | grep {shufps \$3, %xmm0, %xmm0} +; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+sse2,-sse41 | grep {pshufd \$3, %xmm0, %xmm0} -define float @foo(<8 x float> %a) { +define float @foo(<8 x float> %a) nounwind { %c = extractelement <8 x float> %a, i32 3 ret float %c } |