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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.srem.nxv8i64 M
Occurrences:3 in 2 configs, 1 test files, 4 more counted only
Snippet from:vrem-vp.a4b80c11c7.ll (mutant of vrem-vp.ll) @vrem_vx_nxv8i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 8 x i64> @vrem_vx_nxv8i64(<vscale x 8 x i64> %va, i64 %b, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %elt.head = insertelement <vscale x 8 x i64> poison, i64 %b, i32 0
  %vb = shufflevector <vscale x 8 x i64> %elt.head, <vscale x 8 x i64> poison, <vscale x 8 x i32> zeroinitializer
  %v = call <vscale x 8 x i64> @llvm.vp.srem.nxv8i64(<vscale x 8 x i64> %va, <vscale x 8 x i64> %vb, <vscale x 8 x i1> %m, i32 %evl)
  store <vscale x 8 x i64> %elt.head, ptr poison, align 64
  ret <vscale x 8 x i64> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vrem-vp.4d4285f78b.ll (mutant of vrem-vp.ll)vrem_vx_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vrem-vp.7fe4c5a647.ll (mutant of vrem-vp.ll)vrem_vx_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O3
vrem-vp.a4b80c11c7.ll (mutant of vrem-vp.ll)vrem_vx_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.