| 1 |
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=i386-unknown-unknown -target-feature +avx10.2 -Wall -Werror -verify |
| 2 |
|
| 3 |
#include <immintrin.h> |
| 4 |
#include <stddef.h> |
| 5 |
|
| 6 |
__m256i test_mm512_cvtts_roundpd_epi32(__m512d A) { |
| 7 |
return _mm512_cvtts_roundpd_epi32(A, 22); // expected-error {{invalid rounding argument}} |
| 8 |
} |
| 9 |
|
| 10 |
__m256i test_mm512_mask_cvtts_roundpd_epi32(__m256i W, __mmask8 U, __m512d A) { |
| 11 |
return _mm512_mask_cvtts_roundpd_epi32(W, U, A, 22); // expected-error {{invalid rounding argument}} |
| 12 |
} |
| 13 |
|
| 14 |
__m256i test_mm512_maskz_cvtts_roundpd_epi32(__mmask8 U, __m512d A) { |
| 15 |
return _mm512_maskz_cvtts_roundpd_epi32(U, A, 22); // expected-error {{invalid rounding argument}} |
| 16 |
} |
| 17 |
|
| 18 |
__m256i test_mm512_cvtts_roundpd_epu32(__m512d A) { |
| 19 |
return _mm512_cvtts_roundpd_epu32(A, 22); // expected-error {{invalid rounding argument}} |
| 20 |
} |
| 21 |
|
| 22 |
__m256i test_mm512_mask_cvtts_roundpd_epu32(__m256i W, __mmask8 U, __m512d A) { |
| 23 |
return _mm512_mask_cvtts_roundpd_epu32(W, U, A, 22); // expected-error {{invalid rounding argument}} |
| 24 |
} |
| 25 |
|
| 26 |
__m256i test_mm512_maskz_cvtts_roundpd_epu32(__mmask8 U, __m512d A) { |
| 27 |
return _mm512_maskz_cvtts_roundpd_epu32(U, A, 22); // expected-error {{invalid rounding argument}} |
| 28 |
} |
| 29 |
|
| 30 |
__m512i test_mm512_cvtts_roundps_epi32(__m512 A) { |
| 31 |
return _mm512_cvtts_roundps_epi32(A, 22); // expected-error {{invalid rounding argument}} |
| 32 |
} |
| 33 |
|
| 34 |
__m512i test_mm512_mask_cvtts_roundps_epi32(__m512i W, __mmask8 U, __m512 A) { |
| 35 |
return _mm512_mask_cvtts_roundps_epi32(W, U, A, 22); // expected-error {{invalid rounding argument}} |
| 36 |
} |
| 37 |
|
| 38 |
__m512i test_mm512_maskz_cvtts_roundps_epi32(__mmask8 U, __m512 A) { |
| 39 |
return _mm512_maskz_cvtts_roundps_epi32(U, A, 22); // expected-error {{invalid rounding argument}} |
| 40 |
} |
| 41 |
|
| 42 |
__m512i test_mm512_cvtts_roundps_epu32(__m512 A) { |
| 43 |
return _mm512_cvtts_roundps_epu32(A, 22); // expected-error {{invalid rounding argument}} |
| 44 |
} |
| 45 |
|
| 46 |
__m512i test_mm512_mask_cvtts_roundps_epu32(__m512i W, __mmask8 U, __m512 A) { |
| 47 |
return _mm512_mask_cvtts_roundps_epu32(W, U, A, 22); // expected-error {{invalid rounding argument}} |
| 48 |
} |
| 49 |
|
| 50 |
__m512i test_mm512_maskz_cvtts_roundps_epu32(__mmask8 U, __m512 A) { |
| 51 |
return _mm512_maskz_cvtts_roundps_epu32(U, A, 22); // expected-error {{invalid rounding argument}} |
| 52 |
} |