[flang-commits] [PATCH] D128395: [flang] Make SQRT folding exact

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jun 22 15:43:02 PDT 2022


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Replace the latter half of the SQRT() folding algorithm with code that
calculates an exact root with extra rounding bits, and then lets the
usual normalization and rounding code do the right thing.  Extend
tests to catch regressions.


https://reviews.llvm.org/D128395

Files:
  flang/lib/Evaluate/real.cpp
  flang/test/Evaluate/folding28.f90
  flang/unittests/Evaluate/real.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128395.439193.patch
Type: text/x-patch
Size: 6708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220622/abdd48ea/attachment.bin>


More information about the flang-commits mailing list