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

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:translate: call llvm.vp.merge.nxv1i64 M
Occurrences:4 in 4 configs, 1 test files
Snippet from:strided-vpload.3bd0ff46cd.ll (mutant of strided-vpload.ll) @zero_strided_vadd_nxv1i64 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+d,+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 1 x i64> @zero_strided_vadd_nxv1i64(<vscale x 1 x i64> %v, ptr %ptr) {
  %G = getelementptr <4 x i32>, ptr %ptr, i64 0
  %vscale = call i32 @llvm.vscale.i32()
  %load = call <vscale x 1 x i64> @llvm.experimental.vp.strided.load.nxv1i64.p0.i32(ptr %ptr, i32 0, <vscale x 1 x i1> splat (i1 true), i32 %vscale)
  %w = add <vscale x 1 x i64> %v, %load
  store ptr %G, ptr poison, align 8
  ret <vscale x 1 x i64> %w
}

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
strided-vpload.3bd0ff46cd.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1i64-mtriple=riscv64 -mattr=+m,+d,+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
strided-vpload.484fbeb3c5.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1i64-mtriple=riscv64 -mattr=+m,+d,+v,+zvfhmin,+zvfbfmin,+optimized-zero-stride-load -verify-machineinstrs
strided-vpload.93efaea89c.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1i64-mtriple=riscv64 -mattr=+m,+d,+v,+zvfh,+zvfbfmin -verify-machineinstrs
strided-vpload.a3f5083c64.ll (mutant of strided-vpload.ll)zero_strided_vadd_nxv1i64-mtriple=riscv64 -mattr=+m,+d,+v,+zvfh,+zvfbfmin,+optimized-zero-stride-load -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.