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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.urem.nxv1i8 M
Occurrences:5 in 4 configs, 1 test files, 7 more counted only
Snippet from:vremu-vp.7f7487eff4.ll (mutant of vremu-vp.ll) @vremu_vx_nxv1i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 1 x i8> @vremu_vx_nxv1i8(<vscale x 1 x i8> %va, i8 %b, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %elt.head = insertelement <vscale x 1 x i8> poison, i8 %b, i32 0
  %C = icmp sgt i32 %evl, 42
  %vb = shufflevector <vscale x 1 x i8> %elt.head, <vscale x 1 x i8> poison, <vscale x 1 x i32> zeroinitializer
  %v = call <vscale x 1 x i8> @llvm.vp.urem.nxv1i8(<vscale x 1 x i8> %va, <vscale x 1 x i8> %vb, <vscale x 1 x i1> %m, i32 %evl)
  store i1 %C, ptr poison, 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.urem.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,+f -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vremu-vp.12da02f312.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbb -O2
vremu-vp.24c4e32865.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vremu-vp.259c19ac39.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vremu-vp.7f7487eff4.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O1
vremu-vp.a7dca071f5.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2

Generated 2026-11-29 14:49 UTC.