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

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

Snippet:

define <vscale x 16 x i8> @vrem_vv_nxv16i8(<vscale x 16 x i8> %va, <vscale x 16 x i8> %b, <vscale x 16 x i1> %m, i32 zeroext %evl) {
  %B = xor <vscale x 16 x i1> %m, splat (i1 true)
  %v = call <vscale x 16 x i8> @llvm.vp.srem.nxv16i8(<vscale x 16 x i8> %va, <vscale x 16 x i8> %b, <vscale x 16 x i1> %B, i32 %evl)
  ret <vscale x 16 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.srem.nxv16i8: '  %v = call <vscale x 16 x i8> @llvm.vp.srem.nxv16i8(<vscale x 16 x i8> %va, <vscale x 16 x i8> %b, <vscale x 16 x i1> %B, i32 %evl)' (in function: vrem_vv_nxv16i8)
warning: Instruction selection used fallback path for vrem_vv_nxv16i8

Occurrences (8):

InputFunctionConfig
vrem-vp.4437d8c035.ll (mutant of vrem-vp.ll)vrem_vv_nxv16i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbb,+zve32x -O0
vrem-vp.5aa435392d.ll (mutant of vrem-vp.ll)vrem_vv_nxv16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1
vrem-vp.5f4669835c.ll (mutant of vrem-vp.ll)vrem_vx_nxv16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1
vrem-vp.aaea45d721.ll (mutant of vrem-vp.ll)vrem_vx_nxv16i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve64d -O2
vrem-vp.c781596d82.ll (mutant of vrem-vp.ll)vrem_vx_nxv16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+c -O0
vrem-vp.dee15512f5.ll (mutant of vrem-vp.ll)vrem_vx_nxv16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vrem-vp.e818adf9fb.ll (mutant of vrem-vp.ll)vrem_vv_nxv16i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve64d -O2
vrem-vp.eac285b1de.ll (mutant of vrem-vp.ll)vrem_vx_nxv16i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve64d,+zvfh -O1

Generated 2026-11-29 14:49 UTC.