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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.reduce.and.nxv2i16 M
Occurrences:6 in 6 configs, 1 test files
Snippet from:vreductions-int-vp.b9ff39e520.ll (mutant of vreductions-int-vp.ll) @vpreduce_and_nxv2i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvbb -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define signext i16 @vpreduce_and_nxv2i16(i16 signext %s, <vscale x 2 x i16> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %r = call i16 @llvm.vp.reduce.and.nxv2i16(i16 %s, <vscale x 2 x i16> %v, <vscale x 2 x i1> %m, i32 %evl)
  %C = icmp ne i16 %r, %r
  store i1 %C, ptr @G, align 1
  ret i16 %r
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
vreductions-int-vp.4ce0b7968a.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicsr -O2
vreductions-int-vp.66b58111f5.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d,+a -O3
vreductions-int-vp.b9ff39e520.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvbb -O3
vreductions-int-vp.ced9204d56.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbkb,+xtheadba -O3
vreductions-int-vp.dcbe31fbcb.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3 -code-model=small
vreductions-int-vp.f5559b8375.ll (mutant of vreductions-int-vp.ll)vpreduce_and_nxv2i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zve32x -O1

Generated 2026-11-29 14:49 UTC.