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
/
ltrans-8.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
3
double
foo
(
double
*
a
)
4
{
5
int
i
,
j
;
6
double
r
=
0.0
;
7
for
(
i
=
0
;
i
<
8
; ++
i
)
8
for
(
j
=
0
;
j
<
8
; ++
j
)
9
r
+=
a
[
j
*
8
+
i
];
10
return
r
;
11
}
12
13
/* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */
14
/* { dg-final { cleanup-tree-dump "ltrans" } } */