[Mlir-commits] [mlir] [mlir][arith] Add `overflow<zero>` to `arith.remsi` (PR #237021)

Federico Bruzzone llvmlistbot at llvm.org
Fri Oct 30 03:58:15 PDT 2026


================
@@ -95,6 +95,65 @@ func.func @ops(f32, f32, i32, i32, f64) -> (f32, i32) {
 
 // -----
 
+// CHECK-LABEL: @remsi_default(
+// CHECK-SAME: %[[A:.*]]: i32, %[[B:.*]]: i32
+// CHECK-NEXT: %[[R:.*]] = llvm.srem %[[A]], %[[B]] : i32
+// CHECK-NEXT: return %[[R]] : i32
+func.func @remsi_default(%a: i32, %b: i32) -> i32 {
----------------
FedericoBruzzone wrote:

Is this redundant with respect to the above test?

https://github.com/llvm/llvm-project/pull/237021


More information about the Mlir-commits mailing list