2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64935-1.c
blobc9c67ebb4c6fd3c4df71df940e98637f70cd3051
1 /* PR rtl-optimization/64935 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu89 -Wno-shift-count-overflow -O2 -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 int a[] = {}, b[] = {}, c[] = {}, d[] = {}, e[] = {}, f[] = {}, h[] = {};
7 int g[] = { 0 };
8 int i, l, s, w, x, y, z, t2, t3, t5;
9 unsigned long j, m, o, t4;
10 long k, n, p, q, r, t, u, v, t1;
11 fn1 ()
13 int t6;
14 for (; i; i++)
16 t5 = a[q] ^ b[p >> 1] ^ c[o >> 1 & 1] ^ d[n >> 1 & 1] ^ e[m >> 1 & 1]
17 ^ f[l >> 1 & 1] ^ g[0] ^ h[j & 1];
18 t4 = a[j] ^ b[q >> 1] ^ c[p] ^ d[o] ^ e[n] ^ f[m] ^ g[l >> 8] ^ h[k];
19 t3 = a[k >> 1] ^ b[j & 5] ^ d[p >> 32] ^ e[o >> 4] ^ f[n >> 6]
20 ^ g[m >> 8] ^ h[l];
21 t2 = a[l >> 6] ^ b[k & 1] ^ c[j >> 1] ^ d[q >> 32] ^ e[p >> 4]
22 ^ f[o >> 6] ^ g[n >> 8] ^ h[m & 1];
23 t1 = a[m >> 6] ^ b[l & 1] ^ c[k & 15] ^ d[j >> 2] ^ e[q >> 4] ^ f[p >> 6]
24 ^ g[o >> 8] ^ h[n & 1];
25 z = a[n >> 56] ^ b[m & 15] ^ c[l & 15] ^ d[k >> 2] ^ e[j >> 4]
26 ^ f[q >> 6] ^ g[p >> 8] ^ h[o & 1];
27 y = a[o >> 56] ^ b[n & 15] ^ c[m >> 40] ^ d[l >> 2] ^ e[k >> 4]
28 ^ f[j >> 6] ^ g[q >> 8] ^ h[p & 1];
29 x = a[p >> 56] ^ b[o & 15] ^ c[n >> 40] ^ d[m >> 2] ^ e[l >> 4]
30 ^ f[k >> 6] ^ g[j >> 8] ^ h[q & 1];
31 q = j = t4;
32 k = t3;
33 l = t2;
34 m = t1;
35 n = z;
36 o = y;
37 p = a[t6] ^ b[0] ^ c[w] ^ d[v] ^ e[u] ^ f[t] ^ g[s] ^ h[r];
38 t4 = a[r >> 1] ^ b[t6 & 1] ^ d[w >> 1] ^ e[v >> 1] ^ f[u >> 1]
39 ^ g[t >> 1] ^ h[s];
40 t3 = a[s >> 6] ^ b[r & 1] ^ c[t6 & 5] ^ d[0] ^ e[w >> 4] ^ f[v >> 6]
41 ^ g[u >> 8] ^ h[t & 1];
42 t2 = a[t >> 6] ^ b[s] ^ c[r & 15] ^ d[t6 >> 1] ^ e[0] ^ f[w >> 6]
43 ^ g[v >> 8] ^ h[u & 1];
44 t1 = a[u >> 6] ^ b[t & 15] ^ c[s & 5] ^ d[r >> 32] ^ e[t6 >> 4]
45 ^ g[w >> 8] ^ h[v & 1];
46 z = a[v >> 56] ^ b[u >> 48 & 1] ^ c[t >> 40 & 1] ^ d[s] ^ e[r >> 1 & 1]
47 ^ f[t6 >> 1 & 1] ^ g[0] ^ h[w & 1] ^ z;
48 t6 = t5;
49 r = t4;
50 s = 0;
51 t = u = t1;
52 v = z;
53 w = y;