aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/builtin-bswap-1.c
blob: a6706e693e129faef3485805f82a2a0d729418ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2" } */

/* { dg-final { scan-assembler-times "rev16\\t" 2 } }  */

/* rev16 */
short
swaps16 (short x)
{
  return __builtin_bswap16 (x);
}

/* rev16 */
unsigned short
swapu16 (unsigned short x)
{
  return __builtin_bswap16 (x);
}