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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.merge.nxv4i16 M
Occurrences:5 in 5 configs, 1 test files, 3 more counted only
Snippet from:vpmerge-sdnode.e52b2b8c11.ll (mutant of vpmerge-sdnode.ll) @vpmerge_vi_nxv4i16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 4 x i16> @vpmerge_vi_nxv4i16(<vscale x 4 x i16> %vb, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 4 x i16> @llvm.vp.merge.nxv4i16(<vscale x 4 x i1> %m, <vscale x 4 x i16> splat (i16 2), <vscale x 4 x i16> %vb, i32 %evl)
  %B = urem i32 %evl, %evl
  store i32 %B, ptr poison, align 4
  ret <vscale x 4 x i16> %v
}

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

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vpmerge-sdnode.a7a6613d57.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv4i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+m,+zvfh -O3
vpmerge-sdnode.ae76589445.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv4i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O3
vpmerge-sdnode.b815987e36.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv4i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+c,+zve32x -O3
vpmerge-sdnode.dd33ff9fc1.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv4i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O0
vpmerge-sdnode.e52b2b8c11.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv4i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O2

Generated 2026-11-29 14:49 UTC.