projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
vrp26.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-vrp1" } */
3
4
int
5
foo
(
int
a
)
6
{
7
int
z
=
a
|
1
;
8
return
z
!=
0
;
9
}
10
11
/* VRP should optimize this to a trivial "return 1". */
12
/* { dg-final { scan-tree-dump-times "return 1" 1 "vrp1" } } * /
13
/* { dg-final { cleanup-tree-dump "vrp1" } } */
14
15
16
17