aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c
blob: 11687e8c9b5dead0a5f6b54c642ddb6eff389f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:2000:align,libcall:-1:align" } */
/* On ELF platforms, one hit comes from the .file directive.  */
/* { dg-final { scan-assembler-times "memcpy" 2 { target { ! *-*-darwin* } } } } */
/* But not on Darwin, which doesn't have a .file directive by default.  */
/* { dg-final { scan-assembler-times "_memcpy" 1  { target *-*-darwin* } } } */

char a[2048];
char b[2048];
void t (void)
{
  __builtin_memcpy (a, b, 2048);
}