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

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


================
@@ -774,3 +774,43 @@ func.func @arith_truncf(%arg0: f64) -> f16 {
 
   return %truncd1 : f16
 }
+
+// -----
+
+// CHECK-LABEL: @remsi_default(
+// CHECK-SAME: %[[A:.*]]: i32, %[[B:.*]]: i32
+// CHECK-NEXT: %[[R:.*]] = emitc.rem %[[A]], %[[B]] : (i32, i32) -> i32
+// CHECK-NEXT: return %[[R]] : i32
+func.func @remsi_default(%a: i32, %b: i32) -> i32 {
+  %r = arith.remsi %a, %b : i32
----------------
FedericoBruzzone wrote:

This is already covered by other tests above. Do we want to keep it?

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


More information about the Mlir-commits mailing list