1 /* PR rtl-optimization/44404
2 foo() used to be miscompiled on ARM due to a bug in auto-inc-dec.c,
3 which resulted in "strb r1, [r1], #-36". */
6 /* { dg-options "-O2 -fno-unroll-loops" } */
8 extern char *strcpy (char *, const char *);
9 extern int strcmp (const char*, const char*);
10 extern void abort (void);
14 void __attribute__((noinline
))
15 bar (int a
, const char *p
)
17 if (strcmp (p
, "0123456789abcdefghijklmnopqrstuvwxyz") != 0)
21 void __attribute__((noinline
))
26 strcpy (buf
, "0123456789abcdefghijklmnopqrstuvwxyz");