summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-11-29 07:49:05 +0000
committerCraig Topper <craig.topper@gmail.com>2011-11-29 07:49:05 +0000
commitc16db840bea5caf60b3f0cc81c92b90193ea494b (patch)
tree3613de0576c98f011170809bfb6f430e3dca08a3 /llvm/test
parent64404a3b2c62db01c3a4459a2c15c37496ed9f65 (diff)
downloadbcm5719-llvm-c16db840bea5caf60b3f0cc81c92b90193ea494b.tar.gz
bcm5719-llvm-c16db840bea5caf60b3f0cc81c92b90193ea494b.zip
Fix issues in shuffle decoding around VPERM* instructions. Fix shuffle decoding for VSHUFPS/D for 256-bit types. Add pattern matching for memory forms of VPERMILPS/VPERMILPD.
llvm-svn: 145390
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/avx-vpermil.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-vpermil.ll b/llvm/test/CodeGen/X86/avx-vpermil.ll
index 49b2f540a2c..3d521e7cea1 100644
--- a/llvm/test/CodeGen/X86/avx-vpermil.ll
+++ b/llvm/test/CodeGen/X86/avx-vpermil.ll
@@ -28,6 +28,14 @@ entry:
ret <4 x i64> %shuffle
}
+; CHECK: vpermilpd
+define <4 x i64> @funcQ(<4 x i64>* %a) nounwind uwtable readnone ssp {
+entry:
+ %a2 = load <4 x i64>* %a
+ %shuffle = shufflevector <4 x i64> %a2, <4 x i64> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 3>
+ ret <4 x i64> %shuffle
+}
+
; vpermil should match masks like this: <u,3,1,2,4,u,5,6>. Check that the
; target specific mask was correctly generated.
; CHECK: vpermilps $-100
OpenPOWER on IntegriCloud