[llvm] [APFloat] Add APFloat support for E8M0 type (PR #107127)
    Durgadoss R via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Sep 16 04:22:23 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:
I had pinged you in discord last week with some more details and requested another review here.
Thanks for taking another look, Matt!
https://github.com/llvm/llvm-project/pull/107127
    
    
More information about the llvm-commits
mailing list