fallback: translate: call llvm.vp.gather.nxv8i32.nxv8p0

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.gather.nxv8i32.nxv8p0 M
Occurrences:5 in 5 configs, 2 test files, 2 more counted only
Snippet from:vpgather-sdnode.4ef886ac68.ll (mutant of vpgather-sdnode.ll) @vpgather_nxv8i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+zvbb -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.5 = external global i8

define <vscale x 8 x i32> @vpgather_nxv8i32(<vscale x 8 x ptr> %ptrs, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %LGV = load i8, ptr @G.5, align 1
  %B = srem i8 1, %LGV
  %v = call <vscale x 8 x i32> @llvm.vp.gather.nxv8i32.nxv8p0(<vscale x 8 x ptr> %ptrs, <vscale x 8 x i1> %m, i32 %evl)
  store i8 %B, ptr poison, align 1
  ret <vscale x 8 x i32> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <vscale x 8 x i32> @llvm.vp.gather.nxv8i32.nxv8p0(<vscale x 8 x ptr>, <vscale x 8 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+zvbb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+zvbb -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.gather.nxv8i32.nxv8p0: '  %v = call <vscale x 8 x i32> @llvm.vp.gather.nxv8i32.nxv8p0(<vscale x 8 x ptr> %ptrs, <vscale x 8 x i1> %m, i32 %evl)' (in function: vpgather_nxv8i32)
warning: Instruction selection used fallback path for vpgather_nxv8i32

Occurrences (5):

InputFunctionConfig
nontemporal-vp-scalable.a6adce7780.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv8i32_ALL-mtriple=riscv64 -mattr=+zihintntl,+f,+d,+zfh,+v,+c -O1 -verify-machineinstrs
nontemporal-vp-scalable.af4c35e29c.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv8i32_S1-mtriple=riscv64 -mattr=+zihintntl,+f,+d,+zfh,+v -O0 -verify-machineinstrs
nontemporal-vp-scalable.f2eefa20cf.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv8i32_ALL-mtriple=riscv64 -mattr=+zihintntl,+f,+d,+zfh,+v,+c -O0 -verify-machineinstrs
vpgather-sdnode.4ef886ac68.ll (mutant of vpgather-sdnode.ll)vpgather_nxv8i32-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+zvbb -O2
vpgather-sdnode.5fb419197c.ll (mutant of vpgather-sdnode.ll)vpgather_nxv8i32-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+zvbb,+zvfh -O2

Generated 2026-11-29 14:49 UTC.