1 /* { dg-do compile { target arm*-*-* alpha*-*-* ia64*-*-* i?86-*-* x86_64-*-* s390x-*-* powerpc*-*-* rs6000-*-* } } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-options "-O2 -fdump-rtl-combine" } */
6 /* The test is similiar to builtin-bswap-7.c but returns 1/2 instead
7 of 0/1 to prevent GCC from calculating the return value with
8 arithmetic instead of a comparison. This requires the optimization
9 level to be bumped up to -O2 at least for x86_64. */
13 #define BS(X) __builtin_bswap64(X)
17 if (BS (a
) == 0xA00000000)
24 if (BS (a
) != 0xA00000000)
29 int foo3 (uint64_t a
, uint64_t b
)
36 int foo4 (uint64_t a
, uint64_t b
)
43 /* { dg-final { scan-rtl-dump-not "bswapdi" "combine" } } */