aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr111449-2.c
blob: 3859702fce802a9e26382bbb3e6aefb7c5358457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile { target { has_arch_pwr8 } } } */
/* { dg-options "-mvsx -O2" } */
/* { dg-require-effective-target powerpc_vsx } */

/* Ensure 16-byte by pieces move is enabled.  */

void move1 (void *s1, void *s2)
{
  __builtin_memcpy (s1, s2, 16);
}

void move2 (void *s1)
{
  __builtin_memcpy (s1, "0123456789012345", 16);
}

/* { dg-final { scan-assembler-times {\mlxvd2x\M|\mp?lxv\M} 2 } } */
/* { dg-final { scan-assembler-times {\mstxvd2x\M|\mstxv\M} 2 } } */