1 /* { dg-do compile { target arm*-*-* alpha*-*-* ia64*-*-* x86_64-*-* s390x-*-* powerpc*-*-* rs6000-*-* } } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-options "-O -fdump-rtl-combine" } */
6 /* The branch cost setting prevents the return value from being
7 calculated with arithmetic instead of doing a compare. */
8 /* { dg-additional-options "-mbranch-cost=0" { target s390x-*-* } } */
12 #define BS(X) __builtin_bswap64(X)
16 if (BS (a
) == 0xA00000000)
23 if (BS (a
) != 0xA00000000)
28 int foo3 (uint64_t a
, uint64_t b
)
35 int foo4 (uint64_t a
, uint64_t b
)
42 /* { dg-final { scan-rtl-dump-not "bswapdi" "combine" } } */
43 /* { dg-final { cleanup-rtl-dump "combine" } } */