fallback: translate: udiv i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: udiv i32 M
Occurrences:7 in 7 configs, 7 test files, 69 more counted only
Snippet from:div-by-constant.eb9c08bfe8.ll (mutant of div-by-constant.ll) @udiv_constant_add via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause,+zhinx -O3 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

; Function Attrs: nounwind
define i32 @udiv_constant_add(i32 %a) #0 {
  %1 = udiv i32 %a, 7
  store i32 %1, ptr @G.2, align 4
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause,+zhinx -O3 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause,+zhinx -O3 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
alu64.5924335a24.ll (mutant of alu64.ll)slliw-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium
div-by-constant.eb9c08bfe8.ll (mutant of div-by-constant.ll)udiv_constant_add-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause,+zhinx -O3 -code-model=medium
float-convert.1d9630fa0c.ll (mutant of float-convert.ll)fcvt_wu_s-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx,+a -O1 -code-model=small
rv64zbb.e98c66f2ff.ll (mutant of rv64zbb.ll)bswap_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zhinx -O1
scmp.35f7c0323f.ll (mutant of scmp.ll)scmp.32.32-mtriple=riscv32 -mattr=+zfinx,+zhinx -O0 -verify-machineinstrs
udiv-const-optimization.6f2d1e32d4.ll (mutant of udiv-const-optimization.ll)udiv_by_21-mtriple=riscv64-unknown-linux-gnu -mattr=+m,+zhinx -O3 -verify-machineinstrs
xandesvdot-vd4dots.6226d7e5.5f62f97884.ll (mutant of xandesvdot-vd4dots.6226d7e5.ll)intrinsic_vd4dots_vv_nxv2i64_nxv8i16_nxv8i16-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zve64x,+xandesvdot,+zbkb,+zhinx,+zdinx,+zcb -O2

Generated 2026-11-29 14:49 UTC.