[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / avx10_2satcvtds-builtins-errors.c
blobf32dfba60132d4694358e02d8cf03b9775431a9b
1 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=i386-unknown-unknown -target-feature +avx10.2-256 -Wall -Werror -verify
3 unsigned long long test_mm_cvttssd(unsigned long long __A) {
4 return _mm_cvttssd(__A); // expected-error {{call to undeclared function '_mm_cvttssd'}}
7 unsigned long long test_mm_cvttsss(unsigned long long __A) {
8 return _mm_cvttsss(__A); // expected-error {{call to undeclared function '_mm_cvttsss'}}
11 #include <immintrin.h>
12 #include <stddef.h>
14 __m128i test_mm256_cvtts_roundpd_epi32(__m256d A) {
15 return _mm256_cvtts_roundpd_epi32(A, 22); // expected-error {{invalid rounding argument}}
17 __m128i test_mm256_mask_cvtts_roundpd_epi32(__m128i W, __mmask8 U, __m256d A) {
18 return _mm256_mask_cvtts_roundpd_epi32(W, U, A, 22); // expected-error {{invalid rounding argument}}
21 __m128i test_mm256_maskz_cvtts_roundpd_epi32(__mmask8 U, __m256d A) {
22 return _mm256_maskz_cvtts_roundpd_epi32(U, A, 22); // expected-error {{invalid rounding argument}}
25 __m128i test_mm256_cvtts_roundpd_epu32(__m256d A) {
26 return _mm256_cvtts_roundpd_epu32(A, 22); // expected-error {{invalid rounding argument}}
28 __m128i test_mm256_mask_cvtts_roundpd_epu32(__m128i W, __mmask8 U, __m256d A) {
29 return _mm256_mask_cvtts_roundpd_epu32(W, U, A, 22); // expected-error {{invalid rounding argument}}
32 __m128i test_mm256_maskz_cvtts_roundpd_epu32(__mmask8 U, __m256d A) {
33 return _mm256_maskz_cvtts_roundpd_epu32(U, A, 22); // expected-error {{invalid rounding argument}}
36 __m256i test_mm256_cvtts_roundps_epi32(__m256 A) {
37 return _mm256_cvtts_roundps_epi32(A, 22); // expected-error {{invalid rounding argument}}
39 __m256i test_mm256_mask_cvtts_roundps_epi32(__m256i W, __mmask8 U, __m256 A) {
40 return _mm256_mask_cvtts_roundps_epi32(W, U, A, 22); // expected-error {{invalid rounding argument}}
43 __m256i test_mm256_maskz_cvtts_roundps_epi32(__mmask8 U, __m256 A) {
44 return _mm256_maskz_cvtts_roundps_epi32(U, A, 22); // expected-error {{invalid rounding argument}}
47 __m256i test_mm256_cvtts_roundps_epu32(__m256 A) {
48 return _mm256_cvtts_roundps_epu32(A, 22); // expected-error {{invalid rounding argument}}
51 __m256i test_mm256_mask_cvtts_roundps_epu32(__m256i W, __mmask8 U, __m256 A) {
52 return _mm256_mask_cvtts_roundps_epu32(W, U, A, 22); // expected-error {{invalid rounding argument}}
55 __m256i test_mm256_maskz_cvtts_roundps_epu32(__mmask8 U, __m256 A) {
56 return _mm256_maskz_cvtts_roundps_epu32(U, A, 22); // expected-error {{invalid rounding argument}}