fallback: translate: srem i8

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: srem i8 M
Occurrences:4 in 4 configs, 4 test files, 10 more counted only
Snippet from:float-convert.6b28790cee.ll (mutant of float-convert.ll) @fcvt_s_w_i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define float @fcvt_s_w_i8(i8 signext %a) #0 {
  %B = srem i8 %a, 42
  %1 = sitofp i8 %B to float
  ret float %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: srem: '  %B = srem i8 %a, 42' (in function: fcvt_s_w_i8)
warning: Instruction selection used fallback path for fcvt_s_w_i8

Occurrences (4):

InputFunctionConfig
alu8.a1b03664d5.ll (mutant of alu8.ll)srl-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zdinx -O0 -code-model=small
float-convert-strict.eeffb38953.ll (mutant of float-convert-strict.ll)fcvt_s_wu_i8-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64 -mattr=+zfinx,+c -O2
float-convert.6b28790cee.ll (mutant of float-convert.ll)fcvt_s_w_i8-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O3
short-forward-branch-opt-zibi.aa524d8378.ll (mutant of short-forward-branch-opt-zibi.ll)select_eq_imm32-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zibi,+zhinx -O0

Generated 2026-11-29 14:49 UTC.