mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-19 11:00:48 +08:00
2014-11-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* gcc.dg/atomic/c11-atomic-exec-5.c (test_main_long_double_add_overflow): Only actually define if LDBL_MANT_DIG != 106. (test_main_complex_long_double_add_overflow): Likewise. (test_main_long_double_sub_overflow): Likewise. (test_main_complex_long_double_sub_overflow): Likewise. (NOT_LDBL_EPSILON_2): Likewise. (NOT_MINUS_LDBL_EPSILON_2): Likewise. From-SVN: r217614
This commit is contained in:
parent
4ecb3002c5
commit
fc8b127a00
@ -1,3 +1,15 @@
|
||||
2014-11-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||
|
||||
* gcc.dg/atomic/c11-atomic-exec-5.c
|
||||
(test_main_long_double_add_overflow): Only actually define if
|
||||
LDBL_MANT_DIG != 106.
|
||||
(test_main_complex_long_double_add_overflow): Likewise.
|
||||
(test_main_long_double_sub_overflow): Likewise.
|
||||
(test_main_complex_long_double_sub_overflow): Likewise.
|
||||
|
||||
(NOT_LDBL_EPSILON_2): Likewise.
|
||||
(NOT_MINUS_LDBL_EPSILON_2): Likewise.
|
||||
|
||||
2014-11-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gcc.target/i386/sibcall-1.c: Don't run on x32 targets,
|
||||
|
@ -331,11 +331,11 @@ TEST_FUNCS (complex_double_div_overflow, _Complex double, , /= DBL_MIN, 0,
|
||||
TEST_FUNCS (long_double_add_invalid, long double, , += __builtin_infl (), 0,
|
||||
0, __builtin_isinf, 0,
|
||||
-__builtin_infl (), FE_INVALID)
|
||||
#if LDBL_MANT_DIG != 106
|
||||
TEST_FUNCS (long_double_add_overflow, long double, , += LDBL_MAX, 0,
|
||||
LDBL_MAX, __builtin_isinf, FE_OVERFLOW | FE_INEXACT,
|
||||
0, 0)
|
||||
#define NOT_LDBL_EPSILON_2(X) ((X) != LDBL_EPSILON / 2)
|
||||
#if LDBL_MANT_DIG != 106
|
||||
TEST_FUNCS (long_double_add_inexact, long double, , += LDBL_EPSILON / 2, 0,
|
||||
1.0L, NOT_LDBL_EPSILON_2, FE_INEXACT,
|
||||
0, 0)
|
||||
@ -348,18 +348,18 @@ TEST_FUNCS (long_double_preinc_inexact, long double, ++, , 0,
|
||||
TEST_FUNCS (long_double_postinc_inexact, long double, , ++, 0,
|
||||
LDBL_EPSILON / 2, NOT_MINUS_1, FE_INEXACT,
|
||||
-1, 0)
|
||||
#endif
|
||||
TEST_FUNCS (complex_long_double_add_overflow, _Complex long double, , += LDBL_MAX, 0,
|
||||
LDBL_MAX, REAL_ISINF, FE_OVERFLOW | FE_INEXACT,
|
||||
0, 0)
|
||||
#endif
|
||||
TEST_FUNCS (long_double_sub_invalid, long double, , -= __builtin_infl (), 0,
|
||||
0, __builtin_isinf, 0,
|
||||
__builtin_infl (), FE_INVALID)
|
||||
#if LDBL_MANT_DIG != 106
|
||||
TEST_FUNCS (long_double_sub_overflow, long double, , -= LDBL_MAX, 0,
|
||||
-LDBL_MAX, __builtin_isinf, FE_OVERFLOW | FE_INEXACT,
|
||||
0, 0)
|
||||
#define NOT_MINUS_LDBL_EPSILON_2(X) ((X) != -LDBL_EPSILON / 2)
|
||||
#if LDBL_MANT_DIG != 106
|
||||
TEST_FUNCS (long_double_sub_inexact, long double, , -= LDBL_EPSILON / 2, 0,
|
||||
-1.0L, NOT_MINUS_LDBL_EPSILON_2, FE_INEXACT,
|
||||
0, 0)
|
||||
@ -372,10 +372,10 @@ TEST_FUNCS (long_double_predec_inexact, long double, --, , 0,
|
||||
TEST_FUNCS (long_double_postdec_inexact, long double, , --, 0,
|
||||
-LDBL_EPSILON / 2, NOT_1, FE_INEXACT,
|
||||
1, 0)
|
||||
#endif
|
||||
TEST_FUNCS (complex_long_double_sub_overflow, _Complex long double, , -= LDBL_MAX, 0,
|
||||
-LDBL_MAX, REAL_ISINF, FE_OVERFLOW | FE_INEXACT,
|
||||
0, 0)
|
||||
#endif
|
||||
TEST_FUNCS (long_double_mul_invalid, long double, , *= __builtin_infl (), 0,
|
||||
__builtin_infl (), __builtin_isinf, 0,
|
||||
0, FE_INVALID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user