blob: 6dbd1fe02f3a6b9947913f240d14c8c6c8684712 [file] [log] [blame]
/* { 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 };
}