1 /* { dg-do compile { target arm*-*-* alpha*-*-* i?86-*-* powerpc*-*-* rs6000-*-* x86_64-*-* s390*-*-* } } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-options "-O -fdump-rtl-combine" } */
5 /* The branch cost setting prevents the return value from being
6 calculated with arithmetic instead of doing a compare. */
7 /* { dg-additional-options "-march=z900 -mbranch-cost=0" { target s390*-*-* } } */
11 #define BS(X) __builtin_bswap32(X)
15 if (BS (a
) == 0xA0000)
22 if (BS (a
) != 0xA0000)
27 int foo3 (uint32_t a
, uint32_t b
)
34 int foo4 (uint32_t a
, uint32_t b
)
41 /* { dg-final { scan-rtl-dump-not "bswapsi" "combine" } } */
42 /* { dg-final { cleanup-rtl-dump "combine" } } */