@@ -4901,13 +4901,14 @@ SDValue AArch64TargetLowering::LowerVectorINT_TO_FP(SDValue Op,
49014901 if (IsStrict) {
49024902 SDValue Val = DAG.getNode(Op.getOpcode(), dl, {F32, MVT::Other},
49034903 {Op.getOperand(0), In});
4904- return DAG.getNode(
4905- ISD::STRICT_FP_ROUND, dl, {Op.getValueType(), MVT::Other},
4906- {Val.getValue(1), Val.getValue(0), DAG.getIntPtrConstant(0, dl)});
4904+ return DAG.getNode(ISD::STRICT_FP_ROUND, dl,
4905+ {Op.getValueType(), MVT::Other},
4906+ {Val.getValue(1), Val.getValue(0),
4907+ DAG.getIntPtrConstant(0, dl, /*isTarget=*/true)});
49074908 }
49084909 return DAG.getNode(ISD::FP_ROUND, dl, Op.getValueType(),
49094910 DAG.getNode(Op.getOpcode(), dl, F32, In),
4910- DAG.getIntPtrConstant(0, dl));
4911+ DAG.getIntPtrConstant(0, dl, /*isTarget=*/true ));
49114912 }
49124913
49134914 uint64_t VTSize = VT.getFixedSizeInBits();
@@ -4919,9 +4920,9 @@ SDValue AArch64TargetLowering::LowerVectorINT_TO_FP(SDValue Op,
49194920 if (IsStrict) {
49204921 In = DAG.getNode(Opc, dl, {CastVT, MVT::Other},
49214922 {Op.getOperand(0), In});
4922- return DAG.getNode(
4923- ISD::STRICT_FP_ROUND, dl, {VT, MVT::Other} ,
4924- {In.getValue(1), In.getValue(0), DAG.getIntPtrConstant(0, dl)});
4923+ return DAG.getNode(ISD::STRICT_FP_ROUND, dl, {VT, MVT::Other},
4924+ {In.getValue(1), In.getValue(0) ,
4925+ DAG.getIntPtrConstant(0, dl, /*isTarget=*/true )});
49254926 }
49264927 In = DAG.getNode(Opc, dl, CastVT, In);
49274928 return DAG.getNode(ISD::FP_ROUND, dl, VT, In,
@@ -4969,13 +4970,14 @@ SDValue AArch64TargetLowering::LowerINT_TO_FP(SDValue Op,
49694970 if (IsStrict) {
49704971 SDValue Val = DAG.getNode(Op.getOpcode(), dl, {PromoteVT, MVT::Other},
49714972 {Op.getOperand(0), SrcVal});
4972- return DAG.getNode(
4973- ISD::STRICT_FP_ROUND, dl, {Op.getValueType(), MVT::Other},
4974- {Val.getValue(1), Val.getValue(0), DAG.getIntPtrConstant(0, dl)});
4973+ return DAG.getNode(ISD::STRICT_FP_ROUND, dl,
4974+ {Op.getValueType(), MVT::Other},
4975+ {Val.getValue(1), Val.getValue(0),
4976+ DAG.getIntPtrConstant(0, dl, /*isTarget=*/true)});
49754977 }
49764978 return DAG.getNode(ISD::FP_ROUND, dl, Op.getValueType(),
49774979 DAG.getNode(Op.getOpcode(), dl, PromoteVT, SrcVal),
4978- DAG.getIntPtrConstant(0, dl));
4980+ DAG.getIntPtrConstant(0, dl, /*isTarget=*/true ));
49794981 };
49804982
49814983 if (Op.getValueType() == MVT::bf16) {
@@ -5067,12 +5069,13 @@ SDValue AArch64TargetLowering::LowerINT_TO_FP(SDValue Op,
50675069 DAG.getNode(ISD::OR, DL, MVT::i64, RoundedBits, NeedsAdjustment);
50685070 SDValue Adjusted = DAG.getNode(ISD::BITCAST, DL, MVT::f64, AdjustedBits);
50695071 return IsStrict
5070- ? DAG.getNode(ISD::STRICT_FP_ROUND, DL,
5071- {Op.getValueType(), MVT::Other},
5072- {Rounded.getValue(1), Adjusted,
5073- DAG.getIntPtrConstant(0, DL)})
5072+ ? DAG.getNode(
5073+ ISD::STRICT_FP_ROUND, DL,
5074+ {Op.getValueType(), MVT::Other},
5075+ {Rounded.getValue(1), Adjusted,
5076+ DAG.getIntPtrConstant(0, DL, /*isTarget=*/true)})
50745077 : DAG.getNode(ISD::FP_ROUND, DL, Op.getValueType(), Adjusted,
5075- DAG.getIntPtrConstant(0, DL, true));
5078+ DAG.getIntPtrConstant(0, DL, /*isTarget=*/ true));
50765079 }
50775080 }
50785081
@@ -7109,7 +7112,7 @@ static SDValue LowerFLDEXP(SDValue Op, SelectionDAG &DAG) {
71097112 DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, X.getValueType(), FScale, Zero);
71107113 if (X.getValueType() != XScalarTy)
71117114 Final = DAG.getNode(ISD::FP_ROUND, DL, XScalarTy, Final,
7112- DAG.getIntPtrConstant(1, SDLoc(Op)));
7115+ DAG.getIntPtrConstant(1, SDLoc(Op), /*isTarget=*/true ));
71137116 return Final;
71147117}
71157118
0 commit comments