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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.reduce.and.nxv2i64 M
Occurrences:7 in 7 configs, 1 test files, 2 more counted only
Snippet from:vreductions-int-vp.7c4f147040.ll (mutant of vreductions-int-vp.ll) @vpreduce_and_nxv2i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i64 @vpreduce_and_nxv2i64(i64 signext %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %r = call i64 @llvm.vp.reduce.and.nxv2i64(i64 %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 %evl)
  %C = icmp ult i64 %r, 1
  store i1 %C, ptr %A, align 1
  ret i64 %r
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
vreductions-int-vp.02a27a0af9.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O1
vreductions-int-vp.5fa6c34bff.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zcb -O2
vreductions-int-vp.7c4f147040.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O0
vreductions-int-vp.7c7825dc18.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -code-model=small
vreductions-int-vp.a9c432b21f.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
vreductions-int-vp.eb76f86292.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb -O3
vreductions-int-vp.f55db26cd1.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+m -O1

Generated 2026-11-29 14:49 UTC.