fallback: legalize: G_FMAXIMUM <N x f16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_FMAXIMUM <N x f16> M |
| Occurrences: | 5 in 5 configs, 2 test files, 35 more counted only |
| Snippet from: | fixed-vectors-fmaximum.40bd0f5528.ll (mutant of fixed-vectors-fmaximum.ll) @vfmax_v8f16_vv via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zve64d -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
define <8 x half> @vfmax_v8f16_vv(<8 x half> %a, <8 x half> %b) {
%LGV = load i8, ptr @G, align 1
%v = call <8 x half> @llvm.maximum.v8f16(<8 x half> %a, <8 x half> %b)
%B = sdiv i8 %LGV, -1
store i8 %B, ptr @G, align 1
ret <8 x half> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x half> @llvm.maximum.v8f16(<8 x half>, <8 x half>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zve64d -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zve64d -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<8 x f16>) = G_FMAXIMUM %0:_, %1:_ (in function: vfmax_v8f16_vv)
warning: Instruction selection used fallback path for vfmax_v8f16_vv
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-fmaximum-vp.c2b80de879.ll (mutant of fixed-vectors-fmaximum-vp.ll) | vfmax_vv_v4f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+m -O0 |
| fixed-vectors-fmaximum-vp.ec84e5c486.ll (mutant of fixed-vectors-fmaximum-vp.ll) | vfmax_vv_v16f16_unmasked | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+m -O2 -code-model=small |
| fixed-vectors-fmaximum.40bd0f5528.ll (mutant of fixed-vectors-fmaximum.ll) | vfmax_v8f16_vv | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v,+zve64d -O2 |
| fixed-vectors-fmaximum.9a66c6b0c4.ll (mutant of fixed-vectors-fmaximum.ll) | vfmax_v2f16_vv_nnanb | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+experimental-zvfbfa,+v -O0 -code-model=small |
| fixed-vectors-fmaximum.a28fc39d4f.ll (mutant of fixed-vectors-fmaximum.ll) | vfmax_v8f16_vv | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+experimental-zvfbfa,+zvbb -O0 |
Generated 2026-11-29 14:49 UTC.