We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f98861 commit abe1bc9Copy full SHA for abe1bc9
clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -1602,7 +1602,7 @@ LogicalResult cir::VecShuffleOp::verify() {
1602
const uint64_t maxValidIndex =
1603
getVec1().getType().getSize() + getVec2().getType().getSize() - 1;
1604
for (const auto &idxAttr : getIndices().getAsRange<cir::IntAttr>()) {
1605
- if (idxAttr.getUInt() > maxValidIndex)
+ if (idxAttr.getSInt() != -1 && idxAttr.getUInt() > maxValidIndex)
1606
return emitOpError() << ": index for __builtin_shufflevector must be "
1607
"less than the total number of vector elements";
1608
}
0 commit comments