1 /* { dg-do compile { target le } } */
2 /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O3" } */
3 /* { dg-require-effective-target powerpc_vsx } */
4 /* { dg-final { scan-assembler "lxvd2x" } } */
5 /* { dg-final { scan-assembler "stxvd2x" } } */
6 /* { dg-final { scan-assembler-not "xxpermdi" } } */
11 signed char ca
[N
] __attribute__((aligned(16)));
12 signed char cb
[N
] __attribute__((aligned(16)));
13 signed char cc
[N
] __attribute__((aligned(16)));
15 __attribute__((noinline
)) void foo ()
18 for (i
= 0; i
< N
; i
++) {
19 ca
[i
] = cb
[i
] - cc
[i
];
23 __attribute__((noinline
)) void init ()
26 for (i
= 0; i
< N
; ++i
) {
37 for (i
= 0; i
< N
; ++i
)
38 if (ca
[i
] != i
- i
/2 - 64)