fallback: legalize: G_VECREDUCE_FMINIMUM <N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_FMINIMUM <N x f32> M
Occurrences:10 in 8 configs, 1 test files, 38 more counted only
Snippet from:fixed-vectors-reduction-fp.c917b97252.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fminimum_v16f32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zihintpause -O3 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global float

define float @vreduce_fminimum_v16f32(ptr %x) {
  %LGV = load float, ptr @G.2, align 4
  %v = load <16 x float>, ptr %x, align 64
  %red = call float @llvm.vector.reduce.fminimum.v16f32(<16 x float> %v)
  %B = frem float %red, %LGV
  store float %B, ptr @G.2, align 4
  ret float %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fminimum.v16f32(<16 x float>) #0

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zihintpause -O3 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zihintpause -O3 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(f32) = G_VECREDUCE_FMINIMUM %3:_(<16 x f32>) (in function: vreduce_fminimum_v16f32)
warning: Instruction selection used fallback path for vreduce_fminimum_v16f32

Occurrences (10):

InputFunctionConfig
fixed-vectors-reduction-fp.20a69d56ae.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+f,+d -O0 -code-model=small
fixed-vectors-reduction-fp.23e67ef23a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m -O1
fixed-vectors-reduction-fp.4d8e4b6398.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v128f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3
fixed-vectors-reduction-fp.9d6cdb5ad9.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v64f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.a7b9db0329.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.c851aa628e.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v8f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.c917b97252.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zihintpause -O3 -code-model=medium
fixed-vectors-reduction-fp.d04400d662.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v16f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fminimum_v4f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0

Generated 2026-11-29 14:49 UTC.