@@ -2360,9 +2360,9 @@ SDValue MipsTargetLowering::lowerVAARG(SDValue Op, SelectionDAG &DAG) const {
23602360 ISD::ADD, DL, VAList.getValueType (), VAList,
23612361 DAG.getConstant (Align.value () - 1 , DL, VAList.getValueType ()));
23622362
2363- VAList = DAG.getNode (
2364- ISD::AND, DL, VAList. getValueType (), VAList ,
2365- DAG. getConstant (-( int64_t )Align. value (), DL, VAList.getValueType ()));
2363+ VAList = DAG.getNode (ISD::AND, DL, VAList. getValueType (), VAList,
2364+ DAG. getSignedConstant (-( int64_t )Align. value (), DL ,
2365+ VAList.getValueType ()));
23662366 }
23672367
23682368 // Increment the pointer, VAList, to the next vaarg.
@@ -4289,7 +4289,7 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
42894289 EVT Type = Op.getValueType ();
42904290 int64_t Val = C->getSExtValue ();
42914291 if (isInt<16 >(Val)) {
4292- Result = DAG.getTargetConstant (Val, DL, Type);
4292+ Result = DAG.getSignedTargetConstant (Val, DL, Type);
42934293 break ;
42944294 }
42954295 }
@@ -4319,7 +4319,7 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
43194319 EVT Type = Op.getValueType ();
43204320 int64_t Val = C->getSExtValue ();
43214321 if ((isInt<32 >(Val)) && ((Val & 0xffff ) == 0 )){
4322- Result = DAG.getTargetConstant (Val, DL, Type);
4322+ Result = DAG.getSignedTargetConstant (Val, DL, Type);
43234323 break ;
43244324 }
43254325 }
@@ -4329,7 +4329,7 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
43294329 EVT Type = Op.getValueType ();
43304330 int64_t Val = C->getSExtValue ();
43314331 if ((Val >= -65535 ) && (Val <= -1 )) {
4332- Result = DAG.getTargetConstant (Val, DL, Type);
4332+ Result = DAG.getSignedTargetConstant (Val, DL, Type);
43334333 break ;
43344334 }
43354335 }
@@ -4339,7 +4339,7 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
43394339 EVT Type = Op.getValueType ();
43404340 int64_t Val = C->getSExtValue ();
43414341 if ((isInt<15 >(Val))) {
4342- Result = DAG.getTargetConstant (Val, DL, Type);
4342+ Result = DAG.getSignedTargetConstant (Val, DL, Type);
43434343 break ;
43444344 }
43454345 }
0 commit comments