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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.udiv.nxv2i32 M
Occurrences:4 in 4 configs, 1 test files, 5 more counted only
Snippet from:vdivu-vp.e7790d0f75.ll (mutant of vdivu-vp.ll) @vdivu_vv_nxv2i32_unmasked via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 2 x i32> @vdivu_vv_nxv2i32_unmasked(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b, i32 zeroext %evl) {
  %v = call <vscale x 2 x i32> @llvm.vp.udiv.nxv2i32(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b, <vscale x 2 x i1> splat (i1 true), i32 %evl)
  %C = icmp sge <vscale x 2 x i32> %va, %v
  store <vscale x 2 x i1> %C, ptr poison, align 1
  ret <vscale x 2 x i32> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
vdivu-vp.2c96489e4e.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv2i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb -O3
vdivu-vp.8a46c7b457.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zihintpause -O3
vdivu-vp.e7790d0f75.ll (mutant of vdivu-vp.ll)vdivu_vv_nxv2i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O3
vdivu-vp.f8f8a7214d.ll (mutant of vdivu-vp.ll)vdivu_vx_nxv2i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.