[testsuite] Fix more bogus failures for avr

Message ID 87h99zzxae.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj Sept. 1, 2016, 11:15 a.m.
Hi,

  The below patch fixes some bogus testsuite failures for the avr
  target. The first three expect 32 bit ints, and the last one uses too
  much RAM for a typical avr device.

  Regtested with avr and x86_64-pc-linux, and committed to trunk.

Regards
Senthil


gcc/testsuite/ChangeLog

2016-09-01  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

        * gcc.dg/pr64252.c: Require int32plus.
        * gcc.dg/pr66299-1.c: Likewise.
        * gcc.dg/pr66299-2.c: Likewise.
        * gcc.dg/torture/20131115-1.c: Skip for avr.

Patch

Index: gcc/testsuite/gcc.dg/pr64252.c
===================================================================
--- gcc/testsuite/gcc.dg/pr64252.c	(revision 239920)
+++ gcc/testsuite/gcc.dg/pr64252.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR target/64252 */
 /* { dg-do run } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target int32plus } */
 
 typedef unsigned int V __attribute__((vector_size (32)));
 
Index: gcc/testsuite/gcc.dg/pr66299-1.c
===================================================================
--- gcc/testsuite/gcc.dg/pr66299-1.c	(revision 239920)
+++ gcc/testsuite/gcc.dg/pr66299-1.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR tree-optimization/66299 */
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-original" } */
+/* { dg-require-effective-target int32plus } */
 
 void
 test1 (int x)
Index: gcc/testsuite/gcc.dg/pr66299-2.c
===================================================================
--- gcc/testsuite/gcc.dg/pr66299-2.c	(revision 239920)
+++ gcc/testsuite/gcc.dg/pr66299-2.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR tree-optimization/66299 */
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-optimized -O" } */
+/* { dg-require-effective-target int32plus } */
 
 void
 test1 (int x, unsigned u)
Index: gcc/testsuite/gcc.dg/torture/20131115-1.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/20131115-1.c	(revision 239920)
+++ gcc/testsuite/gcc.dg/torture/20131115-1.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-skip-if "RAM usage too large" { "avr-*-*" } } */
 
 struct S { int i; };
 __attribute__((const, noinline, noclone))