aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/avx2-unpack.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-11-21 08:26:50 +0000
committerCraig Topper <craig.topper@gmail.com>2011-11-21 08:26:50 +0000
commit6fa583d78701390079db0cc4d944823af06023c6 (patch)
treef651bde86e820e2e95babc822e65505cb94a33ea /test/CodeGen/X86/avx2-unpack.ll
parent3b73312020156594e3b9da5424bff0d77070ff48 (diff)
downloadexternal_llvm-6fa583d78701390079db0cc4d944823af06023c6.zip
external_llvm-6fa583d78701390079db0cc4d944823af06023c6.tar.gz
external_llvm-6fa583d78701390079db0cc4d944823af06023c6.tar.bz2
Lowering for v32i8 to VPUNPCKLBW/VPUNPCKHBW when AVX2 is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx2-unpack.ll')
-rw-r--r--test/CodeGen/X86/avx2-unpack.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx2-unpack.ll b/test/CodeGen/X86/avx2-unpack.ll
index 51c0f16..aa97308 100644
--- a/test/CodeGen/X86/avx2-unpack.ll
+++ b/test/CodeGen/X86/avx2-unpack.ll
@@ -41,3 +41,17 @@ entry:
%shuffle.i = shufflevector <16 x i16> %src1, <16 x i16> %src2, <16 x i32> <i32 0, i32 16, i32 1, i32 17, i32 2, i32 18, i32 3, i32 19, i32 8, i32 24, i32 9, i32 25, i32 10, i32 26, i32 11, i32 27>
ret <16 x i16> %shuffle.i
}
+
+; CHECK: vpunpckhbw
+define <32 x i8> @unpackhbw(<32 x i8> %src1, <32 x i8> %src2) nounwind uwtable readnone ssp {
+entry:
+ %shuffle.i = shufflevector <32 x i8> %src1, <32 x i8> %src2, <32 x i32> <i32 8, i32 40, i32 9, i32 41, i32 10, i32 42, i32 11, i32 43, i32 12, i32 44, i32 13, i32 45, i32 14, i32 46, i32 15, i32 47, i32 24, i32 56, i32 25, i32 57, i32 26, i32 58, i32 27, i32 59, i32 28, i32 60, i32 29, i32 61, i32 30, i32 62, i32 31, i32 63>
+ ret <32 x i8> %shuffle.i
+}
+
+; CHECK: vpunpcklbw
+define <32 x i8> @unpacklbw(<32 x i8> %src1, <32 x i8> %src2) nounwind uwtable readnone ssp {
+entry:
+ %shuffle.i = shufflevector <32 x i8> %src1, <32 x i8> %src2, <32 x i32> <i32 0, i32 32, i32 1, i32 33, i32 2, i32 34, i32 3, i32 35, i32 4, i32 36, i32 5, i32 37, i32 6, i32 38, i32 7, i32 39, i32 16, i32 48, i32 17, i32 49, i32 18, i32 50, i32 19, i32 51, i32 20, i32 52, i32 21, i32 53, i32 22, i32 54, i32 23, i32 55>
+ ret <32 x i8> %shuffle.i
+}