Reduce fallout for avr.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 2 Feb 2018 12:24:34 +0000 (12:24 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 2 Feb 2018 12:24:34 +0000 (12:24 +0000)
* lib/target-supports.exp
(check_effective_target_keeps_null_pointer_checks): No more
special-case avr.
* gcc.dg/tree-ssa/pr21086.c (dg-final): Special-case avr.
* gcc.dg/ifcvt-4.c: Skip avr.
* gcc.dg/pr53037-1.c: Dito.
* gcc.dg/pr53037-2.c: Dito.
* gcc.dg/pr53037-3.c: Dito.
* gcc.dg/pr63387-2.c: Dito.
* gcc.dg/pr63387.c: Dito.
* gcc.dg/sancov/cmp0.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-1.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-10.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-11.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-1b.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-2.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-3.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-4.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-5.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-6.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-7.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-8.c: Dito.
* gcc.dg/tree-ssa/loop-interchange-9.c: Dito.
* gcc.dg/tree-ssa/pr82059.c: Dito.
* gcc.c-torture/execute/pr70460.c: Dito.

From-SVN: r257328

24 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr70460.c
gcc/testsuite/gcc.dg/ifcvt-4.c
gcc/testsuite/gcc.dg/pr53037-1.c
gcc/testsuite/gcc.dg/pr53037-2.c
gcc/testsuite/gcc.dg/pr53037-3.c
gcc/testsuite/gcc.dg/pr63387-2.c
gcc/testsuite/gcc.dg/pr63387.c
gcc/testsuite/gcc.dg/sancov/cmp0.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-10.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-2.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-3.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-5.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-6.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-7.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-8.c
gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-9.c
gcc/testsuite/gcc.dg/tree-ssa/pr21086.c
gcc/testsuite/gcc.dg/tree-ssa/pr82059.c
gcc/testsuite/lib/target-supports.exp

index 6bc8ede0314622747d106d529f12ceab763f232a..21c8134e65ba8c7d7e76350506cbf947232131e5 100644 (file)
@@ -1,3 +1,31 @@
+2018-02-02  Georg-Johann Lay  <avr@gjlay.de>
+
+       * lib/target-supports.exp
+       (check_effective_target_keeps_null_pointer_checks): No more
+       special-case avr.
+       * gcc.dg/tree-ssa/pr21086.c (dg-final): Special-case avr.
+       * gcc.dg/ifcvt-4.c: Skip avr.
+       * gcc.dg/pr53037-1.c: Dito.
+       * gcc.dg/pr53037-2.c: Dito.
+       * gcc.dg/pr53037-3.c: Dito.
+       * gcc.dg/pr63387-2.c: Dito.
+       * gcc.dg/pr63387.c: Dito.
+       * gcc.dg/sancov/cmp0.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-1.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-10.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-11.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-1b.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-2.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-3.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-4.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-5.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-6.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-7.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-8.c: Dito.
+       * gcc.dg/tree-ssa/loop-interchange-9.c: Dito.
+       * gcc.dg/tree-ssa/pr82059.c: Dito.
+       * gcc.c-torture/execute/pr70460.c: Dito.
+
 2018-02-02  Georg-Johann Lay  <avr@gjlay.de>
 
        PR testsuite/52641
index acc57511ae2be3793c3b53e3fe70c772e81f9fef..04fa1efc19937bcc5c9e3ae7539929741b7eb64a 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-require-effective-target indirect_jumps } */
 /* { dg-require-effective-target label_values } */
+/* { dg-skip-if "label differences not supported" { avr-*-* } } */
 
 /* PR rtl-optimization/70460 */
 
index 87bae3cbe440f942fd2f1a9d7d987c333ec09740..52827abe3b0e22fd342574bd39f236a4ba556496 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
 /* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */
 /* { dg-additional-options "-mtune-ctrl=^one_if_conv_insn" { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } }  */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } }  */
 /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } }  */
 
 typedef int word __attribute__((mode(word)));
index 93af0a50cd4735bc5a111806b0892daa3e6874d3..ce0715c32e4475679bf25538c87531c7facd0ee1 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/53037.  */
 /* { dg-do compile } */
 /* { dg-options "-O0" } */
+/* { dg-skip-if "" { avr-*-* } } */
 
 typedef unsigned long long __u64
   __attribute__((aligned(4),warn_if_not_aligned(8)));
index f9934a63e1762b7e3d2b9258760be8d3243f5c99..f17fbf7da0cc27d19714c46518e27c809c42d898 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/53037.  */
 /* { dg-do compile } */
 /* { dg-options "-O0 -Wpacked-not-aligned" } */
+/* { dg-skip-if "" { avr-*-* } } */
 
 struct __attribute__ ((aligned (8))) S8 { char a[8]; };
 struct __attribute__ ((packed)) S1 {
index fc69ae8e52e12e6eddbfe410e5b697bf3fc33e80..6960de0e991d309092e350baa23a10666eb60a5e 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/53037.  */
 /* { dg-do compile } */
 /* { dg-options "-O0 -Wall" } */
+/* { dg-skip-if "" { avr-*-* } } */
 
 struct __attribute__ ((aligned (8))) S8 { char a[8]; };
 struct __attribute__ ((packed)) S1 {
index 0ce7ab21b88e8bc0e3311cfc38aaa1ee2a7670fa..61af608514018b11d014fb1c0607e9d6da6d95ac 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-optimized" } */
+/* { dg-skip-if "using short-double" { avr-*-* } } */
 
 int f(double aaa, double bbb){
   int xa = !__builtin_isunordered(aaa, aaa);
index 1f1078483c404c63c2439b79a53fb57269840578..12cddf3a60ff020c4583c2fb2736d1edddeb8ac1 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-optimized" } */
+/* { dg-skip-if "using short-double" { avr-*-* } } */
 
 int f(double aaa, double bbb){
   int xa = __builtin_isunordered(aaa, aaa);
index 3a17de91ce29625a732595a33d3f97f207a27672..25a166a55d74654c8ea8cf93e2644d60addddb11 100644 (file)
@@ -1,6 +1,7 @@
 /* Basic test on number of inserted callbacks.  */
 /* { dg-do compile } */
 /* { dg-options "-fsanitize-coverage=trace-cmp -fdump-tree-optimized" } */
+/* { dg-skip-if "different type layout" { avr-*-* } } */
 
 void
 foo (char *a, short *b, int *c, long long *d, float *e, double *f)
index e5d2895a17bc1c0010fa4aa15b99b56824c7b756..4a81e128e160a1a0bdac561ca2c6309ed574f6b6 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fassociative-math -fno-signed-zeros -fno-trapping-math -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 /* Copied from graphite/interchange-4.c */
 
index 76c8318d724a60859e4a67a4f245521471e08cf2..57357569965b35b024420edd7a96c610a193f5ea 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M];
index a4d656ae830c82dc07fc852b6c63b149b957d21e..2a1b340a07b748485447b189093a7678d686eb35 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M];
index 27e0e2dc08e949484eded629205d7a073b015893..7de2b403005a4d70268b289dab1c6b6e5b41c7ca 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 /* Copied from graphite/interchange-4.c */
 
index a1305e3e400e546ea4a2ab6b046eaabcf98e1ecf..247adc98c700ebf29640029cb518222d00c9810c 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 /* Copied from graphite/interchange-5.c */
 
index e4515feb7e30620fb1f9b967f0def90241e4a287..b239230157da725bd039734145790d9e8bf4320b 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big stack" { visium-*-* } } */
+/* { dg-skip-if "too big stack" { avr-*-* visium-*-* } } */
 
 /* Copied from graphite/interchange-6.c */
 
index 51dbbcd6a3fa34d290ab489034bac653fcf91402..009a3057c1608a6e69dc0a2ea93658aafefb74fd 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
 /* { dg-require-stack-size "8*111*1111" } */
-/* { dg-skip-if "too big stack" { visium-*-* } } */
+/* { dg-skip-if "too big stack" { avr-*-* visium-*-* } } */
 
 /* Copied from graphite/interchange-7.c */
 
index ea19edd820bbbf1ddcb8dfcf82359b55f51b38f8..8f13cd4617b384ad3c893d3d710614917a5874d9 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M], c[M][M], d[M][M];
index cedcc67a0e601b69092baba4cbe8eb211c552ed4..a38fd9d28d4eb6f12762109ee79f54b1c2cd9173 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M], c[M][M], d[M][M];
index c475b7cf63145dc13ead1bf0695d9bb4bc37b2f4..e6ad26f2a4e9f8c198257c0d4c0b00c8ac834f78 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M], c[M][M], d[M][M];
index b983107356b51df14a31c8374ed5b90a247d56e7..5ed300aa165b6ef8fc90bb6b5af3a2fe33b47329 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M], c[M][M], d[M][M];
index 210da8dc791efaa34aeddd3c666b5804c75fb246..a984e47d85429cbbc5433074e33962b379b12378 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
-/* { dg-skip-if "too big data segment" { visium-*-* } } */
+/* { dg-skip-if "too big data segment" { avr-*-* visium-*-* } } */
 
 #define M 256
 int a[M][M], b[M][M], c[M], d[M];
index 950371ba55d2d1aa1920654b3cf499e7addf431d..aadd53e2237bf1625a0b57b560babe3ba4bdef6a 100644 (file)
@@ -18,5 +18,3 @@ foo (int *p)
 /* Target disabling -fdelete-null-pointer-checks should not fold checks */
 /* { dg-final { scan-tree-dump "Folding predicate " "vrp1" { target { ! keeps_null_pointer_checks } } } } */
 /* { dg-final { scan-tree-dump-times "Folding predicate " 0 "vrp1" { target {   keeps_null_pointer_checks } } } } */
-/* { dg-final { scan-tree-dump-not "b_. =" "dce2" { target { ! avr-*-* } } } } */
-/* { dg-final { scan-tree-dump "b_. =" "dce2" { target { avr-*-* } } } } */
index 0285b03cc04e57b9fd254ea01c819d3c5dcf45bd..6421101b86777223d19ed8b9c730fd106c0cad69 100644 (file)
@@ -1,6 +1,7 @@
 /* PR tree-optimization/82059 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-isolate-paths" } */
+/* { dg-skip-if "accessing data memory with program memory address" { avr-*-* } } */
 
 struct a
 {
index 8bb809503c60d858a60f904034c6ffe1a683df73..8479290f62b31334b666434d2b6b094471e79519 100644 (file)
@@ -557,8 +557,7 @@ proc check_effective_target_keeps_null_pointer_checks { } {
     if [target_info exists keeps_null_pointer_checks] {
       return 1
     }
-    if { [istarget avr-*-*]
-        || [istarget msp430-*-*] } {
+    if { [istarget msp430-*-*] } {
        return 1;   
     }
     return 0