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

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

Snippet:

define <vscale x 1 x i16> @vpmerge_vi_nxv1i16(<vscale x 1 x i16> %vb, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %A = alloca <vscale x 2 x i32>, align 8
  store <vscale x 2 x i32> poison, ptr %A, align 8
  %I = insertelement <vscale x 2 x i32> splat (i32 -1), i32 -1, i16 256
  %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)
  store <vscale x 2 x i32> %I, ptr %A, align 8
  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=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+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=+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.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 (5):

InputFunctionConfig
vpmerge-sdnode.348288d5b8.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zfa,+f -O2
vpmerge-sdnode.348288d5b8.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zfa,+f -O2
vpmerge-sdnode.74d12a76e7.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zvkb -O3
vpmerge-sdnode.87ee86ee26.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv1i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zvbb -O1 -code-model=medium
vpmerge-sdnode.cc99436218.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+v,+m -O2

Generated 2026-11-29 14:49 UTC.