* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / memcpy-1.c
blob725c864d866dabb592f2ff19e6fe0b5a89365428
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?:" } } */
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. */
13 char a[2048];
14 char b[2048];
15 void t(void)
17 __builtin_memcpy (a,b,2048);