[all-commits] [llvm/llvm-project] 7476d5: Fix APFloat::toString on Float8E5M2 values.

Reed via All-commits all-commits at lists.llvm.org
Tue Dec 13 00:52:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7476d59414d3f94b6e14e6917a6c1151135a28c1
      https://github.com/llvm/llvm-project/commit/7476d59414d3f94b6e14e6917a6c1151135a28c1
  Author: Reed <reedwm at google.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M llvm/lib/Support/APFloat.cpp
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  Fix APFloat::toString on Float8E5M2 values.

Before, an APInt with value 10 was created, whose width was the significand width. But 10 cannot fit in Float8E5M2's significand.

Differential Revision: https://reviews.llvm.org/D138540




More information about the All-commits mailing list