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

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

Snippet:

@G = external global <8 x i8>
@G.1 = external global <8 x i1>

define <vscale x 4 x i32> @vrem_vv_nxv4i32_unmasked(<vscale x 4 x i32> %va, <vscale x 4 x i32> %b, i32 zeroext %evl) {
  %LGV = load <8 x i8>, ptr @G, align 8
  %v = call <vscale x 4 x i32> @llvm.vp.srem.nxv4i32(<vscale x 4 x i32> %va, <vscale x 4 x i32> %b, <vscale x 4 x i1> splat (i1 true), i32 %evl)
  %C = icmp sgt <8 x i8> %LGV, splat (i8 -1)
  store <8 x i1> %C, ptr @G.1, align 1
  ret <vscale x 4 x i32> %v
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.srem.nxv4i32: '  %v = call <vscale x 4 x i32> @llvm.vp.srem.nxv4i32(<vscale x 4 x i32> %va, <vscale x 4 x i32> %b, <vscale x 4 x i1> splat (i1 true), i32 %evl)' (in function: vrem_vv_nxv4i32_unmasked)
warning: Instruction selection used fallback path for vrem_vv_nxv4i32_unmasked

Occurrences (6):

InputFunctionConfig
vrem-vp.315b81365f.ll (mutant of vrem-vp.ll)vrem_vv_nxv4i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O0
vrem-vp.4832c8ad1b.ll (mutant of vrem-vp.ll)vrem_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vrem-vp.9eaaa649be.ll (mutant of vrem-vp.ll)vrem_vv_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+a -O3
vrem-vp.e4f9408ecf.ll (mutant of vrem-vp.ll)vrem_vv_nxv4i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vrem-vp.fe5569fe6b.ll (mutant of vrem-vp.ll)vrem_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vrem-vp.fe5569fe6b.ll (mutant of vrem-vp.ll)vrem_vx_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1

Generated 2026-11-29 14:49 UTC.