1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O3 -mcpu=power7" } */
6 /* { dg-final { scan-assembler "xxlxor\|vspltis\[bhw\]" } } */
7 /* { dg-final { scan-assembler-not "lxvd2x" } } */
8 /* { dg-final { scan-assembler-not "lxvw4x" } } */
9 /* { dg-final { scan-assembler-not "lvx" } } */
11 /* PR 47755: Compiler loads vector constant of 0 from TOC instead of using
14 func (vector
long long *p
)
16 *p
= (vector
long long) { 0LL, 0LL };