[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr111449-2.c
blob49871cab899321d68579eb3969091f5563250c26
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);
12 void move2 (void *s1)
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 } } */