fallback: translate: urem i8

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: urem i8 M
Occurrences:4 in 4 configs, 4 test files, 17 more counted only
Snippet from:inline-asm-zhinx-constraint-r.b41d405f96.ll (mutant of inline-asm-zhinx-constraint-r.ll) @constraint_half_abi_name via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx,+zvkb,+zbkb -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@gh = external global half
@G.5 = external global i8

; Function Attrs: nounwind
define half @constraint_half_abi_name(half %a) #0 {
  %B = urem i8 42, 127
  %1 = load half, ptr @gh, align 2
  %2 = tail call half asm "fadd.s $0, $1, $2", "={t0},{a0},{s0}"(half %a, half %1)
  store i8 %B, ptr @G.5, align 1
  ret half %2
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx,+zvkb,+zbkb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx,+zvkb,+zbkb -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
float-arith.a763006cc4.ll (mutant of float-arith.ll)fsqrt_s-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx,+zihintpause -O3
half-intrinsics.7fab3715cc.ll (mutant of half-intrinsics.ll)copysign_f16-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx -O0
inline-asm-zhinx-constraint-r.b41d405f96.ll (mutant of inline-asm-zhinx-constraint-r.ll)constraint_half_abi_name-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx,+zvkb,+zbkb -O0
rv64-stackmap.cf02731f54.ll (mutant of rv64-stackmap.ll)propertyWrite-mtriple=riscv64 -mattr=+zfinx,+a -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.