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

extern char *dst, *src;

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

/* { dg-final { scan-assembler-times "vmovdqu\[ \\t\]+\[^\n\]*%xmm" 1 } } */
/* { dg-final { scan-assembler-times "vmovups\[ \\t\]+\[^\n\]*%xmm" 1 } } */