interrupt-2.c: New file.

* gcc.target/m68k/interrupt-2.c: New file.
	* gcc.dg/tree-ssa/20040204-1.c: Don't XFAIL for m68k*-*-*.

From-SVN: r137451
This commit is contained in:
Richard Sandiford 2008-07-04 07:18:47 +00:00 committed by Nathan Sidwell
parent bf8e9c4917
commit 9a0f2a1b98
3 changed files with 28 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-07-04 Richard Sandiford <richard@codesourcery.com>
* gcc.target/m68k/interrupt-2.c: New file.
* gcc.dg/tree-ssa/20040204-1.c: Don't XFAIL for m68k*-*-*.
2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/compat/struct-by-value-17a_x.c: Remove duplicated code.

View File

@ -33,5 +33,5 @@ void test55 (int x, int y)
that the && should be emitted (based on BRANCH_COST). Fix this
by teaching dom to look through && and register all components
as true. */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! "powerpc*-*-* cris-*-* crisv32-*-* mmix-*-* mips*-*-*" } } } } */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! "powerpc*-*-* cris-*-* crisv32-*-* mmix-*-* mips*-*-* m68k*-*-*" } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */

View File

@ -0,0 +1,22 @@
/* { dg-do compile } */
int x;
volatile unsigned int y;
#define REPEAT10(X, Y) \
X(Y##0); X(Y##1); X(Y##2); X(Y##3); X(Y##4); \
X(Y##5); X(Y##6); X(Y##7); X(Y##8); X(Y##9)
#define REPEAT30(X) REPEAT10 (X, 0); REPEAT10 (X, 1); REPEAT10 (X, 2)
#define IN(X) unsigned int x##X = y
#define OUT(X) y = x##X
void __attribute__ ((interrupt_handler)) f1 (void)
{
x = y + 11;
}
void __attribute__ ((interrupt_handler)) f2 (void)
{
REPEAT30 (IN);
REPEAT30 (OUT);
}