fallback: translate: call llvm.vp.gather.nxv1i8.nxv1p0

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.gather.nxv1i8.nxv1p0 M
Occurrences:7 in 6 configs, 2 test files, 2 more counted only
Snippet from:vpgather-sdnode.5f451d61e5.ll (mutant of vpgather-sdnode.ll) @vpgather_nxv1i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64

define <vscale x 1 x i8> @vpgather_nxv1i8(<vscale x 1 x ptr> %ptrs, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %LGV = load i64, ptr @G, align 4
  %v = call <vscale x 1 x i8> @llvm.vp.gather.nxv1i8.nxv1p0(<vscale x 1 x ptr> %ptrs, <vscale x 1 x i1> %m, i32 %evl)
  %B = ashr i64 %LGV, 4294967296
  store i64 %B, ptr @G, align 4
  ret <vscale x 1 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
nontemporal-vp-scalable.2686c2026d.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_P1-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v -O2 -verify-machineinstrs
nontemporal-vp-scalable.358b827c41.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_P1-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v,+c -O2 -code-model=medium -verify-machineinstrs
nontemporal-vp-scalable.afc5c88efc.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_S1-mtriple=riscv64 -mattr=+zihintntl,+f,+d,+zfh,+v -O0 -code-model=small -verify-machineinstrs
nontemporal-vp-scalable.b3cce15b8f.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_DEFAULT-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v,+zbs -O0 -verify-machineinstrs
nontemporal-vp-scalable.c252d09d94.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_S1-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v -O2 -verify-machineinstrs
nontemporal-vp-scalable.f91ff4f59d.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv1i8_PALL-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v,+c,+zba -O1 -verify-machineinstrs
vpgather-sdnode.5f451d61e5.ll (mutant of vpgather-sdnode.ll)vpgather_nxv1i8-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O1

Generated 2026-11-29 14:49 UTC.