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

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

Snippet:

@G = external global double

define <vscale x 4 x i32> @vpmerge_vv_nxv4i32(<vscale x 4 x i32> %va, <vscale x 4 x i32> %vb, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %LGV = load double, ptr @G, align 8
  %B = frem double 0.000000e+00, %LGV
  %v = call <vscale x 4 x i32> @llvm.vp.merge.nxv4i32(<vscale x 4 x i1> %m, <vscale x 4 x i32> %va, <vscale x 4 x i32> %vb, i32 %evl)
  store double %B, ptr poison, 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,+zvfhmin,+v,+m,+zcb -O3 -code-model=small -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,+zcb -O3 -code-model=small -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> %va, <vscale x 4 x i32> %vb, i32 %evl)' (in function: vpmerge_vv_nxv4i32)
warning: Instruction selection used fallback path for vpmerge_vv_nxv4i32

Occurrences (4):

InputFunctionConfig
vpmerge-sdnode.0700c2f83d.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv4i32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3
vpmerge-sdnode.11ccb1d848.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfhmin,+v,+m,+zicsr -O1
vpmerge-sdnode.217d22ae6c.ll (mutant of vpmerge-sdnode.ll)vpmerge_vx_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m,+f,+zihintpause -O3
vpmerge-sdnode.36ee03db2e.ll (mutant of vpmerge-sdnode.ll)vpmerge_vv_nxv4i32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+m,+zcb -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.