repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-5.c
blob
ccac9663334decf0eca760e6d33df97113398990
1
/* { dg-do run } */
2
/* { dg-options "-O" } */
3
int
4
main
(
void
)
5
{
6
/* Test constant folding. */
7
extern
void
link_error
(
void
);
8
9
if
(
__builtin_bswap32
(
0xaabbccdd
) !=
0xddccbbaa
)
10
link_error
();
11
12
if
(
__builtin_bswap64
(
0x1122334455667788
ULL
) !=
0x8877665544332211
ULL
)
13
link_error
();
14
15
return
0
;
16
}