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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.urem.nxv16i16 M
Occurrences:3 in 3 configs, 1 test files, 9 more counted only
Snippet from:vremu-vp.130b9d0b9e.ll (mutant of vremu-vp.ll) @vremu_vx_nxv16i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64

define <vscale x 16 x i16> @vremu_vx_nxv16i16(<vscale x 16 x i16> %va, i16 %b, <vscale x 16 x i1> %m, i32 zeroext %evl) {
  %elt.head = insertelement <vscale x 16 x i16> poison, i16 %b, i32 0
  %vb = shufflevector <vscale x 16 x i16> %elt.head, <vscale x 16 x i16> poison, <vscale x 16 x i32> zeroinitializer
  %B = add i64 42, 4294967296
  %v = call <vscale x 16 x i16> @llvm.vp.urem.nxv16i16(<vscale x 16 x i16> %va, <vscale x 16 x i16> %vb, <vscale x 16 x i1> %m, i32 %evl)
  store i64 %B, ptr @G, align 4
  ret <vscale x 16 x i16> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 16 x i16> @llvm.vp.urem.nxv16i16(<vscale x 16 x i16>, <vscale x 16 x i16>, <vscale x 16 x i1>, i32) #0

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vremu-vp.130b9d0b9e.ll (mutant of vremu-vp.ll)vremu_vx_nxv16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb -O0
vremu-vp.1a0412c9fc.ll (mutant of vremu-vp.ll)vremu_vx_nxv16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x -O1
vremu-vp.c6b5dbbd8e.ll (mutant of vremu-vp.ll)vremu_vv_nxv16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.