From fc8b127a0034fa11963a86fe363b3aa9669fc733 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Sat, 15 Nov 2014 23:17:46 +0000 Subject: [PATCH] 2014-11-15 Adhemerval Zanella * 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 --- gcc/testsuite/ChangeLog | 12 ++++++++++++ gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6deeca4ff91..4b55f47f7b2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2014-11-15 Adhemerval Zanella + + * 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 * gcc.target/i386/sibcall-1.c: Don't run on x32 targets, diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c index 7166042ba7f..d8bddfd9961 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c @@ -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) -- 2.30.2