From: Uros Bizjak Date: Tue, 29 Sep 2015 11:21:46 +0000 (+0200) Subject: tg-tests.h (foo_1): Also check if f and ld are non-zero for __builtin_signbit tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c357b903daa3f831a34541a9d99469ccce226d54;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 26f4911c365..09a72d9c929 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-09-29 Uros Bizjak + + * 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 PR target/65105 @@ -72,10 +77,10 @@ * gfortran.dg/graphite/block-2.f: Same. 2015-09-28 Aditya Kumar - Sebastian Pop + Sebastian Pop - 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 diff --git a/gcc/testsuite/gcc.dg/tg-tests.h b/gcc/testsuite/gcc.dg/tg-tests.h index a645cc4f452..0cf1f645258 100644 --- a/gcc/testsuite/gcc.dg/tg-tests.h +++ b/gcc/testsuite/gcc.dg/tg-tests.h @@ -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)