comparison gcc/testsuite/gcc.dg/vect/vect-80-big-array.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
11 11
12 /* Check handling of accesses for which the "initial condition" - 12 /* Check handling of accesses for which the "initial condition" -
13 the expression that represents the first location accessed - is 13 the expression that represents the first location accessed - is
14 more involved than just an ssa_name. */ 14 more involved than just an ssa_name. */
15 15
16 volatile int y = 0;
17
18 __attribute__ ((noinline)) int 16 __attribute__ ((noinline)) int
19 main1 (float * __restrict__ pa, float * __restrict__ pb, float *__restrict__ pc) 17 main1 (float * __restrict__ pa, float * __restrict__ pb, float *__restrict__ pc)
20 { 18 {
21 int i; 19 int i;
22 float *q = pb + 4; 20 float *q = pb + 4;
23 for (i = 0; i < N; i++) 21 for (i = 0; i < N; i++)
24 { 22 {
25 fb[i] = i; 23 fb[i] = i;
26 fc[i] = 0.5+i; 24 fc[i] = 0.5+i;
27 if (y) 25 asm volatile ("" ::: "memory");
28 abort ();
29 } 26 }
30 for (; i < N+4; i++) 27 for (; i < N+4; i++)
31 { 28 {
32 fb[i] = i; 29 fb[i] = i;
33 if (y) 30 asm volatile ("" ::: "memory");
34 abort ();
35 } 31 }
36 32
37 for (i = 0; i < N; i++) 33 for (i = 0; i < N; i++)
38 { 34 {
39 pa[i] = q[i] * pc[i]; 35 pa[i] = q[i] * pc[i];