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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.merge.nxv32i16 M
Occurrences:3 in 3 configs, 1 test files, 3 more counted only
Snippet from:vpmerge-sdnode.f15836bb02.ll (mutant of vpmerge-sdnode.ll) @vpmerge_vi_nxv32i16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m -O0 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 32 x i16> @llvm.vp.merge.nxv32i16(<vscale x 32 x i1>, <vscale x 32 x i16>, <vscale x 32 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,+zvfh,+v,+m -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vpmerge-sdnode.2ee9d59d78.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv32i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+zicsr -O1
vpmerge-sdnode.9270ac08ab.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv32i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.f15836bb02.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv32i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.