[llvm] [APFloat] Add APFloat support for E8M0 type (PR #107127)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 11:44:14 PDT 2024
================
@@ -396,6 +404,8 @@ static inline Error createError(const Twine &Err) {
}
static constexpr inline unsigned int partCountForBits(unsigned int bits) {
+ if (bits == 0)
+ return 1;
----------------
arsenm wrote:
Can avoid reaching here?
https://github.com/llvm/llvm-project/pull/107127
More information about the llvm-commits
mailing list