[flang] Fix test regression from SQRT folding
authorpeter klausler <pklausler@nvidia.com>
Tue, 28 Sep 2021 22:43:27 +0000 (15:43 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 30 Sep 2021 18:35:44 +0000 (11:35 -0700)
commit691814f9cc79ff3b63cb53946a88c4db9c1f048d
tree685e9b0d95cbf968f0c0b70c992106295b54bdf7
parent8dfbe9b0aeb6d45975d453dfed828068c63c225e
[flang] Fix test regression from SQRT folding

The algorithm used to fold SQRT has some holes that
led to test failures; debug and add more tests.

Differential Revision: https://reviews.llvm.org/D110744
flang/lib/Evaluate/real.cpp
flang/test/Evaluate/folding28.f90