From 6fa583d78701390079db0cc4d944823af06023c6 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 21 Nov 2011 08:26:50 +0000 Subject: 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 --- test/CodeGen/X86/avx2-unpack.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') 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> 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> + 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> + ret <32 x i8> %shuffle.i +} -- cgit v1.1