gcc/testsuite/gcc.target/i386/avx512vl-vpsadbw-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mavx512vl -mavx512bw -O2" } */ |
| 3 | /* { dg-final { scan-assembler-times "vpsadbw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1} } */ |
| 4 | |
| 5 | #include <immintrin.h> |
| 6 | |
| 7 | volatile __m512i x; |
| 8 | |
| 9 | void extern |
| 10 | avx512vl_test (void) |
| 11 | { |
| 12 | x = _mm512_sad_epu8 (x, x); |
| 13 | } |