1 /* { dg-do compile { target { has_arch_pwr8 } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mvsx -O2" } */
5 /* Ensure 16-byte by pieces move is enabled. */
7 void move1 (void *s1
, void *s2
)
9 __builtin_memcpy (s1
, s2
, 16);
14 __builtin_memcpy (s1
, "0123456789012345", 16);
17 /* { dg-final { scan-assembler-times {\mlxvd2x\M|\mp?lxv\M} 2 } } */
18 /* { dg-final { scan-assembler-times {\mstxvd2x\M|\mstxv\M} 2 } } */