Skip to content

scalar.rotri

← scalar dialect

Rotate bits right by the count modulo the integer width. One-bit rotation is identity.

Operation contract

Property Value
Semantic phase executable
Traits Pure, DistributionTransfer, SafeToSpeculate

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.rotri %lhs, %rhs : i32