fallback: translate: trunc i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: trunc i32 M
Occurrences:3 in 3 configs, 3 test files, 8 more counted only
Snippet from:xqcics.28878c3e80.ll (mutant of xqcics.ll) @select_cc_example_eq_s3 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @select_cc_example_eq_s3(i32 %a, i32 %b, i32 %x, i32 %y) {
entry:
  %cond_trunc = trunc i32 %a to i1
  %B = sub i1 %cond_trunc, %cond_trunc
  %sel = select i1 %cond_trunc, i32 12, i32 25
  store i1 %B, ptr poison, align 1
  ret i32 %sel
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: trunc: '  %cond_trunc = trunc i32 %a to i1' (in function: select_cc_example_eq_s3)
warning: Instruction selection used fallback path for select_cc_example_eq_s3

Occurrences (3):

InputFunctionConfig
rvp-scalar.ede5e15a7f.ll (mutant of rvp-scalar.ll)mulsu_h00_sext_inreg_zexti16_commute-mtriple=riscv64 -mattr=+experimental-p,+zfinx -O1 -verify-machineinstrs
xqcicm.deb06e533e.ll (mutant of xqcicm.ll)select_example-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zdinx -O1
xqcics.28878c3e80.ll (mutant of xqcics.ll)select_cc_example_eq_s3-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O1

Generated 2026-11-29 14:49 UTC.