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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.srem.nxv1i8 M
Occurrences:6 in 6 configs, 1 test files, 2 more counted only
Snippet from:vrem-vp.26ece13789.ll (mutant of vrem-vp.ll) @vrem_vv_nxv1i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64
@G.1 = external global i1

define <vscale x 1 x i8> @vrem_vv_nxv1i8(<vscale x 1 x i8> %va, <vscale x 1 x i8> %b, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %LGV = load i64, ptr @G, align 4
  %C = icmp sge i64 %LGV, 0
  %v = call <vscale x 1 x i8> @llvm.vp.srem.nxv1i8(<vscale x 1 x i8> %va, <vscale x 1 x i8> %b, <vscale x 1 x i1> %m, i32 %evl)
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 1 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
vrem-vp.024c476878.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
vrem-vp.13435f8351.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vrem-vp.1ba9d9e1fa.ll (mutant of vrem-vp.ll)vrem_vx_nxv1i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vrem-vp.20cb7d727d.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb -O2 -code-model=small
vrem-vp.26ece13789.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium
vrem-vp.e7ff4d85c6.ll (mutant of vrem-vp.ll)vrem_vv_nxv1i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.