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

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

Snippet:

define float @vpreduce_fadd_nxv2f32(float %s, <vscale x 2 x float> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %r = call reassoc float @llvm.vp.reduce.fadd.nxv2f32(float %s, <vscale x 2 x float> %v, <vscale x 2 x i1> %m, i32 %evl)
  %C = fcmp ule float %s, 4.200000e+01
  store i1 %C, ptr poison, align 1
  ret float %r
}

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

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+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=+d,+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.nxv2f32: '  %r = call reassoc float @llvm.vp.reduce.fadd.nxv2f32(float %s, <vscale x 2 x float> %v, <vscale x 2 x i1> %m, i32 %evl)' (in function: vpreduce_fadd_nxv2f32)
warning: Instruction selection used fallback path for vpreduce_fadd_nxv2f32

Occurrences (5):

InputFunctionConfig
vreductions-fp-vp.80d91d1c80.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
vreductions-fp-vp.94f8918b6a.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2
vreductions-fp-vp.a381813b49.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbkb -O2
vreductions-fp-vp.d4753baa71.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
vreductions-fp-vp.f0578fc731.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zfh -O0

Generated 2026-11-29 14:49 UTC.