fallback: translate: call llvm.vp.gather.nxv4i8.nxv4p0

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.gather.nxv4i8.nxv4p0 M
Occurrences:4 in 4 configs, 2 test files, 7 more counted only
Snippet from:vpgather-sdnode.413cf3f56a.ll (mutant of vpgather-sdnode.ll) @vpgather_truemask_nxv4i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zba -O0 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64
@G.1 = external global i1

define <vscale x 4 x i8> @vpgather_truemask_nxv4i8(<vscale x 4 x ptr> %ptrs, i32 zeroext %evl) {
  %LGV = load i64, ptr @G, align 4
  %v = call <vscale x 4 x i8> @llvm.vp.gather.nxv4i8.nxv4p0(<vscale x 4 x ptr> %ptrs, <vscale x 4 x i1> splat (i1 true), i32 %evl)
  %C = icmp eq i64 %LGV, 0
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 4 x i8> %v
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zba -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zba -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.gather.nxv4i8.nxv4p0: '  %v = call <vscale x 4 x i8> @llvm.vp.gather.nxv4i8.nxv4p0(<vscale x 4 x ptr> %ptrs, <vscale x 4 x i1> splat (i1 true), i32 %evl)' (in function: vpgather_truemask_nxv4i8)
warning: Instruction selection used fallback path for vpgather_truemask_nxv4i8

Occurrences (4):

InputFunctionConfig
nontemporal-vp-scalable.cc941deeb4.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv4i8_P1-mtriple=riscv64 -mattr=+zihintntl,+f,+d,+zfh,+v -O0 -code-model=medium -verify-machineinstrs
vpgather-sdnode.413cf3f56a.ll (mutant of vpgather-sdnode.ll)vpgather_truemask_nxv4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+v,+zba -O0 -code-model=small
vpgather-sdnode.4ef886ac68.ll (mutant of vpgather-sdnode.ll)vpgather_truemask_nxv4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+zvbb -O2
vpgather-sdnode.9503c906ee.ll (mutant of vpgather-sdnode.ll)vpgather_nxv4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O0

Generated 2026-11-29 14:49 UTC.