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" } } */
8 /* Verify that swap optimization works correctly for a truncating splat. */
10 /* Test case to resolve PR77613. */
12 void pr77613 (signed short a
, signed short *x
, signed short *y
)
16 for (i
= 0; i
< 1024; i
++)
17 y
[i
] = a
* x
[i
] + y
[i
];