[testsuite] Fix order of dg-do and dg-require-effective-target directives
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 30 Sep 2015 08:14:03 +0000 (08:14 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Wed, 30 Sep 2015 08:14:03 +0000 (10:14 +0200)
2015-09-30  Christophe Lyon  <christophe.lyon@linaro.org>

* 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

21 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/stdint.C
gcc/testsuite/g++.dg/gomp/tls-wrap4.C
gcc/testsuite/gcc.dg/atomic-op-optimize.c
gcc/testsuite/gcc.dg/pr54087.c
gcc/testsuite/gcc.dg/tls/section-2.c
gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c
gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c
gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c
gcc/testsuite/gcc.target/arm/divzero.c
gcc/testsuite/gcc.target/arm/sibcall-2.c
gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c
gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-1.c
gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-2.c
gcc/testsuite/gcc.target/arm/thumb1-load-64bit-constant-3.c
gcc/testsuite/gcc.target/arm/volatile-bitfields-1.c
gcc/testsuite/gcc.target/arm/volatile-bitfields-2.c
gcc/testsuite/gcc.target/arm/volatile-bitfields-3.c
gcc/testsuite/gcc.target/arm/volatile-bitfields-4.c
gcc/testsuite/gfortran.dg/default_format_2.f90
gcc/testsuite/gfortran.dg/default_format_denormal_2.f90

index 83bba5bc52cab77e1fcb26d6d0a8fa9834ea7ae0..da03478c028318f96c1c0033b55379315ca4653c 100644 (file)
@@ -1,3 +1,28 @@
+2015-09-30  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * 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  <jonathan@codesourcery.com>
 
        * gcc.dg/debug/pr65771.c: Use tls_runtime instead of tls.
index 434d4582415678a7e01976849e669d50e86cd3de..6c213d7fc0bf69f2678c56342bb99f15451d54f3 100644 (file)
@@ -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 <stdint.h>
 
index 59a56839050c957d76a67f4ed748ec1eaf89571d..dca249d441d04b8064a153a484d4db513cf19f38 100644 (file)
@@ -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-*-* } } }
 
index d2e960a0ceee044e240d95b65146edc8d3dbefc6..66efee4bb28ca38440bd74c5ca0d0e5866d13c93 100644 (file)
@@ -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 } } */
 
index abb0af3d9bb36deb7e7c88bf3b4e1f579dbd19b6..5874e9cd7bd4baeeb80461d10aac83e77cee3ca8 100644 (file)
@@ -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 } } */
 
 
index 8f11def96f980549b866808e433e1a8fd11cb536..9c213074c91c2216b65c3aefd5bd6aeb5cd7e1ca 100644 (file)
@@ -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)))
 
index bf6053dde8f1100d4096664300da2bc6822ac564..409e68575c2f2f372c58db3c78cbf31591b348c6 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target vect_int } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
 
 #define N 16 
 
index e0093c4a38bb7f2004ff23144746255d118c99a0..5b5dd1bbd27b6f7ebbf1c1943d393941c29d99e2 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target vect_float } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_float } */
 
 #include <stdlib.h>
 #include "../../tree-vect.h"
index f801e763f923f5b593a9466a25188c5b787cc19b..d19d42cc0489b47ba1f623506eedb00063ee2c63 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target vect_int } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
 
 #include <stdarg.h>
 #include "tree-vect.h"
index 7d398a5683b10f67081c855915f5366393d3b5de..b0057638d983478e731773bd2992dabb7f5773e8 100644 (file)
@@ -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.  */
index 921c0f30284bb77f522f77c089628b950098a3da..52cd307a484226d114eb84b7b4bd1fa4ce637c5a 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target arm_eabi } */
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_eabi } */
 /* { dg-options "-O2 -mabi=aapcs" } */
 
 
index 08d735c6ca07de3c4c7fd5705cfa7bf3b5ea0ec5..b989c420830a6bd2bbe997740c443e3e060f9861 100644 (file)
@@ -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 } } } */
 
index 9537aafa1ba25b2539ade584d8e7aa9885bbc6ac..59e9a8df1bed6f0068e4219b60c3eb086e236524 100644 (file)
@@ -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 } } } */
 
index 836682b475dd3420a9793fcc2ecf0d2f4b0a2ad5..f542ad3f477288fb887c66461007fa0749fdc991 100644 (file)
@@ -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 } } } */
 
index b53ed8b6edddf0203a5c10d343788fffa100c0e8..0a1848489ec69d4ceae1d841cb8d78abdcdd511a 100644 (file)
@@ -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 } } } */
 
index c519419ccf9412775d7acfb6a0159b26a8ede954..d841ca1c2b286e69cd2b18ba9c8eea83bb08f6e1 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target arm_eabi } */
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_eabi } */
 /* { dg-options "-O2" } */
 
 typedef struct {
index eb0aaf7f7e6e7663bc74d918292258eedb0ee613..ea1af391fccaa50429611653b1198b7e8b61c774 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target arm_eabi } */
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_eabi } */
 /* { dg-options "-O2" } */
 
 typedef struct {
index 0f5dde08b47f5033916661c760023f199e1cc467..4580da0d60a45629515f28ed6f9c043e11981464 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target arm_eabi } */
 /* { dg-do compile } */
+/* { dg-require-effective-target arm_eabi } */
 /* { dg-options "-O2" } */
 
 typedef struct {
index 805dab16428d6a9bdd527b803dd46f2737c58f31..4256965344de3a76205a2bd0d4ba48cf99ac880b 100644 (file)
@@ -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 } } */
index e970090aa1d5e699a6da43cef694bd4ee2e00d3c..9c5af7bec12cc75a91a4e446ed2f4012e0b3503a 100644 (file)
@@ -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
 !
index 6134a562531ffcf5a282a883ca1f46faaa5d0402..58cd9876001f30d0372066b878ad4ac3fd5594e6 100644 (file)
@@ -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
 !