mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 18:51:24 +08:00
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:
parent
bf8e9c4917
commit
9a0f2a1b98
@ -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.
|
||||
|
@ -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" } } */
|
||||
|
22
gcc/testsuite/gcc.target/m68k/interrupt-2.c
Normal file
22
gcc/testsuite/gcc.target/m68k/interrupt-2.c
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user