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:
Mon P Wang 2008-12-09 07:27:39 +00:00
parent 0bed364307
commit 1cd46bbb1c

View File

@ -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;
}