comparison gcc/testsuite/gcc.dg/pr81988.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR target/81988 */
2 /* Testcase by James Cowgill <jcowgill+gcc@jcowgill.uk> */
3
4 /* { dg-do assemble } */
5 /* { dg-require-effective-target pie } */
6 /* { dg-options "-O3 -fpie" } */
7
8 int c, d;
9
10 short **e;
11 int *a;
12
13 void foo(void)
14 {
15 int g[64 * 35], *h = g;
16 do {
17 short *f = e[d];
18 for (int i = 0; i < 4; i++)
19 a[i] = a[i] + (h[364] + f[4] * h[64] + f[5] * h[i] + f[6] * h[i + 3 * 4] +
20 f[7] * h[i + 4]);
21 } while (c);
22 }