|
| 1 | +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64 -target-feature +avx10.2-512 \ |
| 2 | +// RUN: -Wall -Werror -verify |
| 3 | +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=i386 -target-feature +avx10.2-512 \ |
| 4 | +// RUN: -Wall -Werror -verify |
| 5 | + |
| 6 | +#include <immintrin.h> |
| 7 | + |
| 8 | +__m512i test_mm512_ipcvt_roundph_epi8(__m512h __A) { |
| 9 | + return _mm512_ipcvt_roundph_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 10 | +} |
| 11 | + |
| 12 | +__m512i test_mm512_mask_ipcvt_roundph_epi8(__m512i __S, __mmask32 __A, __m512h __B) { |
| 13 | + return _mm512_mask_ipcvt_roundph_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 14 | +} |
| 15 | + |
| 16 | +__m512i test_mm512_maskz_ipcvt_roundph_epi8(__mmask32 __A, __m512h __B) { |
| 17 | + return _mm512_maskz_ipcvt_roundph_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 18 | +} |
| 19 | + |
| 20 | +__m512i test_mm512_ipcvt_roundph_epu8(__m512h __A) { |
| 21 | + return _mm512_ipcvt_roundph_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 22 | +} |
| 23 | + |
| 24 | +__m512i test_mm512_mask_ipcvt_roundph_epu8(__m512i __S, __mmask32 __A, __m512h __B) { |
| 25 | + return _mm512_mask_ipcvt_roundph_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 26 | +} |
| 27 | + |
| 28 | +__m512i test_mm512_maskz_ipcvt_roundph_epu8(__mmask32 __A, __m512h __B) { |
| 29 | + return _mm512_maskz_ipcvt_roundph_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 30 | +} |
| 31 | + |
| 32 | +__m512i test_mm512_ipcvt_roundps_epi8(__m512 __A) { |
| 33 | + return _mm512_ipcvt_roundps_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 34 | +} |
| 35 | + |
| 36 | +__m512i test_mm512_mask_ipcvt_roundps_epi8(__m512i __S, __mmask16 __A, __m512 __B) { |
| 37 | + return _mm512_mask_ipcvt_roundps_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 38 | +} |
| 39 | + |
| 40 | +__m512i test_mm512_maskz_ipcvt_roundps_epi8(__mmask16 __A, __m512 __B) { |
| 41 | + return _mm512_maskz_ipcvt_roundps_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 42 | +} |
| 43 | + |
| 44 | +__m512i test_mm512_ipcvt_roundps_epu8(__m512 __A) { |
| 45 | + return _mm512_ipcvt_roundps_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 46 | +} |
| 47 | + |
| 48 | +__m512i test_mm512_mask_ipcvt_roundps_epu8(__m512i __S, __mmask16 __A, __m512 __B) { |
| 49 | + return _mm512_mask_ipcvt_roundps_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 50 | +} |
| 51 | + |
| 52 | +__m512i test_mm512_maskz_ipcvt_roundps_epu8(__mmask16 __A, __m512 __B) { |
| 53 | + return _mm512_maskz_ipcvt_roundps_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 54 | +} |
| 55 | + |
| 56 | +__m512i test_mm512_ipcvtt_roundph_epi8(__m512h __A) { |
| 57 | + return _mm512_ipcvtt_roundph_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 58 | +} |
| 59 | + |
| 60 | +__m512i test_mm512_mask_ipcvtt_roundph_epi8(__m512i __S, __mmask32 __A, __m512h __B) { |
| 61 | + return _mm512_mask_ipcvtt_roundph_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 62 | +} |
| 63 | + |
| 64 | +__m512i test_mm512_maskz_ipcvtt_roundph_epi8(__mmask32 __A, __m512h __B) { |
| 65 | + return _mm512_maskz_ipcvtt_roundph_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 66 | +} |
| 67 | + |
| 68 | +__m512i test_mm512_ipcvtt_roundph_epu8(__m512h __A) { |
| 69 | + return _mm512_ipcvtt_roundph_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 70 | +} |
| 71 | + |
| 72 | +__m512i test_mm512_mask_ipcvtt_roundph_epu8(__m512i __S, __mmask32 __A, __m512h __B) { |
| 73 | + return _mm512_mask_ipcvtt_roundph_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 74 | +} |
| 75 | + |
| 76 | +__m512i test_mm512_maskz_ipcvtt_roundph_epu8(__mmask32 __A, __m512h __B) { |
| 77 | + return _mm512_maskz_ipcvtt_roundph_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 78 | +} |
| 79 | + |
| 80 | +__m512i test_mm512_ipcvtt_roundps_epi8(__m512 __A) { |
| 81 | + return _mm512_ipcvtt_roundps_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 82 | +} |
| 83 | + |
| 84 | +__m512i test_mm512_mask_ipcvtt_roundps_epi8(__m512i __S, __mmask16 __A, __m512 __B) { |
| 85 | + return _mm512_mask_ipcvtt_roundps_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 86 | +} |
| 87 | + |
| 88 | +__m512i test_mm512_maskz_ipcvtt_roundps_epi8(__mmask16 __A, __m512 __B) { |
| 89 | + return _mm512_maskz_ipcvtt_roundps_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 90 | +} |
| 91 | + |
| 92 | +__m512i test_mm512_ipcvtt_roundps_epu8(__m512 __A) { |
| 93 | + return _mm512_ipcvtt_roundps_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 94 | +} |
| 95 | + |
| 96 | +__m512i test_mm512_mask_ipcvtt_roundps_epu8(__m512i __S, __mmask16 __A, __m512 __B) { |
| 97 | + return _mm512_mask_ipcvtt_roundps_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 98 | +} |
| 99 | + |
| 100 | +__m512i test_mm512_maskz_ipcvtt_roundps_epu8(__mmask16 __A, __m512 __B) { |
| 101 | + return _mm512_maskz_ipcvtt_roundps_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 102 | +} |
| 103 | + |
| 104 | +__m256i test_mm256_ipcvt_roundph_epi8(__m256h __A) { |
| 105 | + return _mm256_ipcvt_roundph_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 106 | +} |
| 107 | + |
| 108 | +__m256i test_mm256_mask_ipcvt_roundph_epi8(__m256i __S, __mmask16 __A, __m256h __B) { |
| 109 | + return _mm256_mask_ipcvt_roundph_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 110 | +} |
| 111 | + |
| 112 | +__m256i test_mm256_maskz_ipcvt_roundph_epi8(__mmask16 __A, __m256h __B) { |
| 113 | + return _mm256_maskz_ipcvt_roundph_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 114 | +} |
| 115 | + |
| 116 | +__m256i test_mm256_ipcvt_roundph_epu8(__m256h __A) { |
| 117 | + return _mm256_ipcvt_roundph_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 118 | +} |
| 119 | + |
| 120 | +__m256i test_mm256_mask_ipcvt_roundph_epu8(__m256i __S, __mmask16 __A, __m256h __B) { |
| 121 | + return _mm256_mask_ipcvt_roundph_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 122 | +} |
| 123 | + |
| 124 | +__m256i test_mm256_maskz_ipcvt_roundph_epu8(__mmask16 __A, __m256h __B) { |
| 125 | + return _mm256_maskz_ipcvt_roundph_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 126 | +} |
| 127 | + |
| 128 | +__m256i test_mm256_ipcvt_roundps_epi8(__m256 __A) { |
| 129 | + return _mm256_ipcvt_roundps_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 130 | +} |
| 131 | + |
| 132 | +__m256i test_mm256_mask_ipcvt_roundps_epi8(__m256i __S, __mmask8 __A, __m256 __B) { |
| 133 | + return _mm256_mask_ipcvt_roundps_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 134 | +} |
| 135 | + |
| 136 | +__m256i test_mm256_maskz_ipcvt_roundps_epi8(__mmask8 __A, __m256 __B) { |
| 137 | + return _mm256_maskz_ipcvt_roundps_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 138 | +} |
| 139 | + |
| 140 | +__m256i test_mm256_ipcvt_roundps_epu8(__m256 __A) { |
| 141 | + return _mm256_ipcvt_roundps_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 142 | +} |
| 143 | + |
| 144 | +__m256i test_mm256_mask_ipcvt_roundps_epu8(__m256i __S, __mmask8 __A, __m256 __B) { |
| 145 | + return _mm256_mask_ipcvt_roundps_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 146 | +} |
| 147 | + |
| 148 | +__m256i test_mm256_maskz_ipcvt_roundps_epu8(__mmask8 __A, __m256 __B) { |
| 149 | + return _mm256_maskz_ipcvt_roundps_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 150 | +} |
| 151 | + |
| 152 | +__m256i test_mm256_ipcvtt_roundph_epi8(__m256h __A) { |
| 153 | + return _mm256_ipcvtt_roundph_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 154 | +} |
| 155 | + |
| 156 | +__m256i test_mm256_mask_ipcvtt_roundph_epi8(__m256i __S, __mmask16 __A, __m256h __B) { |
| 157 | + return _mm256_mask_ipcvtt_roundph_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 158 | +} |
| 159 | + |
| 160 | +__m256i test_mm256_maskz_ipcvtt_roundph_epi8(__mmask16 __A, __m256h __B) { |
| 161 | + return _mm256_maskz_ipcvtt_roundph_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 162 | +} |
| 163 | + |
| 164 | +__m256i test_mm256_ipcvtt_roundph_epu8(__m256h __A) { |
| 165 | + return _mm256_ipcvtt_roundph_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 166 | +} |
| 167 | + |
| 168 | +__m256i test_mm256_mask_ipcvtt_roundph_epu8(__m256i __S, __mmask16 __A, __m256h __B) { |
| 169 | + return _mm256_mask_ipcvtt_roundph_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 170 | +} |
| 171 | + |
| 172 | +__m256i test_mm256_maskz_ipcvtt_roundph_epu8(__mmask16 __A, __m256h __B) { |
| 173 | + return _mm256_maskz_ipcvtt_roundph_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 174 | +} |
| 175 | + |
| 176 | +__m256i test_mm256_ipcvtt_roundps_epi8(__m256 __A) { |
| 177 | + return _mm256_ipcvtt_roundps_epi8(__A, 22); // expected-error {{invalid rounding argument}} |
| 178 | +} |
| 179 | + |
| 180 | +__m256i test_mm256_mask_ipcvtt_roundps_epi8(__m256i __S, __mmask8 __A, __m256 __B) { |
| 181 | + return _mm256_mask_ipcvtt_roundps_epi8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 182 | +} |
| 183 | + |
| 184 | +__m256i test_mm256_maskz_ipcvtt_roundps_epi8(__mmask8 __A, __m256 __B) { |
| 185 | + return _mm256_maskz_ipcvtt_roundps_epi8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 186 | +} |
| 187 | + |
| 188 | +__m256i test_mm256_ipcvtt_roundps_epu8(__m256 __A) { |
| 189 | + return _mm256_ipcvtt_roundps_epu8(__A, 22); // expected-error {{invalid rounding argument}} |
| 190 | +} |
| 191 | + |
| 192 | +__m256i test_mm256_mask_ipcvtt_roundps_epu8(__m256i __S, __mmask8 __A, __m256 __B) { |
| 193 | + return _mm256_mask_ipcvtt_roundps_epu8(__S, __A, __B, 22); // expected-error {{invalid rounding argument}} |
| 194 | +} |
| 195 | + |
| 196 | +__m256i test_mm256_maskz_ipcvtt_roundps_epu8(__mmask8 __A, __m256 __B) { |
| 197 | + return _mm256_maskz_ipcvtt_roundps_epu8(__A, __B, 22); // expected-error {{invalid rounding argument}} |
| 198 | +} |
0 commit comments