@@ -3883,7 +3883,7 @@ mlir::Value IntrinsicLibrary::genIeeeClass(mlir::Type resultType,
3883
3883
int pos = 3 + highSignificandSize;
3884
3884
mlir::Value index = builder.create <mlir::arith::AndIOp>(
3885
3885
loc, builder.create <mlir::arith::ShRUIOp>(loc, intVal, signShift),
3886
- createIntegerConstant (1 << pos));
3886
+ createIntegerConstant (1ULL << pos));
3887
3887
3888
3888
// [e] exponent != 0
3889
3889
mlir::Value exponent =
@@ -3895,7 +3895,7 @@ mlir::Value IntrinsicLibrary::genIeeeClass(mlir::Type resultType,
3895
3895
loc,
3896
3896
builder.create <mlir::arith::CmpIOp>(
3897
3897
loc, mlir::arith::CmpIPredicate::ne, exponent, zero),
3898
- createIntegerConstant (1 << --pos), zero));
3898
+ createIntegerConstant (1ULL << --pos), zero));
3899
3899
3900
3900
// [m] exponent == 1..1 (max exponent)
3901
3901
index = builder.create <mlir::arith::OrIOp>(
@@ -3904,7 +3904,7 @@ mlir::Value IntrinsicLibrary::genIeeeClass(mlir::Type resultType,
3904
3904
loc,
3905
3905
builder.create <mlir::arith::CmpIOp>(
3906
3906
loc, mlir::arith::CmpIPredicate::eq, exponent, exponentMask),
3907
- createIntegerConstant (1 << --pos), zero));
3907
+ createIntegerConstant (1ULL << --pos), zero));
3908
3908
3909
3909
// [l] low-order significand != 0
3910
3910
index = builder.create <mlir::arith::OrIOp>(
@@ -3916,7 +3916,7 @@ mlir::Value IntrinsicLibrary::genIeeeClass(mlir::Type resultType,
3916
3916
builder.create <mlir::arith::AndIOp>(loc, intVal,
3917
3917
lowSignificandMask),
3918
3918
zero),
3919
- createIntegerConstant (1 << --pos), zero));
3919
+ createIntegerConstant (1ULL << --pos), zero));
3920
3920
3921
3921
// [h] high-order significand (1 or 2 bits)
3922
3922
index = builder.create <mlir::arith::OrIOp>(
0 commit comments