fallback: translate: fsub bfloat

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: fsub bfloat M
Occurrences:3 in 3 configs, 3 test files, 7 more counted only
Snippet from:inline-asm-mem-constraint.3d6fb60a9d.ll (mutant of inline-asm-mem-constraint.ll) @constraint_A_with_global_2 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zicond -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@eg = external global [4000 x i32], align 4
@G.3 = external global bfloat

; Function Attrs: nounwind
define void @constraint_A_with_global_2() #0 {
  %B = fsub bfloat +inf, +qnan
  call void asm "sw zero, $0", "=*A"(ptr elementtype(i32) getelementptr ([400000 x i32], ptr @eg, i32 0, i32 1))
  store bfloat %B, ptr @G.3, align 2
  ret void
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zicond -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zicond -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fsub: '  %B = fsub bfloat +inf, +qnan' (in function: constraint_A_with_global_2)
warning: Instruction selection used fallback path for constraint_A_with_global_2

Occurrences (3):

InputFunctionConfig
double-convert.6248701545.ll (mutant of double-convert.ll)fcvt_w_d_sat-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
half-round-conv-sat.36936bfe0f.ll (mutant of half-round-conv-sat.ll)test_ceil_si32-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx,+m -O1
inline-asm-mem-constraint.3d6fb60a9d.ll (mutant of inline-asm-mem-constraint.ll)constraint_A_with_global_2-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zicond -O0

Generated 2026-11-29 14:49 UTC.