* gcc.dg/tg-tests.h (foo_1) [UNSAFE]: Also check if f and ld are
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2015 11:21:46 +0000 (11:21 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2015 11:21:46 +0000 (11:21 +0000)
non-zero for __builtin_signbit tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228240 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tg-tests.h

index 26f4911..09a72d9 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR target/65105
        * gfortran.dg/graphite/block-2.f: Same.
 
 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
-        * testsuite/gcc.dg/graphite/run-id-pr67700.c: New.
+       PR tree-optimization/67700
+       * testsuite/gcc.dg/graphite/run-id-pr67700.c: New.
 
 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
 
index a645cc4..0cf1f64 100644 (file)
@@ -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.  */
 #ifdef UNSAFE
-  if (!res_isnan && d != 0)
+  if (!res_isnan && f != 0 && d != 0 && ld != 0)
 #endif
     {
       if ((__builtin_signbit (f) ? 1 : 0) != res_signbit)