[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:38:24 PDT 2024


================
@@ -1007,6 +1023,10 @@ IEEEFloat &IEEEFloat::operator=(IEEEFloat &&rhs) {
 }
 
 bool IEEEFloat::isDenormal() const {
+  // The E8M0 format does not support denormals.
+  if (semantics == &semFloat8E8M0FN)
----------------
durga4github wrote:

Yes, you are right, Matt! This does not need any special handling.
Removed this check in the latest revision.

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


More information about the llvm-commits mailing list