mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
When emulating vselect using OR/AND/XOR make sure to bitcast the result back to the original type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -417,7 +417,8 @@ SDValue VectorLegalizer::ExpandVSELECT(SDValue Op) {
|
||||
|
||||
Op1 = DAG.getNode(ISD::AND, DL, VT, Op1, Mask);
|
||||
Op2 = DAG.getNode(ISD::AND, DL, VT, Op2, NotMask);
|
||||
return DAG.getNode(ISD::OR, DL, VT, Op1, Op2);
|
||||
SDValue Val = DAG.getNode(ISD::OR, DL, VT, Op1, Op2);
|
||||
return DAG.getNode(ISD::BITCAST, DL, Op.getValueType(), Val);
|
||||
}
|
||||
|
||||
SDValue VectorLegalizer::ExpandUINT_TO_FLOAT(SDValue Op) {
|
||||
|
Reference in New Issue
Block a user