Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr11001-memcpy-3.c
blob0f5bd561dc51edfe679c5946ef94e2d783e319ba
1 /* Ensure that we don't use 'rep movX' in the presence of register globals. */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -w" } */
5 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
7 register int regvar asm("%ecx");
9 int foo[10];
10 int bar[10];
12 char baz[15];
13 char quux[15];
15 void
16 do_copy ()
18 memcpy (foo, bar, sizeof foo);
19 memcpy (baz, quux, sizeof baz);
22 /* { dg-final { scan-assembler-not "rep movsl" } } */
23 /* { dg-final { scan-assembler-not "rep movsb" } } */