Skip to content

Commit 62639eb

Browse files
committed
Make one of the constants a with_bounds to prevent folding
1 parent 0ec5b1c commit 62639eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/test/Dialect/Arith/int-range-interface.mlir

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ func.func @ceil_divsi(%arg0 : index) -> i1 {
253253
// CHECK: %[[ret:.*]] = arith.constant true
254254
// CHECK: return %[[ret]]
255255
func.func @ceil_divsi_intmin_bug_115293() -> i1 {
256+
%intMin_i64 = test.with_bounds { smin = -9223372036854775808 : si64, smax = -9223372036854775808 : si64, umin = 9223372036854775808 : ui64, umax = 9223372036854775808 : ui64 } : i64
257+
256258
%cIntMin_i64 = arith.constant -9223372036854775808 : i64
257259
%cDenom_i64 = arith.constant 1189465982 : i64
258260
%cRes_i64 = arith.constant 7754212542 : i64

0 commit comments

Comments
 (0)