| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target ia32 } */ |
| 3 |
/* { dg-options "-O2 -march=pentiumpro -minline-all-stringops -fno-common" } */ |
| 4 |
/* { dg-add-options bind_pic_locally } */ |
| 5 |
/* { dg-final { scan-assembler "rep" } } */ |
| 6 |
/* { dg-final { scan-assembler "movs" } } */ |
| 7 |
/* { dg-final { scan-assembler-not "test" } } */ |
| 8 |
/* { dg-final { scan-assembler "\.L?:" } } */ |
| 9 |
|
| 10 |
/* A and B are aligned, but we used to lose track of it. |
| 11 |
Ensure that memcpy is inlined and alignment prologue is missing. */ |
| 12 |
|
| 13 |
char a[2048]; |
| 14 |
char b[2048]; |
| 15 |
void t(void) |
| 16 |
{ |
| 17 |
__builtin_memcpy (a,b,2048); |
| 18 |
} |