fallback: translate: urem i1

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: urem i1 M
Occurrences:4 in 4 configs, 4 test files, 13 more counted only
Snippet from:half-select-fcmp.465c4998ea.ll (mutant of half-select-fcmp.ll) @select_fcmp_olt via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @select_fcmp_olt(half %a, half %b) #0 {
  %B = urem i1 true, true
  %1 = select i1 %B, half %a, half %b
  ret half %1
}

attributes #0 = { nounwind }

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: urem: '  %B = urem i1 true, true' (in function: select_fcmp_olt)
warning: Instruction selection used fallback path for select_fcmp_olt

Occurrences (4):

InputFunctionConfig
float-convert.b1a86fabfd.ll (mutant of float-convert.ll)fcvt_w_s-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=medium
half-arith.aa5aa6195d.ll (mutant of half-arith.ll)fnmadd_nsz-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
half-convert-strict.c75dc462f1.ll (mutant of half-convert-strict.ll)fcvt_wu_h_signext-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -mattr=+zhinxmin,+zba,+zvkb -O2
half-select-fcmp.465c4998ea.ll (mutant of half-select-fcmp.ll)select_fcmp_olt-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O1

Generated 2026-11-29 14:49 UTC.