fallback: legalize: G_VECREDUCE_FMAX <N x f64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAX <N x f64> M |
| Occurrences: | 3 in 2 configs, 1 test files, 7 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmax_v4f64_nonans via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define double @vreduce_fmax_v4f64_nonans(ptr %x) {
%G = getelementptr ptr, ptr %x, i64 9223372036854775807
%v = load <4 x double>, ptr %x, align 32
%red = call nnan double @llvm.vector.reduce.fmax.v4f64(<4 x double> %v)
store ptr %G, ptr poison, align 8
ret double %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fmax.v4f64(<4 x double>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(f64) = nnan G_VECREDUCE_FMAX %3:_(<4 x f64>) (in function: vreduce_fmax_v4f64_nonans)
warning: Instruction selection used fallback path for vreduce_fmax_v4f64_nonans
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.3aafd64d3b.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f64_nonans | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O3 |
| fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f64_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f64_nonans_noinfs | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
Generated 2026-11-29 14:49 UTC.