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
2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
sms-3.c
blob
66792b5993b86e03e16307ed59eca54ecc8f80de
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fmodulo-sched -funroll-loops" } */
3
4
extern
void
abort
(
void
);
5
6
int
X
[
1000
]={
0
};
7
int
Y
[
1000
]={
0
};
8
9
extern
void
abort
(
void
);
10
11
int
12
foo
(
int
len
,
long
a
)
13
{
14
int
i
;
15
long
res
=
a
;
16
17
len
=
1000
;
18
for
(
i
=
0
;
i
<
len
;
i
++)
19
res
+=
X
[
i
]*
Y
[
i
];
20
21
if
(
res
!=
601
)
22
abort
();
23
24
}
25
26
int
27
main
()
28
{
29
X
[
0
] =
Y
[
1
] =
2
;
30
Y
[
0
] =
X
[
1
] =
21
;
31
X
[
2
] =
Y
[
3
] =
3
;
32
Y
[
2
] =
X
[
3
] =
31
;
33
X
[
4
] =
Y
[
5
] =
4
;
34
Y
[
4
] =
X
[
5
] =
41
;
35
36
foo
(
6
,
3
);
37
return
0
;
38
}
39