Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/vect/vect-6-big-array.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.dg/vect/vect-6-big-array.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/gcc.dg/vect/vect-6-big-array.c Thu Oct 25 07:37:49 2018 +0900 @@ -12,8 +12,6 @@ float b[N]; float c[N]; -volatile int y = 0; - __attribute__ ((noinline)) int main1 () { @@ -25,17 +23,13 @@ c[i] = i; results1[i] = 0; results2[i] = 0; - /* Avoid vectorization. */ - if (y) - abort (); + asm volatile ("" ::: "memory"); } for (i=0; i<N/2; i++) { results1[i] = b[i+N/2] * c[i+N/2] - b[i] * c[i]; results2[i+N/2] = b[i] * c[i+N/2] + b[i+N/2] * c[i]; - /* Avoid vectorization. */ - if (y) - abort (); + asm volatile ("" ::: "memory"); } for (i = 0; i < N/2; i++)