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

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

Snippet:

@G = external global <8 x i8>

define <vscale x 4 x i32> @vpmerge_vi_nxv4i32(<vscale x 4 x i32> %vb, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %LGV = load <8 x i8>, ptr @G, align 8
  %B = add <8 x i8> %LGV, zeroinitializer
  %v = call <vscale x 4 x i32> @llvm.vp.merge.nxv4i32(<vscale x 4 x i1> %m, <vscale x 4 x i32> splat (i32 2), <vscale x 4 x i32> %vb, i32 %evl)
  store <8 x i8> %B, ptr @G, align 8
  ret <vscale x 4 x i32> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
vpmerge-sdnode.2ca9cbfac9.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3
vpmerge-sdnode.2e59f8d137.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+m -O2
vpmerge-sdnode.33fbc030c7.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zbb -O1
vpmerge-sdnode.38d63a16da.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O2
vpmerge-sdnode.6b54c533f4.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv4i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zbs -O2 -code-model=small
vpmerge-sdnode.a7b317cc29.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zvkb -O1

Generated 2026-11-29 14:49 UTC.