fallback: translate: call llvm.vp.reduce.or.nxv4i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.reduce.or.nxv4i16 M
Occurrences:8 in 8 configs, 1 test files, 2 more counted only
Snippet from:vreductions-int-vp.6f1c804ca5.ll (mutant of vreductions-int-vp.ll) @vpreduce_or_nxv4i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb,+zve64d -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i16

define signext i16 @vpreduce_or_nxv4i16(i16 signext %s, <vscale x 4 x i16> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %A = alloca i16, align 2
  store i16 poison, ptr %A, align 2
  %LGV = load i16, ptr @G.3, align 2
  %r = call i16 @llvm.vp.reduce.or.nxv4i16(i16 %s, <vscale x 4 x i16> %v, <vscale x 4 x i1> %m, i32 %evl)
  %B = lshr i16 %r, %LGV
  store i16 %B, ptr %A, align 2
  ret i16 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vp.reduce.or.nxv4i16(i16, <vscale x 4 x i16>, <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,+zbkb,+zve64d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb,+zve64d -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
vreductions-int-vp.0bb51f1ecc.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vreductions-int-vp.6f1c804ca5.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb,+zve64d -O3
vreductions-int-vp.a7f92b30e4.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+a -O1
vreductions-int-vp.c71636679f.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vreductions-int-vp.c7394a80b6.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O2
vreductions-int-vp.eb76f86292.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb -O3
vreductions-int-vp.eb96972da9.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d,+zvbb -O0
vreductions-int-vp.fb5c17f9f3.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba -O1

Generated 2026-11-29 14:49 UTC.