1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
3 /* { dg-options "-O2 -mcpu=cell" } */
4 /* { dg-require-effective-target lp64 } */
5 /* { dg-require-effective-target powerpc_ppu_ok } */
6 /* { dg-final { scan-assembler "ldbrx" } } */
7 /* { dg-final { scan-assembler "stdbrx" } } */
10 unsigned long load_bswap64 (unsigned long *p
) { return __builtin_bswap64 (*p
); }
11 void store_bswap64 (unsigned long a
) { ul
= __builtin_bswap64 (a
); }