fallback: translate: add i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: add i1 M
Occurrences:3 in 3 configs, 2 test files, 19 more counted only
Snippet from:zicond-fp-select-zfinx.408272f4f5.ll (mutant of zicond-fp-select-zfinx.ll) @select_f32_i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond,+zihintpause -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define float @select_f32_i1(i1 %cond, float %t, float %f) #0 {
entry:
  %B = add i1 false, true
  %sel = select i1 %B, float %t, float %f
  ret float %sel
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: add: '  %B = add i1 false, true' (in function: select_f32_i1)
warning: Instruction selection used fallback path for select_f32_i1

Occurrences (3):

InputFunctionConfig
half-convert-strict.9dada22070.ll (mutant of half-convert-strict.ll)fcvt_si_h-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinxmin,+zbs -O2
zicond-fp-select-zfinx.35ad2988a8.ll (mutant of zicond-fp-select-zfinx.ll)select_i1_half_0_add-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zicond,+zdinx -O2 -code-model=small
zicond-fp-select-zfinx.408272f4f5.ll (mutant of zicond-fp-select-zfinx.ll)select_f32_i1-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond,+zihintpause -O1

Generated 2026-11-29 14:49 UTC.