gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-pr95254.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mavx512vl -mavx512f" } */ |
| 3 | |
| 4 | #include<immintrin.h> |
| 5 | extern __m128i res; |
| 6 | void |
| 7 | foo (__m256 a, __mmask8 m) |
| 8 | { |
| 9 | res = _mm256_maskz_cvtps_ph (m, a, 10); |
| 10 | } |
| 11 | |
| 12 | void |
| 13 | foo1 (__m128 a, __mmask8 m) |
| 14 | { |
| 15 | res = _mm_maskz_cvtps_ph (m, a, 10); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-not "vcvtps2ph\[ \\t\]+\[^\{\n\]*%\[xy\]mm\[0-9\]\[^\n\]*res\[^\n\]*\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"} } */ |