summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pieces-memcpy-2.c
blob: bc4f05b86c50527013be0a855d1fdcad9b8cac9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mno-avx -msse2 -mtune=generic" } */

extern char *dst, *src;

void
foo (void)
{
  __builtin_memcpy (dst, src, 33);
}

/* { dg-final { scan-assembler-times "movdqu\[ \\t\]+\[^\n\]*%xmm" 2 } } */
/* { dg-final { scan-assembler-times "movups\[ \\t\]+\[^\n\]*%xmm" 2 } } */