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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.merge.nxv32i16 M
Occurrences:6 in 6 configs, 1 test files, 8 more counted only
Snippet from:vpmerge-sdnode.898db3609f.ll (mutant of vpmerge-sdnode.ll) @vpmerge_vv_nxv32i16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+zbb -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <4 x i32>

define <vscale x 32 x i16> @vpmerge_vv_nxv32i16(<vscale x 32 x i16> %va, <vscale x 32 x i16> %vb, <vscale x 32 x i1> %m, i32 zeroext %evl) {
  %LGV = load <4 x i32>, ptr @G, align 16
  %B = urem <4 x i32> splat (i32 65536), %LGV
  %v = call <vscale x 32 x i16> @llvm.vp.merge.nxv32i16(<vscale x 32 x i1> %m, <vscale x 32 x i16> %va, <vscale x 32 x i16> %vb, i32 %evl)
  store <4 x i32> %B, ptr @G, align 16
  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=+zfh,+zvfhmin,+v,+m,+zbb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+zbb -O2 -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> %va, <vscale x 32 x i16> %vb, i32 %evl)' (in function: vpmerge_vv_nxv32i16)
warning: Instruction selection used fallback path for vpmerge_vv_nxv32i16

Occurrences (6):

InputFunctionConfig
vpmerge-sdnode.24fd97edc0.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv32i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zvkb -O1
vpmerge-sdnode.68b7790907.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv32i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zihintpause,+zfhmin -O3
vpmerge-sdnode.73b5fc61d6.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv32i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O1
vpmerge-sdnode.898db3609f.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv32i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+zbb -O2
vpmerge-sdnode.989a69e540.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv32i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m -O0
vpmerge-sdnode.e14b3aaeeb.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv32i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zicond -O3

Generated 2026-11-29 14:49 UTC.