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

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

Snippet:

@G = external global i32

define <vscale x 1 x i16> @vpmerge_vi_nxv1i16(<vscale x 1 x i16> %vb, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 1 x i16> @llvm.vp.merge.nxv1i16(<vscale x 1 x i1> %m, <vscale x 1 x i16> splat (i16 2), <vscale x 1 x i16> %vb, i32 %evl)
  %B = add i32 1, %evl
  store i32 %B, ptr @G, align 4
  ret <vscale x 1 x i16> %v
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 1 x i16> @llvm.vp.merge.nxv1i16(<vscale x 1 x i1>, <vscale x 1 x i16>, <vscale x 1 x i16>, 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.nxv1i16: '  %v = call <vscale x 1 x i16> @llvm.vp.merge.nxv1i16(<vscale x 1 x i1> %m, <vscale x 1 x i16> splat (i16 2), <vscale x 1 x i16> %vb, i32 %evl)' (in function: vpmerge_vi_nxv1i16)
warning: Instruction selection used fallback path for vpmerge_vi_nxv1i16

Occurrences (4):

InputFunctionConfig
vpmerge-sdnode.3d3c86f08c.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.675e53b40f.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+a -O2
vpmerge-sdnode.716055c819.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.857fe3b1e4.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zvfh -O2

Generated 2026-11-29 14:49 UTC.