From 40ac46c3d7d3bbd691785a44e9d7b7530fb36e49 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 6 Apr 2012 14:38:25 +0000 Subject: [PATCH] Test case for PR12413 llvm-svn: 154172 --- test/CodeGen/X86/avx-shuffle.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/CodeGen/X86/avx-shuffle.ll b/test/CodeGen/X86/avx-shuffle.ll index 54f01e966d5..4885842ff7b 100644 --- a/test/CodeGen/X86/avx-shuffle.ll +++ b/test/CodeGen/X86/avx-shuffle.ll @@ -147,3 +147,18 @@ entry: %shuffle.i = shufflevector <4 x float> %1, <4 x float> , <8 x i32> ret <8 x float> %shuffle.i } + +; PR12413 +; CHECK: vpshufb +; CHECK: vpshufb +; CHECK: vpshufb +; CHECK: vpshufb +define <32 x i8> @shuf(<32 x i8> %inval1, <32 x i8> %inval2) { +entry: + %0 = shufflevector <32 x i8> %inval1, <32 x i8> %inval2, <32 x i32> + ret <32 x i8> %0 +}