Skip to content

scalar.remf

scalar dialect

Floating-point remainder (C fmod semantics).

Operation contract

Property Value
Semantic phase executable
Traits Pure

Signature

Kind Name Type Cardinality Description
Operand lhs float required
Operand rhs float required
Result result float required
Attribute fastmath flags FastMathFlags optional

Verification constraints

  • SameType(lhs, rhs, result)

Examples

%result = scalar.remf %lhs, %rhs : f32