re PR rtl-optimization/7003 ([ppc] address of array loaded int register twice without any need)

2007-09-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/7003
        * gcc.target/powerpc/gcse-1.c: New test.

From-SVN: r128856
This commit is contained in:
Andrew Pinski 2007-09-28 01:02:30 +00:00 committed by Andrew Pinski
parent 7cefcade5d
commit a2d0c46dae
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-09-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/7003
* gcc.target/powerpc/gcse-1.c: New test.
2007-09-27 Tobias Schlüter <tobi@gcc.gnu.org>
* gfortran.dg/array_initializer_3.f90: Adapt error annotations for

View File

@ -0,0 +1,15 @@
/* { dg-do compile { target { *-*-linux* && ilp32 } } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "@ha" 1 } } */
/* Test for PR 7003, address of array loaded int register
twice without any need. */
extern const char flags [256];
unsigned char * f (unsigned char * s) {
while (flags[*++s]);
while (!flags[*++s]);
return s;
}