@@ -2714,10 +2714,10 @@ SDValue NVPTXTargetLowering::LowerFROUND32(SDValue Op,
27142714
27152715 // RoundedA = (float) (int) ( A > 0 ? (A + 0.5f) : (A - 0.5f))
27162716 SDValue Bitcast = DAG.getNode (ISD::BITCAST, SL, MVT::i32 , A);
2717- const int SignBitMask = 0x80000000 ;
2717+ const unsigned SignBitMask = 0x80000000 ;
27182718 SDValue Sign = DAG.getNode (ISD::AND, SL, MVT::i32 , Bitcast,
27192719 DAG.getConstant (SignBitMask, SL, MVT::i32 ));
2720- const int PointFiveInBits = 0x3F000000 ;
2720+ const unsigned PointFiveInBits = 0x3F000000 ;
27212721 SDValue PointFiveWithSignRaw =
27222722 DAG.getNode (ISD::OR, SL, MVT::i32 , Sign,
27232723 DAG.getConstant (PointFiveInBits, SL, MVT::i32 ));
@@ -3031,9 +3031,9 @@ SDValue NVPTXTargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
30313031 ISD::ADD, DL, VAList.getValueType (), VAList,
30323032 DAG.getConstant (MA->value () - 1 , DL, VAList.getValueType ()));
30333033
3034- VAList = DAG.getNode (
3035- ISD::AND, DL, VAList. getValueType (), VAList ,
3036- DAG. getConstant (-( int64_t )MA-> value (), DL, VAList.getValueType ()));
3034+ VAList = DAG.getNode (ISD::AND, DL, VAList. getValueType (), VAList,
3035+ DAG. getSignedConstant (-( int64_t )MA-> value (), DL ,
3036+ VAList.getValueType ()));
30373037 }
30383038
30393039 // Increment the pointer, VAList, to the next vaarg
0 commit comments