summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vshufp.ll
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2011-11-23 10:23:16 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2011-11-23 10:23:16 +0000
commit52a35a89e6c07d010d7abdba9646a56536331c36 (patch)
tree17741848e0741f7df3eda93e8ebfa710c1b018fa /test/CodeGen/X86/avx-vshufp.ll
parent521fc5bcd73489f604a0b3251247c5ef21b5a0a5 (diff)
downloadllvm-52a35a89e6c07d010d7abdba9646a56536331c36.tar.gz
llvm-52a35a89e6c07d010d7abdba9646a56536331c36.tar.bz2
llvm-52a35a89e6c07d010d7abdba9646a56536331c36.tar.xz
I added several lines in X86 code generator that allow to choose
VSHUFPS/VSHUFPD instructions while lowering VECTOR_SHUFFLE node. I check a commuted VSHUFP mask. The patch was reviewed by Bruno. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vshufp.ll')
-rw-r--r--test/CodeGen/X86/avx-vshufp.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vshufp.ll b/test/CodeGen/X86/avx-vshufp.ll
index f06548dc3d..7ec3a44e79 100644
--- a/test/CodeGen/X86/avx-vshufp.ll
+++ b/test/CodeGen/X86/avx-vshufp.ll
@@ -27,3 +27,17 @@ entry:
%shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 0, i32 5, i32 2, i32 undef>
ret <4 x double> %shuffle
}
+
+; CHECK: vshufps $-55, %ymm
+define <8 x float> @E(<8 x float> %a, <8 x float> %b) nounwind uwtable readnone ssp {
+entry:
+ %shuffle = shufflevector <8 x float> %a, <8 x float> %b, <8 x i32> <i32 9, i32 10, i32 0, i32 3, i32 13, i32 14, i32 4, i32 7>
+ ret <8 x float> %shuffle
+}
+
+; CHECK: vshufpd $8, %ymm
+define <4 x double> @F(<4 x double> %a, <4 x double> %b) nounwind uwtable readnone ssp {
+entry:
+ %shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 0, i32 4, i32 2, i32 7>
+ ret <4 x double> %shuffle
+}