2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr47755.c
blob7de395afd16f6925401c31a2294cff6a89cf43cd
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
12 xxlxor. */
13 void
14 func (vector long long *p)
16 *p = (vector long long) { 0LL, 0LL };