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

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

Snippet:

define float @vpreduce_ord_fadd_nxv4f32(float %s, <vscale x 4 x float> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %A = alloca i32, align 4
  store i32 poison, ptr %A, align 4
  %r = call float @llvm.vp.reduce.fadd.nxv4f32(float %s, <vscale x 4 x float> %v, <vscale x 4 x i1> %m, i32 %evl)
  %B = shl i32 %evl, %evl
  store i32 %B, ptr %A, align 4
  ret float %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vp.reduce.fadd.nxv4f32(float, <vscale x 4 x float>, <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 -O2 -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 -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
vreductions-fp-vp.22ba945d37.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zbs -O1
vreductions-fp-vp.9eb447587b.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2
vreductions-fp-vp.b3114cc1d8.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+m,+zvbb -O1
vreductions-fp-vp.e4356e7cda.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv4f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+zihintpause -O0

Generated 2026-11-29 14:49 UTC.