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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr42914.c
blob
9f7961197e1f78732eb8f45f10622c694617836e
1
/* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */
2
3
int
abs
(
int
);
4
5
int
find_sad_16x16
(
int
*
mode
)
6
{
7
int
current
,
best
;
8
int
M1
[
16
][
16
],
M0
[
4
][
4
][
4
][
4
],
M3
[
4
],
M4
[
4
][
4
];
9
int
i
,
j
,
k
;
10
int
ii
,
jj
;
11
12
for
(
jj
=
0
;
jj
<
4
;
jj
++)
13
for
(
ii
=
0
;
ii
<
4
;
ii
++)
14
for
(
j
=
0
;
j
<
4
;
j
++)
15
for
(
j
=
0
;
j
<
4
;
j
++)
16
current
+=
abs
(
M0
[
i
][
ii
][
j
][
jj
]);
17
18
if
(
current
<
best
)
19
{
20
best
=
current
;
21
*
mode
=
k
;
22
}
23
}