scalar.divsi
← scalar dialect
Signed integer division rounding toward zero. The divisor must be nonzero and the quotient must be representable in the result type.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, DistributionTransfer |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
lhs |
integer |
required |
— |
| Operand |
rhs |
integer |
required |
— |
| Result |
result |
integer |
required |
— |
Verification constraints
SameType(lhs, rhs, result)
Examples
%result = scalar.divsi %lhs, %rhs : i32