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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.reduce.fadd.nxv1f16 M
Occurrences:5 in 4 configs, 1 test files, 7 more counted only
Snippet from:vreductions-fp-vp.c4ed3f5a12.ll (mutant of vreductions-fp-vp.ll) @vpreduce_fadd_nxv1f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v,+zbkb -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global half

define half @vpreduce_fadd_nxv1f16(half %s, <vscale x 1 x half> %v, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %LGV = load half, ptr @G.1, align 2
  %C = fcmp ueq half %s, %LGV
  %r = call reassoc half @llvm.vp.reduce.fadd.nxv1f16(half %s, <vscale x 1 x half> %v, <vscale x 1 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.nxv1f16(half, <vscale x 1 x half>, <vscale x 1 x i1>, i32) #0

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v,+zbkb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v,+zbkb -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vreductions-fp-vp.0e6da09836.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+a,+f -O0 -code-model=medium
vreductions-fp-vp.309ad5f190.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv1f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2
vreductions-fp-vp.7b8d8b01cc.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zfh,+zicsr -O1
vreductions-fp-vp.c4ed3f5a12.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v,+zbkb -O2
vreductions-fp-vp.e197cbec17.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2

Generated 2026-11-29 14:49 UTC.