20050830-1.c: New.

2005-08-31  Dale Johannesen  <dalej@apple.com>

        * gcc.dg/20050830-1.c:  New.

From-SVN: r103691
This commit is contained in:
Dale Johannesen 2005-08-31 17:28:17 +00:00 committed by Dale Johannesen
parent d16093fdff
commit c0dbaebd31
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-08-31 Dale Johannesen <dalej@apple.com>
* gcc.dg/20050830-1.c: New.
2005-08-31 Josh Conner <jconner@apple.com>
* g++.dg/ext/packed8.C: Add -mstructure-size-boundary=8 to

View File

@ -0,0 +1,13 @@
/* Make sure the doloop optimization is done for this loop. */
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "bdn" } } */
extern int a[];
int foo(int w) {
int n = w;
while (n >= 512)
{
a[n] = 42;
n -= 256;
}
}