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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.merge.nxv2i32 M
Occurrences:7 in 5 configs, 2 test files, 8 more counted only
Snippet from:vpmerge-sdnode.32f6ae2ae9.ll (mutant of vpmerge-sdnode.ll) @vpmerge_vi_nxv2i32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 2 x i32> @vpmerge_vi_nxv2i32(<vscale x 2 x i32> %vb, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 2 x i32> @llvm.vp.merge.nxv2i32(<vscale x 2 x i1> %m, <vscale x 2 x i32> splat (i32 2), <vscale x 2 x i32> %vb, i32 %evl)
  %B = and i16 42, 0
  store i16 %B, ptr poison, align 2
  ret <vscale x 2 x i32> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
rvv-peephole-vmerge-vops.020e2a6743.ll (mutant of rvv-peephole-vmerge-vops.ll)vpmerge_vluxei-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
rvv-peephole-vmerge-vops.020e2a6743.ll (mutant of rvv-peephole-vmerge-vops.ll)vpmerge_add-mtriple=riscv64 -mattr=+v -O2 -verify-machineinstrs
vpmerge-sdnode.32f6ae2ae9.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.32f6ae2ae9.ll (mutant of vpmerge-sdnode.ll)splat_nxv2i32_const-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.3f546b44e4.ll (mutant of vpmerge-sdnode.ll)splat_nxv2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+zve64d -O3
vpmerge-sdnode.761be1aea1.ll (mutant of vpmerge-sdnode.ll)splat_nxv2i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O3
vpmerge-sdnode.cec1c9ed2a.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv2i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O1

Generated 2026-11-29 14:49 UTC.