[llvm] [APFloat] Add APFloat support for E8M0 type (PR #107127)
Durgadoss R via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 06:41:31 PDT 2024
================
@@ -1075,6 +1099,11 @@ bool IEEEFloat::isSignificandAllOnesExceptLSB() const {
}
bool IEEEFloat::isSignificandAllZeros() const {
+ // For the E8M0 format, this is always true since there are no
+ // actual significand bits.
+ if (semantics == &semFloat8E8M0FN)
+ return true;
----------------
durga4github wrote:
We can handle these with precision checks along with the existing conditions.
So, in the latest revision, I have removed all the type-based checks.
https://github.com/llvm/llvm-project/pull/107127
More information about the llvm-commits
mailing list