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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.srem.nxv4i8 M
Occurrences:3 in 3 configs, 1 test files, 6 more counted only
Snippet from:vrem-vp.dee15512f5.ll (mutant of vrem-vp.ll) @vrem_vx_nxv4i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 4 x i8> @vrem_vx_nxv4i8(<vscale x 4 x i8> %va, i8 %b, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %B = xor i16 -32768, -32768
  %elt.head = insertelement <vscale x 4 x i8> poison, i8 %b, i32 0
  %vb = shufflevector <vscale x 4 x i8> %elt.head, <vscale x 4 x i8> poison, <vscale x 4 x i32> zeroinitializer
  %v = call <vscale x 4 x i8> @llvm.vp.srem.nxv4i8(<vscale x 4 x i8> %va, <vscale x 4 x i8> %vb, <vscale x 4 x i1> %m, i32 %evl)
  store i16 %B, ptr poison, align 2
  ret <vscale x 4 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.srem.nxv4i8: '  %v = call <vscale x 4 x i8> @llvm.vp.srem.nxv4i8(<vscale x 4 x i8> %va, <vscale x 4 x i8> %vb, <vscale x 4 x i1> %m, i32 %evl)' (in function: vrem_vx_nxv4i8)
warning: Instruction selection used fallback path for vrem_vx_nxv4i8

Occurrences (3):

InputFunctionConfig
vrem-vp.4437d8c035.ll (mutant of vrem-vp.ll)vrem_vx_nxv4i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbb,+zve32x -O0
vrem-vp.dee15512f5.ll (mutant of vrem-vp.ll)vrem_vx_nxv4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vrem-vp.e487fbd56a.ll (mutant of vrem-vp.ll)vrem_vx_nxv4i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1

Generated 2026-11-29 14:49 UTC.