mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 09:20:31 +08:00
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:
parent
7cefcade5d
commit
a2d0c46dae
@ -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
|
||||
|
15
gcc/testsuite/gcc.target/powerpc/gcse-1.c
Normal file
15
gcc/testsuite/gcc.target/powerpc/gcse-1.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user