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

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

Snippet:

@G = external global i32
@G.1 = external global i1

define <vscale x 2 x float> @splat_nxv2f32_const(i32 zeroext %evl) {
  %LGV = load i32, ptr @G, align 4
  %v = call <vscale x 2 x float> @llvm.vp.merge.nxv2f32(<vscale x 2 x i1> splat (i1 true), <vscale x 2 x float> splat (float 4.200000e+01), <vscale x 2 x float> poison, i32 %evl)
  %C = icmp ne i32 %evl, %LGV
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 2 x float> %v
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 2 x float> @llvm.vp.merge.nxv2f32(<vscale x 2 x i1>, <vscale x 2 x float>, <vscale x 2 x float>, 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,+zfhmin,+zbkb -O1 -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,+zfhmin,+zbkb -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.merge.nxv2f32: '  %v = call <vscale x 2 x float> @llvm.vp.merge.nxv2f32(<vscale x 2 x i1> splat (i1 true), <vscale x 2 x float> splat (float 4.200000e+01), <vscale x 2 x float> poison, i32 %evl)' (in function: splat_nxv2f32_const)
warning: Instruction selection used fallback path for splat_nxv2f32_const

Occurrences (4):

InputFunctionConfig
rvv-peephole-vmerge-vops.d3aea7d31e.ll (mutant of rvv-peephole-vmerge-vops.ll)vpmerge_vfsqrt-mtriple=riscv64 -mattr=+v -O1 -verify-machineinstrs
vpmerge-sdnode.0d70f59bc7.ll (mutant of vpmerge-sdnode.ll)splat_nxv2f32_const-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m -O0
vpmerge-sdnode.a7b317cc29.ll (mutant of vpmerge-sdnode.ll)vpmerge_vf_nxv2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zvkb -O1
vpmerge-sdnode.d5e53db83b.ll (mutant of vpmerge-sdnode.ll)splat_nxv2f32_const-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zfhmin,+zbkb -O1

Generated 2026-11-29 14:49 UTC.