blob: b9cd055f37f4bfaabf16cd78e534918eecc9f81c [file] [log] [blame]
/* { dg-do compile { target { *-*-linux* && ilp32 } } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "@ha" 1 { target { ! fpic } } } } */
/* 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;
}