fallback: translate: icmp i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: icmp i8 M
Occurrences:24 in 24 configs, 23 test files, 282 more counted only
Snippet from:iabs.bbf6ef0368.ll (mutant of iabs.ll) @select_abs8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global half

define i8 @select_abs8(i8 %x) {
  %1 = icmp slt i8 %x, 0
  %2 = sub nsw i8 0, %x
  %3 = select i1 %1, i8 %2, i8 %x
  %B = fmul half 6.550400e+04, 1.000000e+00
  store half %B, ptr @G, align 2
  ret i8 %3
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: icmp: '  %1 = icmp slt i8 %x, 0' (in function: select_abs8)
warning: Instruction selection used fallback path for select_abs8

Occurrences (24) (first 15):

InputFunctionConfig
abds-neg.31e880b2c1.ll (mutant of abds-neg.ll)abd_cmp_i8-mtriple=riscv32 -mattr=+zbb,+zhinx -O3 -verify-machineinstrs
abdu.c7b186e483.ll (mutant of abdu.ll)abd_select_i8-mtriple=riscv32 -mattr=+zbb,+zdinx -O3 -code-model=small -verify-machineinstrs
add-imm.a91de83eaa.ll (mutant of add-imm.ll)add_negative_high_bound_accept-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
atomic-cmpxchg.465bb90065.ll (mutant of atomic-cmpxchg.ll)cmpxchg_i8_seq_cst_acquire-mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zacas,+zicsr,+zhinx -O2 -code-model=small
atomic-rmw.9b9ee4a9e0.ll (mutant of atomic-rmw.ll)atomicrmw_xor_i8_seq_cst-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O1
bswap-bitreverse.a9af59f790.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O3
calling-conv-ilp32e.de44717369.ll (mutant of calling-conv-ilp32e.ll)callee_large_scalar_ret-mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zhinx -O3
clmulh.165d663f4e.ll (mutant of clmulh.ll)clmulh_i4_bitreverse-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O0
commutable-zvdot4a8i.fcab579139.ll (mutant of commutable-zvdot4a8i.ll)commutable_vdot4asu_vv-mtriple=riscv32 -verify-machineinstrs -mattr=+zve64x,+experimental-zvdot4a8i,+a,+zdinx -O0
fpenv-xlen.c0a3fe9896.ll (mutant of fpenv-xlen.ll)func_reset_fpenv-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+a -O1
fround-optsize.c8c7406f0a.ll (mutant of fround-optsize.ll)round_f16_optsize-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinx,+c -O1
iabs.bbf6ef0368.ll (mutant of iabs.ll)select_abs8-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1
min-max.21b2ddb9e2.ll (mutant of min-max.ll)smax_i32_pos_constant_trailing_zeros-mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs
rv32zbb.e8aafdb67c.ll (mutant of rv32zbb.ll)maxu_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O2
rv64d-double-convert-strict.5a7e872323.ll (mutant of rv64d-double-convert-strict.ll)zext_fptosi-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -disable-strictnode-mutation -mattr=+zdinx -O0

Generated 2026-11-29 14:49 UTC.