Back to PBT run

input.mlir

func.func @native_0(%x: f32, %y: f32, %z: f32) -> f32 {
  %r0 = llvm.intr.fmuladd(%x, %y, %z) : (f32, f32, f32) -> f32
  %r1 = llvm.intr.fmuladd(%r0, %y, %z) : (f32, f32, f32) -> f32
  return %r1 : f32
}

llvm.func @envelope_1(%x: f64, %y: f64, %z: f64) -> f64
    attributes {passthrough = ["nofree", "norecurse", "nosync", ["min-legal-vector-width", "0"], ["no-trapping-math", "true"], ["stack-protector-buffer-size", "8"], ["target-cpu", "generic-rv64"]]} {
  %r0 = llvm.intr.fmuladd(%x, %y, %z) {fastmathFlags = #llvm.fastmath<nnan, contract>} : (f64, f64, f64) -> f64
  llvm.return %r0 : f64
}

llvm.func @mixed_2(%x: f64, %y: f64, %z: f64, %i: i32) -> f64 {
  %scaled = llvm.fmul %x, %y : f64
  %counted = llvm.add %i, %i : i32
  %r0 = llvm.intr.fmuladd(%x, %y, %z) : (f64, f64, f64) -> f64
  %r1 = llvm.intr.fmuladd(%r0, %y, %z) : (f64, f64, f64) -> f64
  %blended = llvm.fadd %r1, %scaled : f64
  llvm.return %blended : f64
}

llvm.func @typed_3(%x: f16, %y: f16, %z: f16) -> f16 {
  %r0 = llvm.intr.fmuladd(%x, %y, %z) {fastmathFlags = #llvm.fastmath<nnan, contract>} : (f16, f16, f16) -> f16
  %r1 = llvm.intr.fmuladd(%r0, %y, %z) {fastmathFlags = #llvm.fastmath<nnan, contract>} : (f16, f16, f16) -> f16
  llvm.return %r1 : f16
}