fallback: translate: load bfloat

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: load bfloat M
Occurrences:36 in 28 configs, 13 test files
Snippet from:half-isnan.222b916523.ll (mutant of half-isnan.ll) @half_is_nan via llvm-extract
Config:-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/d89Pz48K5 (llc-assertions-trunk, checked 2026-10-30 09:36 UTC): G falls back differently

Snippet:

@G = external global bfloat

; Function Attrs: nounwind
define zeroext i1 @half_is_nan(half %a) #0 {
  %LGV = load bfloat, ptr @G, align 2
  %C = fcmp one bfloat %LGV, 3.389530e+38
  ret i1 %C
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*08remark: <unknown>:0:0: unable to translate instruction: fcmp: ' %C = fcmp one bfloat %LGV, 3.389530e+38' (in function: half_is_nan)
warning: Instruction selection used fallback path for half_is_nan
SelectionDAG (control)-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32 -global-isel=008-

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: load: '  %LGV = load bfloat, ptr @G, align 2' (in function: half_is_nan)
warning: Instruction selection used fallback path for half_is_nan

Occurrences (36) (first 15):

InputFunctionConfig
double-fcmp-strict.83639f0599.ll (mutant of double-fcmp-strict.ll)fcmps_ogt-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
double-fcmp-strict.de8feaedca.ll (mutant of double-fcmp-strict.ll)fcmps_ogt-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
double-isnan.1c3b594a07.ll (mutant of double-isnan.ll)double_is_nan-mtriple=riscv32 -mattr=+zdinx -target-abi ilp32 -verify-machineinstrs
double-isnan.fc998cc8e3.ll (mutant of double-isnan.ll)double_is_nan-mtriple=riscv64 -mattr=+zdinx -target-abi lp64 -verify-machineinstrs
double-mem.426477e54d.ll (mutant of double-mem.ll)fld_fsd_global-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-mem.5dd8796a98.ll (mutant of double-mem.ll)fld_fsd_global-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-mem.7e0adf3193.ll (mutant of double-mem.ll)fld_fsd_global-mtriple=riscv32 -mattr=+zdinx,+zilsd -verify-machineinstrs -target-abi=ilp32
float-fcmp-strict.4b314eed4a.ll (mutant of float-fcmp-strict.ll)fcmps_ogt-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
float-fcmp-strict.d34a5e08d2.ll (mutant of float-fcmp-strict.ll)fcmps_ogt-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
float-isnan.387e60344b.ll (mutant of float-isnan.ll)float_is_nan-mtriple=riscv64 -mattr=+zfinx -target-abi lp64 -verify-machineinstrs
float-isnan.4a1cd3dbd3.ll (mutant of float-isnan.ll)float_is_nan-mtriple=riscv32 -mattr=+zfinx -target-abi ilp32 -verify-machineinstrs
half-fcmp-strict.233ee60686.ll (mutant of half-fcmp-strict.ll)fcmps_ogt-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation
half-fcmp-strict.25fd3a3a79.ll (mutant of half-fcmp-strict.ll)fcmps_ogt-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation
half-fcmp-strict.636821617b.ll (mutant of half-fcmp-strict.ll)fcmps_ogt-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation
half-fcmp-strict.f8ca993a94.ll (mutant of half-fcmp-strict.ll)fcmps_ogt-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation

Generated 2026-11-29 14:49 UTC.