fallback: translate: call llvm.vp.srem.nxv1i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.srem.nxv1i32 M
Occurrences:7 in 7 configs, 1 test files, 3 more counted only
Snippet from:vrem-vp.48628e96a5.ll (mutant of vrem-vp.ll) @vrem_vx_nxv1i32_unmasked via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+f -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 1 x i32> @vrem_vx_nxv1i32_unmasked(<vscale x 1 x i32> %va, i32 %b, i32 zeroext %evl) {
  %elt.head = insertelement <vscale x 1 x i32> poison, i32 %b, i32 0
  %vb = shufflevector <vscale x 1 x i32> %elt.head, <vscale x 1 x i32> %elt.head, <vscale x 1 x i32> zeroinitializer
  %v = call <vscale x 1 x i32> @llvm.vp.srem.nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %vb, <vscale x 1 x i1> splat (i1 true), i32 %evl)
  ret <vscale x 1 x i32> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 1 x i32> @llvm.vp.srem.nxv1i32(<vscale x 1 x i32>, <vscale x 1 x i32>, <vscale x 1 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.srem.nxv1i32: '  %v = call <vscale x 1 x i32> @llvm.vp.srem.nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %vb, <vscale x 1 x i1> splat (i1 true), i32 %evl)' (in function: vrem_vx_nxv1i32_unmasked)
warning: Instruction selection used fallback path for vrem_vx_nxv1i32_unmasked

Occurrences (7):

InputFunctionConfig
vrem-vp.20cb7d727d.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb -O2 -code-model=small
vrem-vp.2658870309.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb,+zve32x -O3
vrem-vp.3555a826ce.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zcb -O0
vrem-vp.45029f7090.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicond,+m -O3
vrem-vp.46fd63567e.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vrem-vp.48628e96a5.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb,+f -O0
vrem-vp.b6389270fc.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.