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
+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
--- /dev/null
+/* { 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;
+}