1 /* Ensure that we don't use 'repnz scasb' in the presence of register globals. */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -w" } */
5 extern __SIZE_TYPE__
strlen (const char *);
6 extern void *malloc (__SIZE_TYPE__
);
8 register int regvar
asm("%edi");
13 return malloc (strlen (str
) + 1);
16 /* { dg-final { scan-assembler-not "repnz scasb" } } */