fallback: translate: call llvm.vp.reduce.and.nxv4i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.reduce.and.nxv4i64 M
Occurrences:5 in 4 configs, 1 test files, 2 more counted only
Snippet from:vreductions-int-vp.901f384da6.ll (mutant of vreductions-int-vp.ll) @vpreduce_and_nxv4i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfa -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i64 @vpreduce_and_nxv4i64(i64 signext %s, <vscale x 4 x i64> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %r = call i64 @llvm.vp.reduce.and.nxv4i64(i64 %s, <vscale x 4 x i64> %v, <vscale x 4 x i1> %m, i32 %evl)
  %C = icmp uge i64 %r, %s
  store i1 %C, ptr poison, align 1
  ret i64 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vp.reduce.and.nxv4i64(i64, <vscale x 4 x i64>, <vscale x 4 x i1>, i32) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.and.nxv4i64: '  %r = call i64 @llvm.vp.reduce.and.nxv4i64(i64 %s, <vscale x 4 x i64> %v, <vscale x 4 x i1> %m, i32 %evl)' (in function: vpreduce_and_nxv4i64)
warning: Instruction selection used fallback path for vpreduce_and_nxv4i64

Occurrences (5):

InputFunctionConfig
vreductions-int-vp.1b6cd42df6.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv4i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vreductions-int-vp.26e44ce224.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv4i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vreductions-int-vp.901f384da6.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv4i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfa -O1
vreductions-int-vp.c8657c07eb.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv4i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vreductions-int-vp.e136265a59.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv4i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2

Generated 2026-11-29 14:49 UTC.