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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.merge.nxv1p0 M
Occurrences:3 in 3 configs, 1 test files, 4 more counted only
Snippet from:strided-vpload.24d2f7a723.ll (mutant of strided-vpload.ll) @zero_strided_vadd_nxv1p0 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+zfh -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32

define <vscale x 1 x ptr> @zero_strided_vadd_nxv1p0(<vscale x 1 x ptr> %v, ptr %ptr) {
  %vscale = call i32 @llvm.vscale.i32()
  %load = call <vscale x 1 x ptr> @llvm.experimental.vp.strided.load.nxv1p0.p0.i32(ptr %ptr, i32 0, <vscale x 1 x i1> splat (i1 true), i32 %vscale)
  %B = ashr i32 %vscale, -1
  store i32 %B, ptr @G, align 4
  ret <vscale x 1 x ptr> %load
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <vscale x 1 x ptr> @llvm.experimental.vp.strided.load.nxv1p0.p0.i32(ptr captures(none), i32, <vscale x 1 x i1>, i32) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vscale.i32() #1

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.merge.nxv1p0: '  %2 = call <vscale x 1 x ptr> @llvm.vp.merge.nxv1p0(<vscale x 1 x i1> splat (i1 true), <vscale x 1 x ptr> %.splat, <vscale x 1 x ptr> poison, i32 %vscale)' (in function: zero_strided_vadd_nxv1p0)
warning: Instruction selection used fallback path for zero_strided_vadd_nxv1p0

Occurrences (3):

InputFunctionConfig
strided-vpload.24d2f7a723.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1p0-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+zfh -O3
strided-vpload.2c6335c7ed.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1p0-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+optimized-zero-stride-load,+zicsr -O2
strided-vpload.7627341abf.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1p0-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+zcb -O1

Generated 2026-11-29 14:49 UTC.