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

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: call llvm.vp.reduce.fadd.nxv1f64 M
Occurrences:4 in 2 configs, 1 test files
Snippet from:vreductions-fp-vp.3be3759283.ll (mutant of vreductions-fp-vp.ll) @vpreduce_fadd_nxv1f64 via llvm-extract
Config:-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define double @vpreduce_fadd_nxv1f64(double %s, <vscale x 1 x double> %v, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %A = alloca <8 x i8>, align 8
  store <8 x i8> poison, ptr %A, align 8
  %B = srem <8 x i8> splat (i8 1), splat (i8 1)
  %r = call reassoc double @llvm.vp.reduce.fadd.nxv1f64(double %s, <vscale x 1 x double> %v, <vscale x 1 x i1> %m, i32 %evl)
  store <8 x i8> %B, ptr %A, align 8
  ret double %r
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
vreductions-fp-vp.0a8d65e635.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv1f64-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
vreductions-fp-vp.3be3759283.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f64-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
vreductions-fp-vp.601bb12e70.ll (mutant of vreductions-fp-vp.ll)vpreduce_ord_fadd_nxv1f64-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
vreductions-fp-vp.7b5235c044.ll (mutant of vreductions-fp-vp.ll)vpreduce_fadd_nxv1f64-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.