Commit c357b903 by Uros Bizjak

tg-tests.h (foo_1): Also check if f and ld are non-zero for __builtin_signbit tests.

	* gcc.dg/tg-tests.h (foo_1) [UNSAFE]: Also check if f and ld are
	non-zero for __builtin_signbit tests.

From-SVN: r228240
parent 006ba504
2015-09-29 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/tg-tests.h (foo_1) [UNSAFE]: Also check if f and ld are
non-zero for __builtin_signbit tests.
2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com> 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
PR target/65105 PR target/65105
...@@ -72,10 +77,10 @@ ...@@ -72,10 +77,10 @@
* gfortran.dg/graphite/block-2.f: Same. * gfortran.dg/graphite/block-2.f: Same.
2015-09-28 Aditya Kumar <aditya.k7@samsung.com> 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com> Sebastian Pop <s.pop@samsung.com>
PR tree-optimization/67700 PR tree-optimization/67700
* testsuite/gcc.dg/graphite/run-id-pr67700.c: New. * testsuite/gcc.dg/graphite/run-id-pr67700.c: New.
2015-09-28 Oleg Endo <olegendo@gcc.gnu.org> 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
......
...@@ -82,7 +82,7 @@ foo_1 (float f, double d, long double ld, ...@@ -82,7 +82,7 @@ foo_1 (float f, double d, long double ld,
/* Sign bit of zeros and nans is not preserved in unsafe math mode. */ /* Sign bit of zeros and nans is not preserved in unsafe math mode. */
#ifdef UNSAFE #ifdef UNSAFE
if (!res_isnan && d != 0) if (!res_isnan && f != 0 && d != 0 && ld != 0)
#endif #endif
{ {
if ((__builtin_signbit (f) ? 1 : 0) != res_signbit) if ((__builtin_signbit (f) ? 1 : 0) != res_signbit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment