PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vect-perm-1.c
blobea6760d481cd2d1962f09b073fd1224ed86cb2d3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -ffast-math -march=knl" } */
3 /* { dg-final { scan-assembler-times "vpermps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5 #define N 1024
6 float f1[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
7 float f2[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
9 void foo ()
11 int j;
12 for (j=0; j<N; j++)
13 f1[j] += f2[N-j];