fallback: translate: udiv i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: udiv i16 M
Occurrences:5 in 4 configs, 5 test files, 14 more counted only
Snippet from:fastcc-without-f-reg.4601df9b8d.ll (mutant of fastcc-without-f-reg.ll) @caller_float via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define float @caller_float(float %x) #0 {
entry:
  %B = udiv i16 32767, 256
  %0 = tail call fastcc float @f(float %x)
  store i16 %B, ptr poison, align 2
  ret float %0
}

; Function Attrs: nounwind
declare dso_local fastcc float @f(float) #0

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: udiv: '  %B = udiv i16 32767, 256' (in function: caller_float)
warning: Instruction selection used fallback path for caller_float

Occurrences (5):

InputFunctionConfig
abdu-neg.d424af0460.ll (mutant of abdu-neg.ll)abd_ext_i16_undef-mtriple=riscv32 -mattr=+zbb,+zvbb,+zdinx -O1 -verify-machineinstrs
clmul.603c65aae1.ll (mutant of clmul.ll)clmul_i4_noimplicitfloat-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
fastcc-without-f-reg.4601df9b8d.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
memset-inline.95094028b1.ll (mutant of memset-inline.ll)memset_16-mtriple=riscv64 -mattr=+m,+zhinx -O1 -verify-machineinstrs
udiv-const-optimization.6f2d1e32d4.ll (mutant of udiv-const-optimization.ll)udiv_by_3-mtriple=riscv64-unknown-linux-gnu -mattr=+m,+zhinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.