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