[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:44:57 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:

Matt, Kindly take a look and let me know if the latest revision looks good.

https://github.com/llvm/llvm-project/pull/107127


More information about the llvm-commits mailing list