Back to PBT run
input.mlir
module {
llvm.func @plain_0(%x: f32, %y: f32, %z: f32) -> f32 {
%m0 = llvm.fmul %x, %y : f32
%r0_0 = llvm.intr.fmuladd(%x, %y, %z) : (f32, f32, f32) -> f32 loc("fmuladd_0_0")
llvm.return %x : f32
}
func.func @native_1(%a: f32) -> f32 {
builtin.module {
llvm.func @inner_1(%x: f32, %y: f32, %z: f32) -> f32 {
%n1 = llvm.intr.fmuladd(%x, %y, %z) {fastmathFlags = #llvm.fastmath<nnan>} : (f32, f32, f32) -> f32 loc("fmuladd_nested_1")
llvm.return %x : f32
}
}
return %a : f32
}
llvm.func @resolved_2(%x: f64, %y: f64, %z: f64) -> f64 {
%p2 = math.fma %x, %y, %z : f64
%q2 = arith.mulf %x, %y : f64
%s2 = arith.addf %q2, %z : f64
llvm.return %x : f64
}
}