re PR target/36698 (gcc.c-torture/compile/20001226-1.c exceeds SPU local store size with -O0)

PR target/36698
	* gcc.c-torture/compile/20001226-1.c: XFAIL -O0 case on SPU.

	* gcc.dg/pr27095.c: Provide target-specific regexp for SPU.

From-SVN: r137367
This commit is contained in:
Ulrich Weigand 2008-07-02 15:56:31 +00:00 committed by Ulrich Weigand
parent 5211d96275
commit b12285bdfc
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
PR target/36698
* gcc.c-torture/compile/20001226-1.c: XFAIL -O0 case on SPU.
* gcc.dg/pr27095.c: Provide target-specific regexp for SPU.
2008-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* lib/compat.exp (compat-execute): Add -ffunction-sections

View File

@ -4,6 +4,7 @@
/* { dg-xfail-if "function larger than 64K" { m6811-*-* } { "*" } { "" } } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-xfail-if "jump beyond 128K not supported" { xtensa-*-* } { "-O0" } { "" } } */
/* { dg-xfail-if "PR36698" { spu-*-* } { "-O0" } { "" } } */
/* { dg-skip-if "" { m32c-*-* } { "*" } { "" } } */
/* This testcase exposed two branch shortening bugs on powerpc. */

View File

@ -11,7 +11,7 @@ main (int argc, char **argv)
memset (x, argc, strlen (x));
return 0;
}
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen" { target { ! { powerpc*-*-darwin* hppa*-*-hpux* ia64-*-hpux* alpha*-*-* } } } } } */
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen" { target { ! { powerpc*-*-darwin* hppa*-*-hpux* ia64-*-hpux* alpha*-*-* spu-*-* } } } } } */
/* hppa*-*-hpux* has an IMPORT statement for strlen (plus the branch). */
/* *-*-darwin* has something similar. */
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen" { target hppa*-*-hpux* } } } */
@ -20,3 +20,5 @@ main (int argc, char **argv)
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen\(.*\n\)+.*strlen" { target ia64-*-hpux* } } } */
/* alpha-*-* has a GOT load and the call. */
/* { dg-final { scan-assembler-not "(?n)jsr .*,strlen\(.*\n\)+.*jsr .*,strlen" { target alpha*-*-* } } } */
/* spu-*-* has a branch hint and the call. */
/* { dg-final { scan-assembler-not "(?n)brsl.*,strlen\(.*\n\)+.*brsl.*,strlen" { target spu-*-* } } } */