mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[x86] Add an assert to catch if we ever try to blend a v32i8 without
AVX2. llvm-svn: 230688
This commit is contained in:
parent
54fb8b9554
commit
edb1726466
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user