mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
In LegalizeOp, don't change the result type of CONVERT_RNDSAT when promoting
one of its operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bed364307
commit
1cd46bbb1c
@ -3876,8 +3876,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
||||
default: assert(0 && "Unknown cvt code!");
|
||||
case ISD::CVT_SF:
|
||||
case ISD::CVT_UF:
|
||||
break;
|
||||
case ISD::CVT_FF:
|
||||
break;
|
||||
case ISD::CVT_FS:
|
||||
case ISD::CVT_FU:
|
||||
case ISD::CVT_SS:
|
||||
@ -3904,7 +3904,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
||||
Result = PromoteOp(Node->getOperand(0));
|
||||
// For FP, make Op1 a i32
|
||||
|
||||
Result = DAG.getConvertRndSat(Result.getValueType(), Result,
|
||||
Result = DAG.getConvertRndSat(Op.getValueType(), Result,
|
||||
DTyOp, STyOp, RndOp, SatOp, CvtCode);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user