2 /* { dg-options "-O2 -ftree-vectorize -ffast-math -mavx512bw -save-temps" } */
3 /* { dg-require-effective-target avx512bw } */
5 #include "avx512bw-check.h"
8 unsigned short yy
[10000];
11 __attribute__ ((noinline
)) foo (unsigned int s
)
14 for (i
= 0; i
< s
; i
++)
15 yy
[i
] = (unsigned short) i
;
23 for (i
= 0; i
< N
; i
++)
24 if ( (unsigned short)i
!= yy
[i
] )
28 /* { dg-final { scan-assembler-times "vpermi2w\[ \\t\]+\[^\n\]*%zmm" 1 } } */