@@ -2283,9 +2283,9 @@ HexagonTargetLowering::emitHvxShiftRightRnd(SDValue Val, unsigned Amt,
2283
2283
unsigned ShRight = Signed ? ISD::SRA : ISD::SRL;
2284
2284
2285
2285
SDValue Inp = DAG.getBitcast (IntTy, Val);
2286
- SDValue LowBits = DAG.getConstant ((1u << (Amt - 1 )) - 1 , dl, IntTy);
2286
+ SDValue LowBits = DAG.getConstant ((1ull << (Amt - 1 )) - 1 , dl, IntTy);
2287
2287
2288
- SDValue AmtP1 = DAG.getConstant (1u << Amt, dl, IntTy);
2288
+ SDValue AmtP1 = DAG.getConstant (1ull << Amt, dl, IntTy);
2289
2289
SDValue And = DAG.getNode (ISD::AND, dl, IntTy, {Inp, AmtP1});
2290
2290
SDValue Zero = getZero (dl, IntTy, DAG);
2291
2291
SDValue Bit = DAG.getSetCC (dl, PredTy, And, Zero, ISD::SETNE);
@@ -2426,13 +2426,13 @@ HexagonTargetLowering::ExpandHvxFpToInt(SDValue Op, SelectionDAG &DAG) const {
2426
2426
2427
2427
auto [ExpWidth, ExpBias, FracWidth] = getIEEEProperties (InpTy);
2428
2428
unsigned ElemWidth = 1 + ExpWidth + FracWidth;
2429
- assert (1u << (ExpWidth - 1 ) == 1 + ExpBias);
2429
+ assert (( 1ull << (ExpWidth - 1 )) == ( 1 + ExpBias) );
2430
2430
2431
2431
SDValue Inp = DAG.getBitcast (ResTy, Op0);
2432
2432
SDValue Zero = getZero (dl, ResTy, DAG);
2433
2433
SDValue Neg = DAG.getSetCC (dl, PredTy, Inp, Zero, ISD::SETLT);
2434
- SDValue M80 = DAG.getConstant (1u << (ElemWidth - 1 ), dl, ResTy);
2435
- SDValue M7F = DAG.getConstant ((1u << (ElemWidth - 1 )) - 1 , dl, ResTy);
2434
+ SDValue M80 = DAG.getConstant (1ull << (ElemWidth - 1 ), dl, ResTy);
2435
+ SDValue M7F = DAG.getConstant ((1ull << (ElemWidth - 1 )) - 1 , dl, ResTy);
2436
2436
SDValue One = DAG.getConstant (1 , dl, ResTy);
2437
2437
SDValue Exp00 = DAG.getNode (ISD::SHL, dl, ResTy, {Inp, One});
2438
2438
SDValue Exp01 = DAG.getNode (ISD::SUB, dl, ResTy, {Exp00, M80});
0 commit comments