* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr11001-strlen-1.c
blob6e159e4453ec9d3843abfb14a60d93901c67a0f7
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");
10 char *
11 do_copy (char *str)
13 return malloc (strlen (str) + 1);
16 /* { dg-final { scan-assembler-not "repnz scasb" } } */