llvm-project/flang/test/Evaluate
Peter Klausler 1ef5e6de76 [flang] Make SQRT folding exact
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.

Differential Revision: https://reviews.llvm.org/D128395
2022-06-23 11:16:39 -07:00
..
errors01.f90 [flang] Fold SCALE() 2022-01-15 09:31:00 -08:00
expr01.f90 [flang] Represent (parentheses around derived types) 2021-09-23 13:03:13 -07:00
fold-btest.f90 [flang] Fold BTEST 2021-10-18 13:46:46 -07:00
fold-char-cmp.f90 [flang] Fold LGE/LGT/LLE/LLT intrinsic functions 2021-10-14 15:24:03 -07:00
fold-dble.f90 [flang][Evaluate] Fold DBLE 2022-03-23 17:27:05 +00:00
fold-dim.f90 [flang] Fold real-valued DIM() 2022-05-10 07:45:41 -07:00
fold-findloc.f90 [flang] Support FINDLOC/MAXLOC/MINLOC with scalar mask 2022-04-28 18:59:04 +09:00
fold-ibits.f90 [flang] Fold IBITS() intrinsic function 2022-04-13 17:06:14 -07:00
fold-ishft.f90 [flang] Fix bogus folding error for ISHFT(x, negative) 2021-10-22 10:38:27 -07:00
fold-mod.f90 [flang] Fold real-valued MODULO() and MOD() 2022-05-10 08:15:29 -07:00
fold-nearest.f90 [flang] Fold NEAREST() and its relatives 2022-03-28 11:33:40 -07:00
fold-re-im.f90 [flang] Fold complex component references 2022-05-11 10:04:13 -07:00
fold-scale.f90 [flang] Fold SCALE() 2022-01-15 09:31:00 -08:00
fold-spacing.f90 [flang] Fold intrinsic functions SPACING() and RRSPACING() 2022-05-09 14:09:29 -07:00
fold-spread.f90 [flang] Correct folding of SPREAD() for higher ranks 2022-05-09 15:09:39 -07:00
fold-substr.f90 [flasg] Debug folding of substring references 2022-01-14 16:09:06 -08:00
fold-type.f90 [flang] Fold intrinsic inquiry functions SAME_TYPE_AS() and EXTENDS_TYPE_OF() 2022-05-09 13:38:18 -07:00
folding01.f90 [flang] Fix usage & catch errors for MAX/MIN with keyword= arguments 2021-11-30 12:53:47 -08:00
folding02.f90 [flang] Operands of SIGN() need not have same kind 2022-05-09 14:39:26 -07:00
folding03.f90 [flang] Fold real-valued DIM() 2022-05-10 07:45:41 -07:00
folding04.f90 [flang] Fold real-valued MODULO() and MOD() 2022-05-10 08:15:29 -07:00
folding05.f90 [flang] Accept INDEX(..., BACK=array) 2022-01-19 17:37:24 -08:00
folding06.f90 [flang] Fix ORDER= argument to RESHAPE 2021-11-12 10:25:00 -08:00
folding07.f90 [flang] Fix folding of EXPONENT() intrinsic function 2021-12-04 11:23:09 -08:00
folding08.f90 [flang] Fix UBOUND() constant folding for parentheses expr 2022-04-28 18:56:54 +09:00
folding09.f90 [flang] Return true in IsSymplyContiguous for allocatables 2021-11-29 08:28:26 +01:00
folding10.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding11.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding12.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding13.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding14.f90 [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
folding15.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding16.f90 [flang] Set LBOUND() folding for (x) expression as ones 2022-04-20 20:06:11 +03:00
folding17.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding18.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding20.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding21.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding22.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding23.f90 [flang] Correct folding of CSHIFT and EOSHIFT for DIM>1 2022-06-03 18:59:44 -07:00
folding24.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding25.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding26.f90 [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00
folding27.f90 [flang] Correct folding of CSHIFT and EOSHIFT for DIM>1 2022-06-03 18:59:44 -07:00
folding28.f90 [flang] Make SQRT folding exact 2022-06-23 11:16:39 -07:00
folding29.f90 [flang] Fold COUNT() 2021-09-16 17:09:23 -07:00
folding30.f90 [flang] Fix folding of ac-implied-do indices in structure c'tors 2021-12-09 18:03:04 -08:00
rewrite01.f90 [flang] Address regression (calls to assumed-length character function dummy procedures) 2022-05-25 12:00:07 -07:00
test_folding.py [Flang] Port test_folding.sh to Python 2021-09-06 13:54:56 +00:00