[all-commits] [llvm/llvm-project] c5e015: [SelectionDAG] Fix FP8 conversions to half for sub...
Chinmay Deshpande via All-commits
all-commits at lists.llvm.org
Tue Sep 22 14:16:06 PDT 2026
Branch: refs/heads/users/chinmaydd/fix-fp8-to-half-conversions
Home: https://github.com/llvm/llvm-project
Commit: c5e01531013c6494cba209efe4ade404b9cc4ad1
https://github.com/llvm/llvm-project/commit/c5e01531013c6494cba209efe4ade404b9cc4ad1
Author: Chinmay Deshpande <chdeshpa at amd.com>
Date: 2026-09-20 (Sun, 20 Sep 2026)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
A llvm/test/CodeGen/X86/arbitrary-fp-to-half.ll
Log Message:
-----------
[SelectionDAG] Fix FP8 conversions to half for subnormals and overflow
Preserve subnormal values when the source format and destination have the
same exponent bias. Normalizing these inputs previously produced a
nonpositive destination exponent and an invalid floating-point encoding.
Convert finite values beyond the destination exponent range to infinity,
while preserving the existing NaN handling. This fixes Float8E5M3FNU to
half conversions that previously produced NaNs on overflow.
Add scalar and vector coverage for subnormals, signed zeros, normal
boundaries, all seven overflowing E5M3FNU encodings, and NaNs.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list