repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
builtin-bswap-1.c
blob
a6706e693e129faef3485805f82a2a0d729418ac
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
/* { dg-final { scan-assembler-times "rev16\\t" 2 } } */
5
6
/* rev16 */
7
short
8
swaps16
(
short
x
)
9
{
10
return
__builtin_bswap16
(
x
);
11
}
12
13
/* rev16 */
14
unsigned short
15
swapu16
(
unsigned short
x
)
16
{
17
return
__builtin_bswap16
(
x
);
18
}