Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr11001-memset-1.c
blobe44d32fb4ef54c8b571959fce74744dcf57793e5
1 /* Ensure that we don't use 'rep stoX' in the presence of register globals. */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -w" } */
5 extern void *memset (void *, int, __SIZE_TYPE__);
7 register int regvar asm("%eax");
9 int foo[10];
10 int bar[10];
12 char baz[15];
13 char quux[15];
15 void
16 do_copy ()
18 memset (foo, 0, sizeof foo);
19 memset (baz, 0, sizeof baz);
22 /* { dg-final { scan-assembler-not "rep stosl" } } */
23 /* { dg-final { scan-assembler-not "rep stosb" } } */