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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.merge.nxv16i64 M
Occurrences:3 in 3 configs, 1 test files, 3 more counted only
Snippet from:strided-vpload.2396b28d9c.ll (mutant of strided-vpload.ll) @zero_strided_vadd_nxv16i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 16 x i64> @zero_strided_vadd_nxv16i64(<vscale x 16 x i64> %v, ptr %ptr) {
  %B = sdiv i8 -1, 1
  %vscale = call i32 @llvm.vscale.i32()
  %load = call <vscale x 16 x i64> @llvm.experimental.vp.strided.load.nxv16i64.p0.i32(ptr %ptr, i32 0, <vscale x 16 x i1> splat (i1 true), i32 %vscale)
  %w = add <vscale x 16 x i64> %v, %load
  store i8 %B, ptr poison, align 1
  ret <vscale x 16 x i64> %w
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <vscale x 16 x i64> @llvm.experimental.vp.strided.load.nxv16i64.p0.i32(ptr captures(none), i32, <vscale x 16 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=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
strided-vpload.2396b28d9c.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv16i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin -O2
strided-vpload.341483c2ce.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv16i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+zihintpause,+zvbb -O2
strided-vpload.6ac8db44b4.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv16i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+optimized-zero-stride-load -O1

Generated 2026-11-29 14:49 UTC.