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
PR testsuite/52641
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-30.c
blob
47675ed5d3177eae7b0b715217b6c48c5d707aba
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
4
int
5
foo
(
int
a
)
6
{
7
int
b
=
a
&
0xff
;
8
if
(
b
>
300
)
9
return
2
;
10
else
11
return
1
;
12
}
13
14
/* { dg-final { scan-tree-dump-times "Folding predicate b_.* > 300 to 0" 1 "ccp1" } } */
15
/* { dg-final { cleanup-tree-dump "ccp1" } } */