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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.urem.nxv1i32 M
Occurrences:6 in 6 configs, 1 test files, 6 more counted only
Snippet from:vremu-vp.121f6b2d1a.ll (mutant of vremu-vp.ll) @vremu_vv_nxv1i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128
@G.1 = external global i128

define <vscale x 1 x i32> @vremu_vv_nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %b, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %LGV1 = load i128, ptr @G.1, align 4
  %LGV = load i128, ptr @G, align 4
  %v = call <vscale x 1 x i32> @llvm.vp.urem.nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %b, <vscale x 1 x i1> %m, i32 %evl)
  %C = icmp ne i128 %LGV, %LGV1
  store i1 %C, ptr poison, align 1
  ret <vscale x 1 x i32> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
vremu-vp.11f0999a14.ll (mutant of vremu-vp.ll)vremu_vv_nxv1i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
vremu-vp.121f6b2d1a.ll (mutant of vremu-vp.ll)vremu_vv_nxv1i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=small
vremu-vp.12e4232821.ll (mutant of vremu-vp.ll)vremu_vv_nxv1i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vremu-vp.24c4e32865.ll (mutant of vremu-vp.ll)vremu_vx_nxv1i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vremu-vp.932ae240eb.ll (mutant of vremu-vp.ll)vremu_vv_nxv1i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vremu-vp.998d737ad6.ll (mutant of vremu-vp.ll)vremu_vv_nxv1i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.