2 /* { dg-options "-O2 -ftree-vectorize -ffast-math -mavx512bw -save-temps" } */
3 /* { dg-require-effective-target avx512bw } */
5 #include "avx512bw-check.h"
16 __attribute__ ((noinline
)) foo (unsigned char *a
,
17 complex8_t
*x
, unsigned len
)
20 for (i
= 0; i
< len
; i
++)
21 a
[i
] = x
[i
].imag
+ x
[i
].real
;
32 for (i
= 0; i
< N
; i
++, j
++)
41 for (i
= 0; i
< N
; i
++, j
++)
42 if ( a
[i
] != (unsigned char)(j
+j
) )
46 /* { dg-final { scan-assembler-times "vpmovwb\[ \\t\]+\[^\n\]*%zmm" 4 } } */