fallback: legalize: G_VECREDUCE_FMAX <N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAX <N x f64> M |
| Occurrences: | 3 in 3 configs, 1 test files, 21 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.377f9af26a.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmax_v2f64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfhmin,+zbkb -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define double @vreduce_fmax_v2f64(ptr %x) {
%v = load <2 x double>, ptr %x, align 16
%C = icmp ult i32 -1, 0
%red = call double @llvm.vector.reduce.fmax.v2f64(<2 x double> %v)
store i1 %C, ptr @G, align 1
ret double %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fmax.v2f64(<2 x double>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfhmin,+zbkb -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfhmin,+zbkb -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(f64) = G_VECREDUCE_FMAX %1:_(<2 x f64>) (in function: vreduce_fmax_v2f64)
warning: Instruction selection used fallback path for vreduce_fmax_v2f64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.2c9f4baeae.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f64_nonans | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3 |
| fixed-vectors-reduction-fp.377f9af26a.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v2f64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfhmin,+zbkb -O1 |
| fixed-vectors-reduction-fp.5c59b51011.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v32f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+f,+d -O1 |
Generated 2026-11-29 14:49 UTC.