re PR tree-optimization/89437 (incorrect result for sinl (atanl (x)))
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 4 Mar 2019 12:36:04 +0000 (12:36 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 4 Mar 2019 12:36:04 +0000 (12:36 +0000)
commit5f054b17f826e2cfb4c76020bce79b2ed99bb9f9
tree42a53f947d241a902a03d45985896fc39d2e72df
parent19d4e4d614655cf76d87522855103c01d029b2cf
re PR tree-optimization/89437 (incorrect result for sinl (atanl (x)))

Fix PR89437

Fix PR89437. Fix the sinatan-1.c testcase to not run without
a C99 target system.  Use nextafterl for long double initialization.

Fix an issue with sinl (atanl (sqrtl (LDBL_MAX)) returning 0.0
instead of 1.0 by using x < sqrtl (LDBL_MAX) in match.pd.

    gcc/
PR tree-optimization/89437
* match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.

    testsuite/
PR tree-optimization/89437
* gcc.dg/sinatan-1.c: Fix testcase.

From-SVN: r269364
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sinatan-1.c