OSDN Git Service

* builtins.def: Defome atan, atanf, atanl, tan, tanf and tanl
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20001023-1.c
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
3
4 unsigned char a[256], b[256], c[256], d[256];
5
6 void foo(unsigned char *x, int y, unsigned char *z)
7 {
8 }
9
10 void bar(int x, ...)
11 {
12 }
13
14 void baz(int y)
15 {
16   if (y != 0x10)
17     abort();
18 }
19
20 void test(int x, unsigned char *y)
21 {
22   unsigned char g,h,j, k[5],l[5], m[30];
23   int i;
24
25   bar(x, y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9]);
26   for (i = 5; --i >= 0; )
27     k[i] = y[5 + i] ^ a[i] ^ c[i];
28
29   foo(&m[29], sizeof m, k);
30   g = d[x] ^ c[x];
31   bar(x, d[x], x, c[x]);
32   baz(g);
33   for (i = 5, h = 0; --i >= 0; h = y[i])
34     {
35       j = m[25 + i] ^ y[i];
36       j = b[j] ^ g;
37       k[i] = c[j] ^ h;
38     }
39   for (i = 5, h = 0; --i >= 0; h = k[i])
40     {
41       j = m[20 + i] ^ k[i];
42       j = b[j] ^ g;
43       l[i] = c[j] ^ h;
44     }
45   for (i = 5, h = 0; --i >= 0; h = l[i]) {
46     j = m[15 + i] ^ l[i];
47     j = b[j] ^ g;
48     j = c[j] ^ h;
49     k[i] = a[j] ^ c[j];
50   }
51 }
52
53 int main()
54 {
55   c[4] = 0xdc;
56   d[4] = 0xcc;
57   test(4, a);
58   exit(0);
59 }