Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr111449-2.c

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