fallback: translate: sub i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sub i32 M
Occurrences:12 in 10 configs, 8 test files, 146 more counted only
Snippet from:short-forward-branch-opt-min-max.acc43bdc64.ll (mutant of short-forward-branch-opt-min-max.ll) @select_example_umin via llvm-extract
Config:-mtriple=riscv64 -mattr=+zbb,+zdinx -O1 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @select_example_umin(i32 %a, i32 %b, i1 zeroext %x, i32 %y) {
entry:
  %B = sub i32 %a, %y
  ret i32 %B
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i32 %a, %y' (in function: select_example_umin)
warning: Instruction selection used fallback path for select_example_umin

Occurrences (12):

InputFunctionConfig
codemodel-lowering.60f4cd0d6d.ll (mutant of codemodel-lowering.ll)lower_global-mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+zfinx,+zhinx -O2
fpenv-xlen.7b711eef1f.ll (mutant of fpenv-xlen.ll)func_set_fpenv-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
neg-abs.f52a184131.ll (mutant of neg-abs.ll)expanded_neg_abs32_unsigned-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2
rotl-rotr.0625697e49.ll (mutant of rotl-rotr.ll)rotr_32-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+m -O3
rotl-rotr.10ed78920e.ll (mutant of rotl-rotr.ll)rotr_64_zext-mtriple=riscv32 -verify-machineinstrs -mattr=+zicsr,+zdinx -O3
rotl-rotr.30c134dcf5.ll (mutant of rotl-rotr.ll)rotl_32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
rotl-rotr.30c134dcf5.ll (mutant of rotl-rotr.ll)rotr_64_zext-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
shadow-stack-frame-opts.ac802d9aa4.ll (mutant of shadow-stack-frame-opts.ll)caller_hw-mtriple=riscv32 -mattr=+zimop,+xqccmp,+zhinx -O2 -verify-machineinstrs
shift-amount-mod.94c1a4fcf5.ll (mutant of shift-amount-mod.ll)lshr_by_complemented_32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium
shift-amount-mod.94c1a4fcf5.ll (mutant of shift-amount-mod.ll)ashr_by_complemented_32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium
short-forward-branch-opt-min-max.acc43bdc64.ll (mutant of short-forward-branch-opt-min-max.ll)select_example_umin-mtriple=riscv64 -mattr=+zbb,+zdinx -O1 -verify-machineinstrs
xqcics.28878c3e80.ll (mutant of xqcics.ll)select_cc_example_ieqi_c3-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O1

Generated 2026-11-29 14:49 UTC.