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

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

Snippet:

@G.2 = external global i64

define <vscale x 1 x i64> @vpmerge_vv_nxv1i64(<vscale x 1 x i64> %va, <vscale x 1 x i64> %vb, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %LGV = load i64, ptr @G.2, align 4
  %v = call <vscale x 1 x i64> @llvm.vp.merge.nxv1i64(<vscale x 1 x i1> %m, <vscale x 1 x i64> %va, <vscale x 1 x i64> %vb, i32 %evl)
  %C = icmp sgt i64 1, %LGV
  store i1 %C, ptr poison, align 1
  ret <vscale x 1 x i64> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zba,+xtheadba -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,+zvfhmin,+v,+m,+zba,+xtheadba -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.merge.nxv1i64: '  %v = call <vscale x 1 x i64> @llvm.vp.merge.nxv1i64(<vscale x 1 x i1> %m, <vscale x 1 x i64> %va, <vscale x 1 x i64> %vb, i32 %evl)' (in function: vpmerge_vv_nxv1i64)
warning: Instruction selection used fallback path for vpmerge_vv_nxv1i64

Occurrences (5):

InputFunctionConfig
strided-vpload.e6fbc8d716.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+xtheadba,+zve64d -O2
vpmerge-sdnode.00f8b88089.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv1i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zba,+xtheadba -O3
vpmerge-sdnode.743ac86ec4.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv1i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3
vpmerge-sdnode.8315abe7c3.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv1i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+zicsr -O2
vpmerge-sdnode.f3600a1a4f.ll (mutant of vpmerge-sdnode.ll)vpmerge_vi_nxv1i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zve32x -O2

Generated 2026-11-29 14:49 UTC.