From: Nadav Rotem Date: Tue, 24 Apr 2012 19:45:28 +0000 (+0000) Subject: Add a testcase for 155440 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=34a13bb412d5d8ac634efa887fad08a7bfb26b2b;p=oota-llvm.git Add a testcase for 155440 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155475 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/avx2-shuffle.ll b/test/CodeGen/X86/avx2-shuffle.ll new file mode 100644 index 00000000000..218e10b361f --- /dev/null +++ b/test/CodeGen/X86/avx2-shuffle.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -mattr=+avx2 | FileCheck %s + +; Make sure that we don't match this shuffle using the vpblendw instruction. +; The mask for the vpblendw instruction needs to be identical for both halves +; of the YMM. + +; CHECK: blendw1 +; CHECK-NOT: vpblendw +; CHECK: ret +define <16 x i16> @blendw1(<16 x i16> %a, <16 x i16> %b) nounwind alwaysinline { + %t = shufflevector <16 x i16> %a, <16 x i16> %b, <16 x i32> + ret <16 x i16> %t +}