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
Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr52267.c
blob
8362dc23c040f058371bfc93363396371b80ed9e
1
/* PR tree-optimization/52267 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
5
int
6
foo
(
int
a
,
int
b
)
7
{
8
if
(
a
>
3
||
a
<
0
)
9
return
a
;
10
a
&=
3
;
11
return
a
&
3
;
12
}
13
14
int
15
bar
(
int
a
)
16
{
17
if
(
a
& ~
3
)
18
return
a
;
19
return
a
&
3
;
20
}
21
22
/* { dg-final { scan-tree-dump-not "& 3" "optimized" } } */
23
/* { dg-final { scan-tree-dump-not "& -4" "optimized" } } */