From: Christophe Lyon Date: Wed, 30 Sep 2015 08:14:03 +0000 (+0000) Subject: [testsuite] Fix order of dg-do and dg-require-effective-target directives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54cd497b0d403dc63fc7db55db3eb77045e23015;p=gcc.git [testsuite] Fix order of dg-do and dg-require-effective-target directives 2015-09-30 Christophe Lyon * g++.dg/cpp0x/stdint.C: Move dg-require-effective-target after dg-do. * g++.dg/gomp/tls-wrap4.C: Likewise. * gcc.dg/atomic-op-optimize.c: Likewise. * gcc.dg/pr54087.c: Likewise. * gcc.dg/tls/section-2.c: Likewise. * gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: Likewise. * gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c: Likewise. * gcc.dg/vect/trapv-vect-reduc-4.c: Likewise. * gcc.target/arm/divzero.c: Likewise. * gcc.target/arm/sibcall-2.c: Likewise. * gcc.target/arm/thumb1-Os-mult.c: Likewise. * gcc.target/arm/thumb1-load-64bit-constant-1.c: Likewise. * gcc.target/arm/thumb1-load-64bit-constant-2.c: Likewise. * gcc.target/arm/thumb1-load-64bit-constant-3.c: Likewise. * gcc.target/arm/volatile-bitfields-1.c: Likewise. * gcc.target/arm/volatile-bitfields-2.c: Likewise. * gcc.target/arm/volatile-bitfields-3.c: Likewise. * gcc.target/arm/volatile-bitfields-4.c: Likewise. * gfortran.dg/default_format_2.f90: Likewise. * gfortran.dg/default_format_denormal_2.f90: Likewise. From-SVN: r228280 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 83bba5bc52c..da03478c028 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,28 @@ +2015-09-30 Christophe Lyon + + * g++.dg/cpp0x/stdint.C: Move dg-require-effective-target after + dg-do. + * g++.dg/gomp/tls-wrap4.C: Likewise. + * gcc.dg/atomic-op-optimize.c: Likewise. + * gcc.dg/pr54087.c: Likewise. + * gcc.dg/tls/section-2.c: Likewise. + * gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: + Likewise. + * gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c: Likewise. + * gcc.dg/vect/trapv-vect-reduc-4.c: Likewise. + * gcc.target/arm/divzero.c: Likewise. + * gcc.target/arm/sibcall-2.c: Likewise. + * gcc.target/arm/thumb1-Os-mult.c: Likewise. + * gcc.target/arm/thumb1-load-64bit-constant-1.c: Likewise. + * gcc.target/arm/thumb1-load-64bit-constant-2.c: Likewise. + * gcc.target/arm/thumb1-load-64bit-constant-3.c: Likewise. + * gcc.target/arm/volatile-bitfields-1.c: Likewise. + * gcc.target/arm/volatile-bitfields-2.c: Likewise. + * gcc.target/arm/volatile-bitfields-3.c: Likewise. + * gcc.target/arm/volatile-bitfields-4.c: Likewise. + * gfortran.dg/default_format_2.f90: Likewise. + * gfortran.dg/default_format_denormal_2.f90: Likewise. + 2015-09-29 Jonathan Roelofs * gcc.dg/debug/pr65771.c: Use tls_runtime instead of tls. diff --git a/gcc/testsuite/g++.dg/cpp0x/stdint.C b/gcc/testsuite/g++.dg/cpp0x/stdint.C index 434d4582415..6c213d7fc0b 100644 --- a/gcc/testsuite/g++.dg/cpp0x/stdint.C +++ b/gcc/testsuite/g++.dg/cpp0x/stdint.C @@ -1,6 +1,6 @@ // PR c++/52764 -// { dg-require-effective-target stdint_types } // { dg-do compile { target c++11 } } +// { dg-require-effective-target stdint_types } #include diff --git a/gcc/testsuite/g++.dg/gomp/tls-wrap4.C b/gcc/testsuite/g++.dg/gomp/tls-wrap4.C index 59a56839050..dca249d441d 100644 --- a/gcc/testsuite/g++.dg/gomp/tls-wrap4.C +++ b/gcc/testsuite/g++.dg/gomp/tls-wrap4.C @@ -1,8 +1,8 @@ // We don't need to call the wrapper through the PLT; we can use a separate // copy per shared object. -// { dg-require-effective-target tls } // { dg-do compile { target c++11 } } +// { dg-require-effective-target tls } // { dg-options "-fPIC" } // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } } diff --git a/gcc/testsuite/gcc.dg/atomic-op-optimize.c b/gcc/testsuite/gcc.dg/atomic-op-optimize.c index d2e960a0cee..66efee4bb28 100644 --- a/gcc/testsuite/gcc.dg/atomic-op-optimize.c +++ b/gcc/testsuite/gcc.dg/atomic-op-optimize.c @@ -2,8 +2,8 @@ Test that it at happens on x86 by making sure there are 2 xchg's and no compare_exchange loop. */ -/* { dg-require-effective-target sync_int_long } */ /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target sync_int_long } */ /* { dg-final { scan-assembler-times "cmpxchg" 0 } } */ /* { dg-final { scan-assembler-times "xchg" 2 } } */ diff --git a/gcc/testsuite/gcc.dg/pr54087.c b/gcc/testsuite/gcc.dg/pr54087.c index abb0af3d9bb..5874e9cd7bd 100644 --- a/gcc/testsuite/gcc.dg/pr54087.c +++ b/gcc/testsuite/gcc.dg/pr54087.c @@ -1,7 +1,7 @@ /* PR54087. Verify __atomic_sub (val) uses __atomic_add (-val) if there is no atomic_aub. */ -/* { dg-require-effective-target sync_int_long } */ /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target sync_int_long } */ /* { dg-final { scan-assembler-times "xadd" 2 } } */ diff --git a/gcc/testsuite/gcc.dg/tls/section-2.c b/gcc/testsuite/gcc.dg/tls/section-2.c index 8f11def96f9..9c213074c91 100644 --- a/gcc/testsuite/gcc.dg/tls/section-2.c +++ b/gcc/testsuite/gcc.dg/tls/section-2.c @@ -1,7 +1,7 @@ /* Verify that we get errors for trying to put TLS data in sections which can't work. */ -/* { dg-require-effective-target tls } */ /* { dg-do compile { target *-*-vxworks } } */ +/* { dg-require-effective-target tls } */ #define A(X) __attribute__((section(X))) diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c index bf6053dde8f..409e68575c2 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target vect_int } */ /* { dg-do compile } */ +/* { dg-require-effective-target vect_int } */ #define N 16 diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c index e0093c4a38b..5b5dd1bbd27 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target vect_float } */ /* { dg-do compile } */ +/* { dg-require-effective-target vect_float } */ #include #include "../../tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c index f801e763f92..d19d42cc048 100644 --- a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c +++ b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target vect_int } */ /* { dg-do compile } */ +/* { dg-require-effective-target vect_int } */ #include #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.target/arm/divzero.c b/gcc/testsuite/gcc.target/arm/divzero.c index 7d398a5683b..b0057638d98 100644 --- a/gcc/testsuite/gcc.target/arm/divzero.c +++ b/gcc/testsuite/gcc.target/arm/divzero.c @@ -1,6 +1,6 @@ +/* { dg-do run } */ /* { dg-require-effective-target arm_eabi } */ /* { dg-options "" } */ -/* { dg-do run } */ /* Check that long long divmod functions pass the right argument to __aeabi_ldiv0 on divide by zero. */ diff --git a/gcc/testsuite/gcc.target/arm/sibcall-2.c b/gcc/testsuite/gcc.target/arm/sibcall-2.c index 921c0f30284..52cd307a484 100644 --- a/gcc/testsuite/gcc.target/arm/sibcall-2.c +++ b/gcc/testsuite/gcc.target/arm/sibcall-2.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_eabi } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_eabi } */ /* { dg-options "-O2 -mabi=aapcs" } */ diff --git a/gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c b/gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c index 08d735c6ca0..b989c420830 100644 --- a/gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c +++ b/gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-options "-Os" } */ /* { dg-skip-if "" { ! { arm_thumb1 } } } */ diff --git a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-1.c b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-1.c index 9537aafa1ba..59e9a8df1be 100644 --- a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-1.c +++ b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-1.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-options "-Os" } */ /* { dg-skip-if "" { ! { arm_thumb1 } } } */ diff --git a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-2.c b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-2.c index 836682b475d..f542ad3f477 100644 --- a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-2.c +++ b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-2.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-options "-O2" } */ /* { dg-skip-if "" { ! { arm_thumb1 } } } */ diff --git a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-3.c b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-3.c index b53ed8b6edd..0a1848489ec 100644 --- a/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-3.c +++ b/gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-3.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_thumb1_ok } */ /* { dg-options "-Os" } */ /* { dg-skip-if "" { ! { arm_thumb1 } } } */ diff --git a/gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c b/gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c index c519419ccf9..d841ca1c2b2 100644 --- a/gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c +++ b/gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_eabi } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_eabi } */ /* { dg-options "-O2" } */ typedef struct { diff --git a/gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c b/gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c index eb0aaf7f7e6..ea1af391fcc 100644 --- a/gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c +++ b/gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_eabi } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_eabi } */ /* { dg-options "-O2" } */ typedef struct { diff --git a/gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c b/gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c index 0f5dde08b47..4580da0d60a 100644 --- a/gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c +++ b/gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_eabi } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_eabi } */ /* { dg-options "-O2" } */ typedef struct { diff --git a/gcc/testsuite/gcc.target/arm/volatile-bitfields-4.c b/gcc/testsuite/gcc.target/arm/volatile-bitfields-4.c index 805dab16428..4256965344d 100644 --- a/gcc/testsuite/gcc.target/arm/volatile-bitfields-4.c +++ b/gcc/testsuite/gcc.target/arm/volatile-bitfields-4.c @@ -1,5 +1,5 @@ -/* { dg-require-effective-target arm_eabi } */ /* { dg-do compile } */ +/* { dg-require-effective-target arm_eabi } */ /* { dg-options "-O2" } */ /* { dg-final { scan-assembler-times "ldr\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" 2 } } */ /* { dg-final { scan-assembler-times "str\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" 2 } } */ diff --git a/gcc/testsuite/gfortran.dg/default_format_2.f90 b/gcc/testsuite/gfortran.dg/default_format_2.f90 index e970090aa1d..9c5af7bec12 100644 --- a/gcc/testsuite/gfortran.dg/default_format_2.f90 +++ b/gcc/testsuite/gfortran.dg/default_format_2.f90 @@ -1,5 +1,5 @@ -! { dg-require-effective-target fortran_large_real } ! { dg-do run { xfail powerpc*-apple-darwin* powerpc*-*-linux* } } +! { dg-require-effective-target fortran_large_real } ! Test XFAILed on these platforms because the system's printf() lacks ! proper support for denormalized long doubles. See PR24685 ! diff --git a/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 b/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 index 6134a562531..58cd9876001 100644 --- a/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 +++ b/gcc/testsuite/gfortran.dg/default_format_denormal_2.f90 @@ -1,5 +1,5 @@ -! { dg-require-effective-target fortran_large_real } ! { dg-do run { xfail powerpc*-apple-darwin* } } +! { dg-require-effective-target fortran_large_real } ! Test XFAILed on this platform because the system's printf() lacks ! proper support for denormalized long doubles. See PR24685 !