fallback: translate: udiv i8

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: udiv i8 M
Occurrences:5 in 5 configs, 5 test files, 29 more counted only
Snippet from:div.9953dc4b5c.ll (mutant of div.ll) @udiv8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i8

; Function Attrs: nounwind
define i8 @udiv8(i8 %a, i8 %b) #0 {
  %1 = udiv i8 %a, %b
  %B = sub i8 %1, %1
  store i8 %B, ptr @G.2, align 1
  ret i8 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: udiv: '  %1 = udiv i8 %a, %b' (in function: udiv8)
warning: Instruction selection used fallback path for udiv8

Occurrences (5):

InputFunctionConfig
div.9953dc4b5c.ll (mutant of div.ll)udiv8-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0
double-imm.a0c0a444f0.ll (mutant of double-imm.ll)double_imm_op-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx -O1
half-fcmp-strict.c9af53426e.ll (mutant of half-fcmp-strict.ll)fcmps_ult-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinx,+zbkb -O0
imm.bd12215f73.ll (mutant of imm.ll)imm64_0x10000100000000-mtriple=riscv32 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zhinx,+zbkb -O3
split-urem-by-constant.f51b798857.ll (mutant of split-urem-by-constant.ll)test_urem_5-mtriple=riscv64 -mattr=+m,+zbb,+zdinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.