fallback: translate: urem <N x i16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: urem <N x i16> M
Occurrences:3 in 2 configs, 1 test files, 4 more counted only
Snippet from:urem-vector-lkk.32cc06fac6.ll (mutant of urem-vector-lkk.ll) @fold_urem_vec_1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x i1>

; Function Attrs: nounwind
define <4 x i16> @fold_urem_vec_1(<4 x i16> %x) #0 {
  %1 = urem <4 x i16> %x, <i16 95, i16 124, i16 98, i16 1003>
  %C = icmp ugt <4 x i16> %x, %1
  store <4 x i1> %C, ptr @G, align 1
  ret <4 x i16> %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: urem: '  %1 = urem <4 x i16> %x, <i16 95, i16 124, i16 98, i16 1003>' (in function: fold_urem_vec_1)
warning: Instruction selection used fallback path for fold_urem_vec_1

Occurrences (3):

InputFunctionConfig
urem-vector-lkk.32cc06fac6.ll (mutant of urem-vector-lkk.ll)fold_urem_vec_1-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
urem-vector-lkk.5a68e5e4a5.ll (mutant of urem-vector-lkk.ll)fold_urem_vec_1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O3
urem-vector-lkk.5a68e5e4a5.ll (mutant of urem-vector-lkk.ll)combine_urem_udiv-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O3

Generated 2026-11-29 14:49 UTC.