mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Add missing vsetcc expansion for widening
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a48698cbc
commit
2eb13c347f
@ -7941,9 +7941,20 @@ SDValue SelectionDAGLegalize::WidenVectorOp(SDValue Op, MVT WidenVT) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ISD::VSETCC: {
|
||||
// Determine widen for the operand
|
||||
SDValue Tmp1 = Node->getOperand(0);
|
||||
MVT TmpVT = Tmp1.getValueType();
|
||||
assert(TmpVT.isVector() && "can not widen non vector type");
|
||||
MVT TmpEVT = TmpVT.getVectorElementType();
|
||||
MVT TmpWidenVT = MVT::getVectorVT(TmpEVT, NewNumElts);
|
||||
Tmp1 = WidenVectorOp(Tmp1, TmpWidenVT);
|
||||
SDValue Tmp2 = WidenVectorOp(Node->getOperand(1), TmpWidenVT);
|
||||
Result = DAG.getNode(Node->getOpcode(), WidenVT, Tmp1, Tmp2,
|
||||
Node->getOperand(2));
|
||||
break;
|
||||
}
|
||||
|
||||
case ISD::ATOMIC_CMP_SWAP_8:
|
||||
case ISD::ATOMIC_CMP_SWAP_16:
|
||||
case ISD::ATOMIC_CMP_SWAP_32:
|
||||
|
Loading…
x
Reference in New Issue
Block a user