fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAXIMUM <N x f64> M |
| Occurrences: | 3 in 3 configs, 1 test files, 21 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.a7b9db0329.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v64f64 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global float
define double @vreduce_fmaximum_v64f64(ptr %x) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%LGV = load float, ptr @G.1, align 4
%v = load <64 x double>, ptr %x, align 512
%C = fcmp oeq float +qnan, %LGV
%red = call double @llvm.vector.reduce.fmaximum.v64f64(<64 x double> %v)
store i1 %C, ptr %A, align 1
ret double %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fmaximum.v64f64(<64 x double>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(f64) = G_VECREDUCE_FMAXIMUM %5:_(<64 x f64>) (in function: vreduce_fmaximum_v64f64)
warning: Instruction selection used fallback path for vreduce_fmaximum_v64f64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.a7b9db0329.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v64f64 | -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_fmaximum_v64f64_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 |
| fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v16f64_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0 |
Generated 2026-11-29 14:49 UTC.