[Mlir-commits] [mlir] [mlir][arith] Fix overflow bug in arith::CeilDivSIOp::fold (PR #90947)
Mehdi Amini
llvmlistbot at llvm.org
Sun May 5 19:58:15 PDT 2024
================
@@ -478,6 +478,41 @@ func.func @simple_arith.ceildivsi() -> (i32, i32, i32, i32, i32) {
// -----
+// CHECK-LABEL: func @simple_arith.ceildivsi_overflow
+func.func @simple_arith.ceildivsi_overflow() -> (i8, i16, i32) {
+ // The negative values below are MININTs for the corresponding bit-width. The
+ // folder will try to negate them (so that the division operartes on two
----------------
joker-eph wrote:
```suggestion
// folder will try to negate them (so that the division operates on two
```
https://github.com/llvm/llvm-project/pull/90947
More information about the Mlir-commits
mailing list