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

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

Snippet:

@G.1 = external global i1

define <vscale x 32 x i8> @vrem_vv_nxv32i8(<vscale x 32 x i8> %va, <vscale x 32 x i8> %b, <vscale x 32 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 32 x i8> @llvm.vp.srem.nxv32i8(<vscale x 32 x i8> %va, <vscale x 32 x i8> %b, <vscale x 32 x i1> %m, i32 %evl)
  %C = icmp ne i1 false, true
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 32 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vrem-vp.080c862c49.ll (mutant of vrem-vp.ll)vrem_vv_nxv32i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium
vrem-vp.1eca39e9c4.ll (mutant of vrem-vp.ll)vrem_vv_nxv32i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O1
vrem-vp.315b81365f.ll (mutant of vrem-vp.ll)vrem_vx_nxv32i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O0
vrem-vp.5db5c2f750.ll (mutant of vrem-vp.ll)vrem_vv_nxv32i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbb -O2
vrem-vp.c781596d82.ll (mutant of vrem-vp.ll)vrem_vv_nxv32i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+c -O0

Generated 2026-11-29 14:49 UTC.