fallback: translate: call llvm.vp.reduce.fadd.nxv4f16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.reduce.fadd.nxv4f16 M
Occurrences:3 in 3 configs, 1 test files, 7 more counted only
Snippet from:vreductions-fp-vp.22ba945d37.ll (mutant of vreductions-fp-vp.ll) @vpreduce_ord_fadd_nxv4f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define half @vpreduce_ord_fadd_nxv4f16(half %s, <vscale x 4 x half> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %C = fcmp oge double 1.000000e+00, f0x7FEFFFFFFFFFFFFF
  %r = call half @llvm.vp.reduce.fadd.nxv4f16(half %s, <vscale x 4 x half> %v, <vscale x 4 x i1> %m, i32 %evl)
  store i1 %C, ptr poison, align 1
  ret half %r
}

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

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

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vreductions-fp-vp.1d4870a009.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zfh,+zbb -O2
vreductions-fp-vp.22ba945d37.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O1
vreductions-fp-vp.3ed12c6f1f.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3

Generated 2026-11-29 14:49 UTC.