fallback: legalize: G_FMAXIMUMNUM <N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_FMAXIMUMNUM <N x f16> M |
| Occurrences: | 4 in 3 configs, 1 test files, 1 more counted only |
| Snippet from: | fixed-vectors-fmaximumnum.0b67221e72.ll (mutant of fixed-vectors-fmaximumnum.ll) @max_v8f16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i64
define <8 x half> @max_v8f16(<8 x half> %a, <8 x half> %b) {
entry:
%LGV = load i64, ptr @G, align 4
%B = ashr i64 1, %LGV
%c = call <8 x half> @llvm.maximumnum.v8f16(<8 x half> %a, <8 x half> %b)
store i64 %B, ptr @G, align 4
ret <8 x half> %c
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x half> @llvm.maximumnum.v8f16(<8 x half>, <8 x half>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %9:_(<8 x f16>) = G_FMAXIMUMNUM %0:_, %1:_ (in function: max_v8f16)
warning: Instruction selection used fallback path for max_v8f16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-fmaximumnum.0b67221e72.ll (mutant of fixed-vectors-fmaximumnum.ll) | max_v8f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O2 |
| fixed-vectors-fmaximumnum.7be7ab07a8.ll (mutant of fixed-vectors-fmaximumnum.ll) | max_v2f16 | --mtriple=riscv64-linux-gnu -mattr=+v,+zvfbfmin,+zihintpause -O1 -verify-machineinstrs |
| fixed-vectors-fmaximumnum.836b480294.ll (mutant of fixed-vectors-fmaximumnum.ll) | max_v4f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa,+zve32x -O2 |
| fixed-vectors-fmaximumnum.836b480294.ll (mutant of fixed-vectors-fmaximumnum.ll) | max_v8f16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa,+zve32x -O2 |
Generated 2026-11-29 14:49 UTC.