scalar.fmaf
← scalar dialect
Fused multiply-add: a*b + c with single rounding. AFN permits a target-native fused form with weaker subnormal handling.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, SafeToSpeculate |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
a |
float |
required |
— |
| Operand |
b |
float |
required |
— |
| Operand |
c |
float |
required |
— |
| Result |
result |
float |
required |
— |
| Attribute |
fastmath |
flags FastMathFlags |
optional |
— |
Verification constraints
SameType(a, b, c, result)
Examples
%result = scalar.fmaf %a, %b, %c : f32