fallback: translate: call llvm.vp.gather.nxv2i8.nxv2p0

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.gather.nxv2i8.nxv2p0 M
Occurrences:8 in 5 configs, 1 test files, 13 more counted only
Snippet from:vpgather-sdnode.4523e2e41b.ll (mutant of vpgather-sdnode.ll) @vpgather_nxv2i8_zextload_nxv2i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 2 x i32> @vpgather_nxv2i8_zextload_nxv2i32(<vscale x 2 x ptr> %ptrs, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 2 x i8> @llvm.vp.gather.nxv2i8.nxv2p0(<vscale x 2 x ptr> %ptrs, <vscale x 2 x i1> %m, i32 %evl)
  %B = sub <vscale x 2 x i8> %v, zeroinitializer
  %ev = zext <vscale x 2 x i8> %B to <vscale x 2 x i32>
  ret <vscale x 2 x i32> %ev
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
vpgather-sdnode.00c0d081d8.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_zextload_nxv2i16-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+f -O1
vpgather-sdnode.00c0d081d8.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_sextload_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+f -O1
vpgather-sdnode.4523e2e41b.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_zextload_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O1
vpgather-sdnode.4523e2e41b.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_sextload_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O1
vpgather-sdnode.90be9652c4.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_zextload_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v,+zvbb -O0
vpgather-sdnode.decad65ffe.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_sextload_nxv2i16-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O0 -code-model=small
vpgather-sdnode.decad65ffe.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_zextload_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O0 -code-model=small
vpgather-sdnode.f78f9d22b7.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i8_zextload_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O1

Generated 2026-11-29 14:49 UTC.