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

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

Snippet:

@G.4 = external global <8 x i8>

define <vscale x 1 x i64> @vrem_vv_nxv1i64(<vscale x 1 x i64> %va, <vscale x 1 x i64> %b, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %A = alloca <8 x i1>, align 1
  store <8 x i1> poison, ptr %A, align 1
  %LGV = load <8 x i8>, ptr @G.4, align 8
  %C = icmp eq <8 x i8> %LGV, splat (i8 1)
  %v = call <vscale x 1 x i64> @llvm.vp.srem.nxv1i64(<vscale x 1 x i64> %va, <vscale x 1 x i64> %b, <vscale x 1 x i1> %m, i32 %evl)
  store <8 x i1> %C, ptr %A, align 1
  ret <vscale x 1 x i64> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vrem-vp.3f2151013e.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vrem-vp.bfb77b03e2.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin -O2 -code-model=small
vrem-vp.fe5569fe6b.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1

Generated 2026-11-29 14:49 UTC.