Skip to content

scalar.fptosi

← scalar dialect

Floating-point to signed integer (rounds toward zero).

Operation contract

Property Value
Semantic phase executable
Traits Pure

Signature

Kind Name Type Cardinality Description
Operand input float required —
Result result integer required —

Examples

%result = scalar.fptosi %input : f32 to i32