Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bswap32.c
blob1b1e189aafa1d0243672a4701d47388519dd2fe2
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler "lwbrx" } } */
4 /* { dg-final { scan-assembler "stwbrx" } } */
6 unsigned int ui;
7 unsigned int load_bswap32 (unsigned int *p) { return __builtin_bswap32 (*p); }
8 void store_bswap32 (unsigned int a) { ui = __builtin_bswap32 (a); }