fallback: legalize: G_VECREDUCE_FMAX <N x f16>
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAX <N x f16> M |
| Occurrences: | 4 in 4 configs, 1 test files |
| Snippet from: | fixed-vectors-reduction-fp.17330942c9.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmax_v4f16_nonans via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define half @vreduce_fmax_v4f16_nonans(ptr %x) {
%v = load <4 x half>, ptr %x, align 8
%red = call nnan half @llvm.vector.reduce.fmax.v4f16(<4 x half> %v)
store half %red, ptr poison, align 2
ret half %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fmax.v4f16(<4 x half>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(f16) = nnan G_VECREDUCE_FMAX %1:_(<4 x f16>) (in function: vreduce_fmax_v4f16_nonans)
warning: Instruction selection used fallback path for vreduce_fmax_v4f16_nonans
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.17330942c9.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f16_nonans | -mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs |
| fixed-vectors-reduction-fp.2818dea9b2.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f16_nonans | -mtriple=riscv64 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs |
| fixed-vectors-reduction-fp.4d8045e79b.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f16_nonans | -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs |
| fixed-vectors-reduction-fp.52cd87127c.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmax_v4f16_nonans | -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.