fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAXIMUM <N x f16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 11 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.ff67f59a1d.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v128f16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define half @vreduce_fmaximum_v128f16(ptr %x) {
%v = load <128 x half>, ptr %x, align 256
%G = getelementptr <128 x half>, ptr %x, i16 0
%red = call half @llvm.vector.reduce.fmaximum.v128f16(<128 x half> %v)
store ptr %G, ptr poison, align 8
ret half %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fmaximum.v128f16(<128 x half>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(f16) = G_VECREDUCE_FMAXIMUM %1:_(<128 x f16>) (in function: vreduce_fmaximum_v128f16)
warning: Instruction selection used fallback path for vreduce_fmaximum_v128f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.5c59b51011.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v128f16_nonans | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+f,+d -O1 |
| fixed-vectors-reduction-fp.eb6a78bc5a.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v128f16_nonans | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zvfh -O0 |
| fixed-vectors-reduction-fp.ff67f59a1d.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v128f16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0 |
Generated 2026-11-29 14:49 UTC.