URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [bswap16.c] - Rev 322
Compare with Previous | Blame | View Log
/* { dg-do compile { target { powerpc*-*-* } } } */ /* { dg-options "-O2" } */ /* { dg-final { scan-assembler "lhbrx" } } */ /* { dg-final { scan-assembler "sthbrx" } } */ unsigned short us; unsigned int load_bswap16 (unsigned short *p) { return __builtin_bswap16 (*p); } void store_bswap16 (unsigned int a) { us = __builtin_bswap16 (a); }