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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.merge.nxv16i32 M
Occurrences:5 in 5 configs, 1 test files, 7 more counted only
Snippet from:vpmerge-sdnode.743ac86ec4.ll (mutant of vpmerge-sdnode.ll) @vpmerge_vv_nxv16i32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 16 x i32> @vpmerge_vv_nxv16i32(<vscale x 16 x i32> %va, <vscale x 16 x i32> %vb, <vscale x 16 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 16 x i32> @llvm.vp.merge.nxv16i32(<vscale x 16 x i1> %m, <vscale x 16 x i32> %va, <vscale x 16 x i32> %vb, i32 %evl)
  %B = and <vscale x 16 x i32> %vb, splat (i32 1)
  store <vscale x 16 x i32> %B, ptr poison, align 64
  ret <vscale x 16 x i32> %v
}

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

Occurrences (5):

InputFunctionConfig
vpmerge-sdnode.11ccb1d848.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv16i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+zicsr -O1
vpmerge-sdnode.24fd97edc0.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv16i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zvkb -O1
vpmerge-sdnode.3722a5faac.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv16i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zihintpause,+c -O1
vpmerge-sdnode.659dd68907.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv16i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+xtheadba -O0 -code-model=small
vpmerge-sdnode.743ac86ec4.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv16i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3

Generated 2026-11-29 14:49 UTC.