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
2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-bswap-1.c
blob
6b4a805536cef4bd43c66429ebdc66685c7c95db
1
/* { dg-do compile } */
2
/* { dg-require-effective-target stdint_types } */
3
/* { dg-options "" } */
4
/* { dg-final { scan-assembler-not "__builtin_" } } */
5
6
#include <stdint.h>
7
8
uint32_t
foo
(
uint32_t
a
)
9
{
10
int
b
;
11
12
b
=
__builtin_bswap32
(
a
);
13
14
return
b
;
15
}