From: Chandler Carruth Date: Thu, 26 Feb 2015 21:18:20 +0000 (+0000) Subject: [x86] Add an assert to catch if we ever try to blend a v32i8 without X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=34f88924e1f5b1434245deca9c533865aeb4ab9c;p=oota-llvm.git [x86] Add an assert to catch if we ever try to blend a v32i8 without AVX2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230688 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 1c8de4acdf9..469312507be 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -6175,6 +6175,9 @@ static SDValue lowerVectorShuffleAsBlend(SDLoc DL, MVT VT, SDValue V1, // FALLTHROUGH case MVT::v16i8: case MVT::v32i8: { + assert((VT.getSizeInBits() == 128 || Subtarget->hasAVX2()) && + "256-bit byte-blends require AVX2 support!"); + // Scale the blend by the number of bytes per element. int Scale = VT.getScalarSizeInBits() / 8;