[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / avx10_2_512minmax-error.c
blobe487c3fad49dd1159f9be751cbc0ec3ddd45f80f
1 // RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64 -target-feature +avx10.2-512 \
2 // RUN: -Wno-invalid-feature-combination -verify -fsyntax-only
3 // RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=i386 -target-feature +avx10.2-512 \
4 // RUN: -Wno-invalid-feature-combination -verify -fsyntax-only
6 #include <immintrin.h>
8 __m128bh test_mm_minmaxne_pbh(__m128bh __A, __m128bh __B) {
9 return _mm_minmaxne_pbh(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
12 __m128bh test_mm_mask_minmaxne_pbh(__m128bh __A, __mmask8 __B, __m128bh __C, __m128bh __D) {
13 return _mm_mask_minmaxne_pbh(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
16 __m256bh test_mm256_minmaxne_pbh(__m256bh __A, __m256bh __B) {
17 return _mm256_minmaxne_pbh(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
20 __m256bh test_mm256_mask_minmaxne_pbh(__m256bh __A, __mmask16 __B, __m256bh __C, __m256bh __D) {
21 return _mm256_mask_minmaxne_pbh(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
24 __m128d test_mm_minmax_pd(__m128d __A, __m128d __B) {
25 return _mm_minmax_pd(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
28 __m128d test_mm_mask_minmax_pd(__m128d __A, __mmask8 __B, __m128d __C, __m128d __D) {
29 return _mm_mask_minmax_pd(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
32 __m256d test_mm256_minmax_pd(__m256d __A, __m256d __B) {
33 return _mm256_minmax_pd(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
36 __m256d test_mm256_mask_minmax_pd(__m256d __A, __mmask8 __B, __m256d __C, __m256d __D) {
37 return _mm256_mask_minmax_pd(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
40 __m128h test_mm_minmax_ph(__m128h __A, __m128h __B) {
41 return _mm_minmax_ph(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
44 __m128h test_mm_mask_minmax_ph(__m128h __A, __mmask8 __B, __m128h __C, __m128h __D) {
45 return _mm_mask_minmax_ph(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
48 __m256h test_mm256_minmax_ph(__m256h __A, __m256h __B) {
49 return _mm256_minmax_ph(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
52 __m256h test_mm256_mask_minmax_ph(__m256h __A, __mmask16 __B, __m256h __C, __m256h __D) {
53 return _mm256_mask_minmax_ph(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
56 __m128 test_mm_minmax_ps(__m128 __A, __m128 __B) {
57 return _mm_minmax_ps(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
60 __m128 test_mm_mask_minmax_ps(__m128 __A, __mmask8 __B, __m128 __C, __m128 __D) {
61 return _mm_mask_minmax_ps(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
64 __m256 test_mm256_minmax_ps(__m256 __A, __m256 __B) {
65 return _mm256_minmax_ps(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
68 __m256 test_mm256_mask_minmax_ps(__m256 __A, __mmask8 __B, __m256 __C, __m256 __D) {
69 return _mm256_mask_minmax_ps(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
72 __m512bh test_mm512_minmaxne_pbh(__m512bh __A, __m512bh __B) {
73 return _mm512_minmaxne_pbh(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
76 __m512bh test_mm512_mask_minmaxne_pbh(__m512bh __A, __mmask32 __B, __m512bh __C, __m512bh __D) {
77 return _mm512_mask_minmaxne_pbh(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
80 __m512d test_mm512_minmax_pd(__m512d __A, __m512d __B) {
81 return _mm512_minmax_pd(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
84 __m512h test_mm512_mask_minmax_ph(__m512h __A, __mmask32 __B, __m512h __C, __m512h __D) {
85 return _mm512_mask_minmax_ph(__A, __B, __C, __D, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
88 __m512 test_mm512_minmax_ps(__m512 __A, __m512 __B) {
89 return _mm512_minmax_ps(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
92 __m128d test_mm_minmax_sd(__m128d __A, __m128d __B) {
93 return _mm_minmax_sd(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
96 __m128h test_mm_minmax_sh(__m128h __A, __m128h __B) {
97 return _mm_minmax_sh(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
100 __m128 test_mm_minmax_ss(__m128 __A, __m128 __B) {
101 return _mm_minmax_ss(__A, __B, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
104 __m512d test_mm512_minmax_round_pd(__m512d __A, __m512d __B) {
105 return _mm512_minmax_round_pd(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
108 __m512h test_mm512_minmax_round_ph(__m512h __A, __m512h __B) {
109 return _mm512_minmax_round_ph(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
112 __m512 test_mm512_minmax_round_ps(__m512 __A, __m512 __B) {
113 return _mm512_minmax_round_ps(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
116 __m256d test_mm256_minmax_round_pd(__m256d __A, __m256d __B) {
117 return _mm256_minmax_round_pd(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
120 __m256h test_mm256_minmax_round_ph(__m256h __A, __m256h __B) {
121 return _mm256_minmax_round_ph(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
124 __m256 test_mm256_minmax_round_ps(__m256 __A, __m256 __B) {
125 return _mm256_minmax_round_ps(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
127 __m128d test_mm_minmax_round_sd(__m128d __A, __m128d __B) {
128 return _mm_minmax_round_sd(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
131 __m128h test_mm_minmax_round_sh(__m128h __A, __m128h __B) {
132 return _mm_minmax_round_sh(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}
135 __m128 test_mm_minmax_round_ss(__m128 __A, __m128 __B) {
136 return _mm_minmax_round_ss(__A, __B, 127, 11); // expected-error {{invalid rounding argument}}