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
gcc/
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fold-plusmult.c
blob
d584b95887466e50202bf49dd5cf74e7a5c0a647
1
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-original" } */
3
4
int
test1
(
int
a
)
5
{
6
return
2
*
a
+
2
*
a
;
7
}
8
9
int
test2
(
int
a
)
10
{
11
return
(
a
+
a
)*
2
;
12
}
13
14
/* { dg-final { scan-tree-dump-times "<a> \\\* 4" 2 "original" } } */
15
/* { dg-final { cleanup-tree-dump "original" } } */