fallback: translate: udiv i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: udiv i16 M
Occurrences:4 in 4 configs, 4 test files, 31 more counted only
Snippet from:div.9953dc4b5c.ll (mutant of div.ll) @udiv16_constant 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:

; Function Attrs: nounwind
define i16 @udiv16_constant(i16 %a) #0 {
  %1 = udiv i16 %a, 5
  %B = sub i16 %a, %a
  store i16 %B, ptr poison, align 2
  ret i16 %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 i16 %a, 5' (in function: udiv16_constant)
warning: Instruction selection used fallback path for udiv16_constant

Occurrences (4):

InputFunctionConfig
div.9953dc4b5c.ll (mutant of div.ll)udiv16_constant-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0
float-convert-strict.d1b1e50cd1.ll (mutant of float-convert-strict.ll)fcvt_s_l-mtriple=riscv32 -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32 -mattr=+zfinx,+zba -O0
half-convert-strict.9f609c0727.ll (mutant of half-convert-strict.ll)fcvt_h_si-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zdinx,+zhinx -O0 -code-model=medium
reserved-regs.c7105262e5.ll (mutant of reserved-regs.ll)foo-mtriple=riscv64 -verify-machineinstrs -mattr=+reserve-x9,+zdinx -O2

Generated 2026-11-29 14:49 UTC.