File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
mlir/include/mlir/Dialect/Arith/IR Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -587,10 +587,11 @@ def Arith_CeilDivSIOp : Arith_IntBinaryOp<"ceildivsi",
587
587
let description = [{
588
588
Signed integer division. Rounds towards positive infinity, i.e. `7 / -2 = -3`.
589
589
590
- Divison by zero, or signed division overflow (minimum value divided by -1)
591
- is undefined behavior. When applied to `vector` and `tensor` values, the
592
- behavior is undefined if _any_ of its elements are divided by zero or has a
593
- signed division overflow.
590
+ Divison by zero, or signed division overflow (minimum value divided by -1)
591
+ is undefined behavior. While dividing minimum value by a value != -1 shouldn't
592
+ overflow, the current implementation treats it as such. When applied to `vector`
593
+ and `tensor` values, the behavior is undefined if _any_ of its elements are
594
+ divided by zero or has a signed division overflow.
594
595
595
596
Example:
596
597
You can’t perform that action at this time.
0 commit comments