summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr47755.c
blob: 6dbd1fe02f3a6b9947913f240d14c8c6c8684712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O3 -mcpu=power7" } */
/* { dg-final { scan-assembler "xxlxor" } } */
/* { dg-final { scan-assembler-not "lxvd2x" } } */
/* { dg-final { scan-assembler-not "lxvw4x" } } */
/* { dg-final { scan-assembler-not "lvx" } } */

/* PR 47755: Compiler loads vector constant of 0 from TOC instead of using
   xxlxor.  */
void
func (vector long long *p)
{
  *p = (vector long long) { 0LL, 0LL };
}