[Mlir-commits] [mlir] [mlir][arith] doc updates for ub semantics, and int representations (PR #72932)

Jakub Kuderski llvmlistbot at llvm.org
Tue Nov 21 07:05:48 PST 2023


================
@@ -567,8 +589,9 @@ def Arith_RemSIOp : Arith_TotalIntBinaryOp<"remsi"> {
     Signed integer division remainder. Treats the leading bit as sign, i.e. `6 %
     -2 = 0`.
 
-    Note: the semantics of division by zero is TBD; do NOT assume any specific
-    behavior.
+    Division by zero is undefined behaviour. When applied to `vector` and 
----------------
kuhar wrote:

```suggestion
    Division by zero is undefined behavior. When applied to `vector` and 
```

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


More information about the Mlir-commits mailing list