"Extract subvector must be from larger vector to smaller vector!");
if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
- uint64_t Idx = CSD->getZExtValue();
- assert((VT.getVectorNumElements() + Idx
+ assert((VT.getVectorNumElements() + CSD->getZExtValue()
<= N1.getValueType().getVectorNumElements())
&& "Extract subvector overflow!");
}
assert(N2.getValueType().getSimpleVT() <= N1.getValueType().getSimpleVT() &&
"Insert subvector must be from smaller vector to larger vector!");
if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
- uint64_t Idx = CSD->getZExtValue();
- assert((N2.getValueType().getVectorNumElements() + Idx
+ assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue()
<= VT.getVectorNumElements())
&& "Insert subvector overflow!");
}