[PATCH, TESTSUITE]Skip compile tests for small targets

View: New views
3 Messages — Rating Filter:   Alert me  

[PATCH, TESTSUITE]Skip compile tests for small targets

by Andrew Hutchinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following patch skips one test for non 32bit int targets and another
for AVR as the memory for arrays is too large.

Ok?

2009-11-03  Andy Hutchinson  <hutchinsonandy@...>

        *gcc.c-torture/compile/pr40204.c: Test only for int32 target.
        *gcc.c-torture/compile/pr41181.c: Skip test for avr target.


Index: pr40204.c
===================================================================
--- pr40204.c    (revision 153880)
+++ pr40204.c    (working copy)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target int32plus } */
 /* PR middle-end/40204 */
 
 struct S
Index: pr41181.c
===================================================================
--- pr41181.c    (revision 153880)
+++ pr41181.c    (working copy)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "The array is too big" { "avr-*-*" } { "*" } { "" } } */
 char paths[1024];
 static void x264_slicetype_path(char (*best_paths)[250], int n, int length)
 {


Re: [PATCH, TESTSUITE]PING Skip compile tests for small targets

by Andrew Hutchinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Andrew Hutchinson wrote:

> The following patch skips one test for non 32bit int targets and
> another for AVR as the memory for arrays is too large.
>
> Ok?
>
> 2009-11-03  Andy Hutchinson  <hutchinsonandy@...>
>
>     *gcc.c-torture/compile/pr40204.c: Test only for int32 target.
>     *gcc.c-torture/compile/pr41181.c: Skip test for avr target.
>
>
> Index: pr40204.c
> ===================================================================
> --- pr40204.c    (revision 153880)
> +++ pr40204.c    (working copy)
> @@ -1,3 +1,4 @@
> +/* { dg-require-effective-target int32plus } */
> /* PR middle-end/40204 */
>
> struct S
> Index: pr41181.c
> ===================================================================
> --- pr41181.c    (revision 153880)
> +++ pr41181.c    (working copy)
> @@ -1,3 +1,4 @@
> +/* { dg-skip-if "The array is too big" { "avr-*-*" } { "*" } { "" } } */
> char paths[1024];
> static void x264_slicetype_path(char (*best_paths)[250], int n, int
> length)
> {
>
>

Re: [PATCH, TESTSUITE]Skip compile tests for small targets

by Janis Johnson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-11-03 at 18:38 -0500, Andrew Hutchinson wrote:
> The following patch skips one test for non 32bit int targets and another
> for AVR as the memory for arrays is too large.
>
> Ok?
>
> 2009-11-03  Andy Hutchinson  <hutchinsonandy@...>
>
> *gcc.c-torture/compile/pr40204.c: Test only for int32 target.
> *gcc.c-torture/compile/pr41181.c: Skip test for avr target.

OK.

Janis