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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.gather.nxv2i32.nxv2p0 M
Occurrences:10 in 10 configs, 2 test files, 2 more counted only
Snippet from:vpgather-sdnode.6166cd0247.ll (mutant of vpgather-sdnode.ll) @vpgather_nxv2i32_zextload_nxv2i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 2 x i64> @vpgather_nxv2i32_zextload_nxv2i64(<vscale x 2 x ptr> %ptrs, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 2 x i32> @llvm.vp.gather.nxv2i32.nxv2p0(<vscale x 2 x ptr> %ptrs, <vscale x 2 x i1> %m, i32 %evl)
  %ev = zext <vscale x 2 x i32> %v to <vscale x 2 x i64>
  %B = srem <vscale x 2 x i64> %ev, splat (i64 -9223372036854775808)
  ret <vscale x 2 x i64> %B
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <vscale x 2 x i32> @llvm.vp.gather.nxv2i32.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=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O2 -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 -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (10):

InputFunctionConfig
nontemporal-vp-scalable.020927eec9.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv2i32_PALL-mtriple=riscv32 -mattr=+zihintntl,+f,+d,+zfh,+v,+c -O0 -verify-machineinstrs
nontemporal-vp-scalable.ed96328e9e.ll (mutant of nontemporal-vp-scalable.ll)test_nontemporal_vp_gather_nxv2i32_ALL-mtriple=riscv32 -mattr=+zihintntl,+f,+zfh,+v -O3 -verify-machineinstrs
vpgather-sdnode.02727349b1.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32_zextload_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+zfhmin -O0
vpgather-sdnode.41c97b90fb.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+zicond -O0
vpgather-sdnode.533653b85c.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32_zextload_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O2 -code-model=medium
vpgather-sdnode.6166cd0247.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32_zextload_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb -O2
vpgather-sdnode.6853bfbad2.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O2
vpgather-sdnode.90be9652c4.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32_zextload_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v,+zvbb -O0
vpgather-sdnode.baabecc763.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+zvfbfmin,+v,+zvbb,+zvkb,+zicsr -O3
vpgather-sdnode.c57c79ce2e.ll (mutant of vpgather-sdnode.ll)vpgather_nxv2i32-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v -O2

Generated 2026-11-29 14:49 UTC.