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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.reduce.fmaximum.nxv4f32 M
Occurrences:4 in 3 configs, 1 test files, 11 more counted only
Snippet from:vreductions-fp-vp.23f146d6a3.ll (mutant of vreductions-fp-vp.ll) @vpreduce_fmaximum_nxv4f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O0 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32

define float @vpreduce_fmaximum_nxv4f32(float %start, <vscale x 4 x float> %val, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %LGV = load i32, ptr @G, align 4
  %B = mul i32 %LGV, -2147483648
  %s = call float @llvm.vp.reduce.fmaximum.nxv4f32(float %start, <vscale x 4 x float> %val, <vscale x 4 x i1> %m, i32 %evl)
  store i32 %B, ptr poison, align 4
  ret float %s
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vp.reduce.fmaximum.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 -O0 -code-model=medium -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 -O0 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
vreductions-fp-vp.1f03b1dedf.ll (mutant of vreductions-fp-vp.ll)vpreduce_fmaximum_nnan_nxv4f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2
vreductions-fp-vp.23f146d6a3.ll (mutant of vreductions-fp-vp.ll)vpreduce_fmaximum_nxv4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O0 -code-model=medium
vreductions-fp-vp.6998977fd1.ll (mutant of vreductions-fp-vp.ll)vpreduce_fmaximum_nnan_nxv4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v,+zihintpause,+m -O2
vreductions-fp-vp.78cafbd95e.ll (mutant of vreductions-fp-vp.ll)vpreduce_fmaximum_nxv4f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O2

Generated 2026-11-29 14:49 UTC.