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

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

Snippet:

@G.1 = external global i16

define <vscale x 4 x i16> @vremu_vv_nxv4i16(<vscale x 4 x i16> %va, <vscale x 4 x i16> %b, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %A = alloca i16, align 2
  store i16 poison, ptr %A, align 2
  %LGV = load i16, ptr @G.1, align 2
  %B = urem i16 -1, %LGV
  %v = call <vscale x 4 x i16> @llvm.vp.urem.nxv4i16(<vscale x 4 x i16> %va, <vscale x 4 x i16> %b, <vscale x 4 x i1> %m, i32 %evl)
  store i16 %B, ptr %A, align 2
  ret <vscale x 4 x i16> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
vremu-vp.0a70163e19.ll (mutant of vremu-vp.ll)vremu_vv_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zvkb -O1
vremu-vp.19884a7a95.ll (mutant of vremu-vp.ll)vremu_vv_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zihintpause -O1
vremu-vp.7cfc10e70e.ll (mutant of vremu-vp.ll)vremu_vx_nxv4i16_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0
vremu-vp.9dc00425d9.ll (mutant of vremu-vp.ll)vremu_vv_nxv4i16_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zihintpause,+f -O0
vremu-vp.9dc00425d9.ll (mutant of vremu-vp.ll)vremu_vx_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zihintpause,+f -O0
vremu-vp.d1cceee0d7.ll (mutant of vremu-vp.ll)vremu_vv_nxv4i16_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -code-model=medium
vremu-vp.d1cceee0d7.ll (mutant of vremu-vp.ll)vremu_vx_nxv4i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.