1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-options "-mcpu=power8 -O3" } */
4 /* { dg-final { scan-assembler "lxvd2x" } } */
5 /* { dg-final { scan-assembler "stxvd2x" } } */
6 /* { dg-final { scan-assembler-not "xxpermdi" } } */
12 signed char ca
[N
] __attribute__((aligned(16)));
13 signed char cb
[] __attribute__((aligned(16)))
14 = {8, 7, 6, 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5, -6, -7};
15 signed char cc
[] __attribute__((aligned(16)))
16 = {1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 0, 0, -1, -1, -2, -2};
18 __attribute__((noinline
)) void foo ()
21 for (i
= 0; i
< N
; i
++) {
22 ca
[i
] = cb
[i
] - cc
[i
];
28 signed char cd
[] = {7, 6, 4, 3, 1, 0, 0, -1, -1, -2, -2, -3, -3, -4, -4, -5};
31 for (i
= 0; i
< N
; ++i
)