Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bswap64-3.c
blob5a20c76f1f9eab282de1a40fd818a4f3306e53dc
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" } } */
9 unsigned long ul;
10 unsigned long load_bswap64 (unsigned long *p) { return __builtin_bswap64 (*p); }
11 void store_bswap64 (unsigned long a) { ul = __builtin_bswap64 (a); }