@@ -2947,7 +2947,7 @@ void M68kTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
2947
2947
llvm_unreachable (" Unhandled constant constraint" );
2948
2948
}
2949
2949
2950
- Result = DAG.getTargetConstant (Val, SDLoc (Op), Op.getValueType ());
2950
+ Result = DAG.getSignedTargetConstant (Val, SDLoc (Op), Op.getValueType ());
2951
2951
break ;
2952
2952
}
2953
2953
default :
@@ -2983,7 +2983,7 @@ void M68kTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
2983
2983
llvm_unreachable (" Unhandled constant constraint" );
2984
2984
}
2985
2985
2986
- Result = DAG.getTargetConstant (Val, SDLoc (Op), Op.getValueType ());
2986
+ Result = DAG.getSignedTargetConstant (Val, SDLoc (Op), Op.getValueType ());
2987
2987
break ;
2988
2988
}
2989
2989
default :
@@ -3415,7 +3415,7 @@ SDValue M68kTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
3415
3415
Result = DAG.getNode (ISD::SUB, DL, VT, SP, Size); // Value
3416
3416
if (Align > StackAlign)
3417
3417
Result = DAG.getNode (ISD::AND, DL, VT, Result,
3418
- DAG.getConstant (-(uint64_t )Align, DL, VT));
3418
+ DAG.getSignedConstant (-(uint64_t )Align, DL, VT));
3419
3419
Chain = DAG.getCopyToReg (Chain, DL, SPReg, Result); // Output chain
3420
3420
}
3421
3421
@@ -3442,7 +3442,7 @@ SDValue M68kTargetLowering::LowerShiftLeftParts(SDValue Op,
3442
3442
3443
3443
SDValue Zero = DAG.getConstant (0 , DL, VT);
3444
3444
SDValue One = DAG.getConstant (1 , DL, VT);
3445
- SDValue MinusRegisterSize = DAG.getConstant (-32 , DL, VT);
3445
+ SDValue MinusRegisterSize = DAG.getSignedConstant (-32 , DL, VT);
3446
3446
SDValue RegisterSizeMinus1 = DAG.getConstant (32 - 1 , DL, VT);
3447
3447
SDValue ShamtMinusRegisterSize =
3448
3448
DAG.getNode (ISD::ADD, DL, VT, Shamt, MinusRegisterSize);
@@ -3494,7 +3494,7 @@ SDValue M68kTargetLowering::LowerShiftRightParts(SDValue Op, SelectionDAG &DAG,
3494
3494
3495
3495
SDValue Zero = DAG.getConstant (0 , DL, VT);
3496
3496
SDValue One = DAG.getConstant (1 , DL, VT);
3497
- SDValue MinusRegisterSize = DAG.getConstant (-32 , DL, VT);
3497
+ SDValue MinusRegisterSize = DAG.getSignedConstant (-32 , DL, VT);
3498
3498
SDValue RegisterSizeMinus1 = DAG.getConstant (32 - 1 , DL, VT);
3499
3499
SDValue ShamtMinusRegisterSize =
3500
3500
DAG.getNode (ISD::ADD, DL, VT, Shamt, MinusRegisterSize);
0 commit comments