@@ -2714,10 +2714,10 @@ SDValue NVPTXTargetLowering::LowerFROUND32(SDValue Op,
2714
2714
2715
2715
// RoundedA = (float) (int) ( A > 0 ? (A + 0.5f) : (A - 0.5f))
2716
2716
SDValue Bitcast = DAG.getNode (ISD::BITCAST, SL, MVT::i32 , A);
2717
- const int SignBitMask = 0x80000000 ;
2717
+ const unsigned SignBitMask = 0x80000000 ;
2718
2718
SDValue Sign = DAG.getNode (ISD::AND, SL, MVT::i32 , Bitcast,
2719
2719
DAG.getConstant (SignBitMask, SL, MVT::i32 ));
2720
- const int PointFiveInBits = 0x3F000000 ;
2720
+ const unsigned PointFiveInBits = 0x3F000000 ;
2721
2721
SDValue PointFiveWithSignRaw =
2722
2722
DAG.getNode (ISD::OR, SL, MVT::i32 , Sign,
2723
2723
DAG.getConstant (PointFiveInBits, SL, MVT::i32 ));
@@ -3031,9 +3031,9 @@ SDValue NVPTXTargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
3031
3031
ISD::ADD, DL, VAList.getValueType (), VAList,
3032
3032
DAG.getConstant (MA->value () - 1 , DL, VAList.getValueType ()));
3033
3033
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 ()));
3037
3037
}
3038
3038
3039
3039
// Increment the pointer, VAList, to the next vaarg
0 commit comments