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
x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
loop-ivopts-1.c
blob
13396fbf0da8333c17e2b56a748a2876bc26d55e
1
/* From PR 18977. */
2
void
foo
(
float
*
x
);
3
4
int
main
()
5
{
6
float
x
[
4
];
7
foo
(
x
);
8
return
0
;
9
}
10
11
void
foo
(
float
*
x
)
12
{
13
int
i
,
j
,
k
;
14
float
temp
;
15
static float
t16
[
16
]={
1
.,
2
.,
3
.,
4
.,
5
.,
6
.,
7
.,
8
.,
9
.,
16
10
.,
11
.,
12
.,
13
.,
14
.,
15
.,
16
.};
17
static float
tmp
[
4
]={
0
.,
0
.,
0
.,
0
.};
18
19
for
(
i
=
0
;
i
<
4
;
i
++) {
20
k
=
3
-
i
;
21
temp
=
t16
[
5
*
k
];
22
for
(
j
=
k
+
1
;
j
<
4
;
j
++) {
23
tmp
[
k
] =
t16
[
k
+
j
*
4
] *
temp
;
24
}
25
}
26
x
[
0
] =
tmp
[
0
];
27
x
[
1
] =
tmp
[
1
];
28
x
[
2
] =
tmp
[
2
];
29
x
[
3
] =
tmp
[
3
];
30
}