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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.udiv.nxv4i32 M
Occurrences:8 in 7 configs, 1 test files, 3 more counted only
Snippet from:vdivu-vp.75a6744967.ll (mutant of vdivu-vp.ll) @vdivu_vv_nxv4i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 4 x i32> @vdivu_vv_nxv4i32(<vscale x 4 x i32> %va, <vscale x 4 x i32> %b, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %A = alloca <vscale x 4 x i32>, align 16
  store <vscale x 4 x i32> poison, ptr %A, align 16
  %v = call <vscale x 4 x i32> @llvm.vp.udiv.nxv4i32(<vscale x 4 x i32> %va, <vscale x 4 x i32> %b, <vscale x 4 x i1> %m, i32 %evl)
  %B = and <vscale x 4 x i32> %v, zeroinitializer
  store <vscale x 4 x i32> %B, ptr %A, align 16
  ret <vscale x 4 x i32> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 4 x i32> @llvm.vp.udiv.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=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
vdivu-vp.5a09703f41.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vdivu-vp.698f0e3123.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vdivu-vp.698f0e3123.ll (mutant of vdivu-vp.ll)vdivu_vx_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vdivu-vp.75a6744967.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium
vdivu-vp.946e63ae45.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vdivu-vp.9c34ab0df2.ll (mutant of vdivu-vp.ll)vdivu_vx_nxv4i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O1
vdivu-vp.b59c4b53d7.ll (mutant of vdivu-vp.ll)vdivu_vx_nxv4i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+f -O2
vdivu-vp.c59a774479.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv4i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvbb,+zihintpause -O3

Generated 2026-11-29 14:49 UTC.