[llvm] r230688 - [x86] Add an assert to catch if we ever try to blend	a v32i8 without
    Chandler Carruth 
    chandlerc at gmail.com
       
    Thu Feb 26 13:18:20 PST 2015
    
    
  
Author: chandlerc
Date: Thu Feb 26 15:18:20 2015
New Revision: 230688
URL: http://llvm.org/viewvc/llvm-project?rev=230688&view=rev
Log:
[x86] Add an assert to catch if we ever try to blend a v32i8 without
AVX2.
Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=230688&r1=230687&r2=230688&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Feb 26 15:18:20 2015
@@ -6175,6 +6175,9 @@ static SDValue lowerVectorShuffleAsBlend
     // 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;
 
    
    
More information about the llvm-commits
mailing list