fallback: legalize: G_FDIV

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_FDIV
Occurrences:45 in 25 configs, 14 test files
Snippet from:half-arith.ll @fdiv_h via llvm-extract
Config:-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @fdiv_h(half %a, half %b) #0 {
  %1 = fdiv half %a, %b
  ret half %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(f16) = G_FDIV %0:_, %1:_ (in function: fdiv_h)
warning: Instruction selection used fallback path for fdiv_h

Occurrences (45) (first 15):

InputFunctionConfig
fp128.llfdiv-mtriple=riscv32
fp128.llfdiv-mtriple=riscv32 -mattr=+d
half-arith.llfdiv_h-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-arith.llfdiv_h-mtriple=riscv32 -verify-machineinstrs
half-arith.llfdiv_h-mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f
half-arith.llfdiv_h-mtriple=riscv64 -verify-machineinstrs
rv32i-rv64i-half.llhalf_test-mtriple=riscv32 -verify-machineinstrs
rv32i-rv64i-half.llhalf_test-mtriple=riscv64 -verify-machineinstrs
commutable.911aaad0f8.ll (mutant of commutable.ll)commutable_vwadd_vv-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fp-round-f16.5258cb47b2.ll (mutant of fp-round-f16.ll)round_f16-mtriple=riscv64 -mattr=+f,+d,+zfhmin -target-abi=lp64d
fp-round-f16.99fa24e092.ll (mutant of fp-round-f16.ll)round_f16-mtriple=riscv32 -mattr=+f,+d,+zfhmin -target-abi=ilp32d
half-convert.132c07cd85.ll (mutant of half-convert.ll)fcvt_w_s_sat_i16-mtriple=riscv32 -mattr=+f,+d,+zfhmin -target-abi=ilp32d
half-convert.3fa5021a81.ll (mutant of half-convert.ll)fcvt_w_s_sat_i16-mtriple=riscv64 -mattr=+f,+d,+zfhmin -target-abi=lp64d
half-convert.716e5025ea.ll (mutant of half-convert.ll)fcvt_w_s_sat_i16-mtriple=riscv64 -mattr=+f,+d -target-abi=lp64d
half-convert.cb554e3df3.ll (mutant of half-convert.ll)fcvt_w_s_sat_i16-mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32d

Generated 2026-11-29 14:49 UTC.