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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-41.c
blob
e0a0b6b8e00a2fcbf70a8dc3edc1564fbf8351f0
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4
#if __SIZEOF_INT__ == 2
5
#define int __INT32_TYPE__
6
#endif
7
8
int
foo
(
int
x
)
9
{
10
int
p
=
x
&
24
;
11
int
r
=
1
<<
p
;
12
return
r
& ((
int
)
1
<<
17
);
13
}
14
15
/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */