summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/avx-shuffle.ll
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-07 19:01:13 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-07 19:01:13 +0000
commite4ccfef809a1a47f1386bb2767b8c77e64644435 (patch)
tree7263b6bbf64a58b191abd551ff729246e1320d79 /test/CodeGen/X86/avx-shuffle.ll
parent8ddc5a192935728c15602a4c15501e35f116422d (diff)
downloadexternal_llvm-e4ccfef809a1a47f1386bb2767b8c77e64644435.zip
external_llvm-e4ccfef809a1a47f1386bb2767b8c77e64644435.tar.gz
external_llvm-e4ccfef809a1a47f1386bb2767b8c77e64644435.tar.bz2
X86: Prefer using VPSHUFD over VPERMIL because it has better throughput.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-shuffle.ll')
-rw-r--r--test/CodeGen/X86/avx-shuffle.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/avx-shuffle.ll b/test/CodeGen/X86/avx-shuffle.ll
index 904f048..65685a3 100644
--- a/test/CodeGen/X86/avx-shuffle.ll
+++ b/test/CodeGen/X86/avx-shuffle.ll
@@ -6,7 +6,7 @@ define <4 x float> @test1(<4 x float> %a) nounwind {
ret <4 x float> %b
; CHECK: test1:
; CHECK: vshufps
-; CHECK: vpermilps
+; CHECK: vpshufd
}
; rdar://10538417
@@ -106,7 +106,7 @@ define <4 x float> @test11(<4 x float> %a) nounwind {
define <4 x float> @test12(<4 x float>* %a) nounwind {
; CHECK: test12
-; CHECK: vpermilps $27, (
+; CHECK: vpshufd
%tmp0 = load <4 x float>* %a
%tmp1 = shufflevector <4 x float> %tmp0, <4 x float> undef, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
ret <4 x float> %tmp1