fallback: legalize: G_FMA <N x f16>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_FMA <N x f16>
Occurrences:58 in 4 configs, 1 test files
Snippet from:fixed-vectors-fp.ll @fma_v8f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @fma_v8f16(ptr %x, ptr %y, ptr %z) {
  %a = load <8 x half>, ptr %x, align 16
  %b = load <8 x half>, ptr %y, align 16
  %c = load <8 x half>, ptr %z, align 16
  %d = call <8 x half> @llvm.fma.v8f16(<8 x half> %a, <8 x half> %b, <8 x half> %c)
  store <8 x half> %d, ptr %x, align 16
  ret void
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x half> @llvm.fma.v8f16(<8 x half>, <8 x half>, <8 x half>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<8 x f16>) = G_FMA %3:_, %4:_, %5:_ (in function: fma_v8f16)
warning: Instruction selection used fallback path for fma_v8f16

Occurrences (58) (first 15):

InputFunctionConfig
fixed-vectors-fp.llfma_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_v16f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_vf_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_vf_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_fv_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfma_fv_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_vf_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_vf_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmuladd_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmuladd_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_fmuladd_v8f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-fp.llfmsub_fmuladd_v6f16-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.