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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.srem.nxv1i64 M
Occurrences:7 in 6 configs, 1 test files, 6 more counted only
Snippet from:vrem-vp.ea3b22c82c.ll (mutant of vrem-vp.ll) @vrem_vv_nxv1i64 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:

@G = external global i128

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) {
  %LGV = load i128, ptr @G, align 4
  %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)
  %B = add i128 %LGV, 170141183460469231731687303715884105727
  store i128 %B, ptr @G, align 4
  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 -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.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 (7):

InputFunctionConfig
vrem-vp.3068e8640b.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vrem-vp.3068e8640b.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vrem-vp.5b5a1c5bea.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vrem-vp.7d768ba8bb.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O0
vrem-vp.98bddcf531.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbkb,+d -O3
vrem-vp.ea3b22c82c.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vrem-vp.fa057dd98d.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 -code-model=medium

Generated 2026-11-29 14:49 UTC.