blob: 4847671fcadbd9503ff8a062891ee43d79c2cd1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* { dg-do run } */
/* { dg-skip-if "Too much RAM needed" { "avr-*-*" } } */
int result[64][16];
int main()
{
double dbuf[1000] = {0.0};
int ibuf[900];
int i, j;
double d1 = 0.0;
double d2 = 0.0;
for (i = 0; i < 900; ++i) {
ibuf[i] = (int)(d2 - d1);
d1 += dbuf[i];
d2 += dbuf[i + 64];
}
for (i = 0; i < 64; ++i) {
for (j = 0; j < 8; ++j) {
result[i][ j] = ibuf[64 - i + 64 * j];
result[i][15 - j] = ibuf[ i + 64 * j];
}
}
return 0;
}
|