fallback: translate: fdiv bfloat

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: fdiv bfloat M
Occurrences:3 in 3 configs, 3 test files, 12 more counted only
Snippet from:float-convert.41d0bdff4f.ll (mutant of float-convert.ll) @fcvt_wu_s via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global bfloat

; Function Attrs: nounwind
define i32 @fcvt_wu_s(float %a) #0 {
  %B = fdiv bfloat 1.000000e+00, +qnan
  %1 = fptoui float %a to i32
  store bfloat %B, ptr @G.2, align 2
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fdiv: '  %B = fdiv bfloat 1.000000e+00, +qnan' (in function: fcvt_wu_s)
warning: Instruction selection used fallback path for fcvt_wu_s

Occurrences (3):

InputFunctionConfig
double-mem.14b8e6e9f5.ll (mutant of double-mem.ll)fld_stack-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zbb -O2
float-convert.41d0bdff4f.ll (mutant of float-convert.ll)fcvt_wu_s-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O1
half-bitmanip-dagcombines.850031bb8a.ll (mutant of half-bitmanip-dagcombines.ll)fabs-mtriple=riscv64 -target-abi lp64 -verify-machineinstrs -mattr=+zhinxmin -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.