Viewing file: avx512f-pr88464-3.c (1.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* PR tree-optimization/88464 */ /* { dg-do compile } */ /* { dg-options "-O3 -mavx512f -mprefer-vector-width=512 -mtune=skylake-avx512 -fdump-tree-vect-details" } */ /* { dg-final { scan-tree-dump-times "loop vectorized using 64 byte vectors" 4 "vect" } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops in function" 4 "vect" } } */
__attribute__((noipa)) void f1 (double * __restrict__ a, const double * __restrict__ b, const int * __restrict__ c, int n) { int i; #pragma GCC ivdep for (i = 0; i < n; ++i) if (b[i] > -2.0) a[c[i]] = b[i]; }
__attribute__((noipa)) void f2 (double * __restrict__ a, const double * __restrict__ b, const long * __restrict__ c, int n) { int i; #pragma GCC ivdep for (i = 0; i < n; ++i) if (b[i] > -2.0) a[c[i]] = b[i]; }
__attribute__((noipa)) void f3 (float * __restrict__ a, const float * __restrict__ b, const int * __restrict__ c, int n) { int i; #pragma GCC ivdep for (i = 0; i < n; ++i) if (b[i] > -2.0f) a[c[i]] = b[i]; }
__attribute__((noipa)) void f4 (float * __restrict__ a, const float * __restrict__ b, const long * __restrict__ c, int n) { int i; #pragma GCC ivdep for (i = 0; i < n; ++i) if (b[i] > -2.0f) a[c[i]] = b[i]; }
|