Back to PBT run

input.mlir

module {
func.func @native_0(%a: f32) -> f32 {
  builtin.module {
    llvm.func @inner_0(%x: f32, %y: f32, %z: f32) -> f32 {
      %n0 = llvm.intr.fmuladd(%x, %y, %z) {fastmathFlags = #llvm.fastmath<nnan>} : (f32, f32, f32) -> f32 loc("fmuladd_nested_0")
      llvm.return %x : f32
    }
  }
  return %a : f32
}

func.func @native_1(%a: f64) -> f64 {
  builtin.module {
    llvm.func @inner_1(%x: f64, %y: f64, %z: f64) -> f64 {
      %n1 = llvm.intr.fmuladd(%x, %y, %z) {fastmathFlags = #llvm.fastmath<nnan>} : (f64, f64, f64) -> f64 loc("fmuladd_nested_1")
      llvm.return %x : f64
    }
  }
  return %a : f64
}

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
}

}