[all-commits] [llvm/llvm-project] 4ae338: APFloat: fix wrong result status for large floats ...

Luca Ciucci via All-commits all-commits at lists.llvm.org
Mon May 4 15:59:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ae338ff2339a9f5d9161600a7d95d6a90f6ca51
      https://github.com/llvm/llvm-project/commit/4ae338ff2339a9f5d9161600a7d95d6a90f6ca51
  Author: Luca Ciucci <luca.ciucci99 at gmail.com>
  Date:   2026-05-04 (Mon, 04 May 2026)

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

  Log Message:
  -----------
  APFloat: fix wrong result status for large floats (#189925)

For large float literals such as
`10384593717069655257060992658440193.0`,
[`FloatingLiteral::isExact`](https://github.com/llvm/llvm-project/blob/6b2b0da40de1495ace2b100799a35711f7ad7b21/clang/include/clang/AST/Expr.h#L1702)
was incorrectly returning `true`.

The issue has been tracked down to
`IEEEFloat::roundSignificandWithExponent` incorrectly reporting `opOK`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list