Skip to content

scalar.shrsi

scalar dialect

Arithmetic right shift (sign-extending).

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