[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:46 PST 2023


================
@@ -420,8 +434,10 @@ def Arith_DivSIOp : Arith_IntBinaryOp<"divsi", [ConditionallySpeculatable]> {
     Signed integer division. Rounds towards zero. Treats the leading bit as
     sign, i.e. `6 / -2 = -3`.
 
-    Note: the semantics of division by zero or signed division overflow (minimum
-    value divided by -1) is TBD; do NOT assume any specific behavior.
+    Divison by zero, or signed division overflow (minimum value divided by -1) 
+    is undefined behaviour. When applied to `vector` and `tensor` values, the 
----------------
kuhar wrote:

```suggestion
    is undefined behavior. When applied to `vector` and `tensor` values, the 
```

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


More information about the Mlir-commits mailing list