Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / gcse-1.c
blob799cde1dd0e7fe7a74c5c15744366a7acd5dceb9
1 /* { dg-do compile { target { *-*-linux* && ilp32 } } } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-times "@ha" 1 } } */
6 /* Test for PR 7003, address of array loaded int register
7 twice without any need. */
9 extern const char flags [256];
11 unsigned char * f (unsigned char * s) {
12 while (flags[*++s]);
13 while (!flags[*++s]);
14 return s;