fallback: translate: fsub <N x float>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: fsub <N x float> M
Occurrences:3 in 3 configs, 3 test files, 8 more counted only
Snippet from:half-select-icmp.05e5ce65eb.ll (mutant of half-select-icmp.ll) @select_icmp_ugt via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <4 x float>

define half @select_icmp_ugt(i32 signext %a, i32 signext %b, half %c, half %d) {
  %B = fsub <4 x float> splat (float 1.401300e-45), splat (float 1.401300e-45)
  %1 = icmp ugt i32 %a, %b
  %2 = select i1 %1, half %c, half %d
  store <4 x float> %B, ptr @G.1, align 16
  ret half %2
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fsub: '  %B = fsub <4 x float> splat (float 1.401300e-45), splat (float 1.401300e-45)' (in function: select_icmp_ugt)
warning: Instruction selection used fallback path for select_icmp_ugt

Occurrences (3):

InputFunctionConfig
fp-fcanonicalize.36a6b366d6.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_v2f32_nnan-mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+zhinx -O3
half-select-icmp.05e5ce65eb.ll (mutant of half-select-icmp.ll)select_icmp_ugt-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O1
reserved-regs.e80ecf85ca.ll (mutant of reserved-regs.ll)foo-mtriple=riscv32 -verify-machineinstrs -mattr=+reserve-x7,+zfinx -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.