[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / avx10_2_512satcvtds-builtins-x64-error.c
blob334edfb501e2f08979cb163b2ccb17ad4c887736
1 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-unknown-unknown -target-feature +avx10.2-512 -Wall -Werror -verify
3 #include <immintrin.h>
4 #include <stddef.h>
6 long long test_mm_cvttssd_si64(__m128d __A) {
7 return _mm_cvtts_roundsd_si64(__A, 22); // expected-error {{invalid rounding argument}}
10 long long test_mm_cvttssd_i64(__m128d __A) {
11 return _mm_cvtts_roundsd_i64(__A, 22); // expected-error {{invalid rounding argument}}
14 unsigned long long test_mm_cvttssd_u64(__m128d __A) {
15 return _mm_cvtts_roundsd_u64(__A, 22); // expected-error {{invalid rounding argument}}
18 float test_mm_cvttsss_i64(__m128 __A) {
19 return _mm_cvtts_roundss_i64(__A, 22); // expected-error {{invalid rounding argument}}
22 long long test_mm_cvttsss_si64(__m128 __A) {
23 return _mm_cvtts_roundss_si64(__A, 22); // expected-error {{invalid rounding argument}}
26 unsigned long long test_mm_cvttsss_u64(__m128 __A) {
27 return _mm_cvtts_roundss_u64(__A, 22); // expected-error {{invalid rounding argument}}
30 __m512i test_mm512_cvtts_roundpd_epi64(__m512d A) {
31 return _mm512_cvtts_roundpd_epi64( A, 22); // expected-error {{invalid rounding argument}}
34 __m512i test_mm512_mask_cvtts_roundpd_epi64(__m512i W, __mmask8 U, __m512d A) {
35 return _mm512_mask_cvtts_roundpd_epi64( W, U, A, 22); // expected-error {{invalid rounding argument}}
38 __m512i test_mm512_maskz_cvtts_roundpd_epi64(__mmask8 U, __m512d A) {
39 return _mm512_maskz_cvtts_roundpd_epi64( U, A, 22); // expected-error {{invalid rounding argument}}
42 __m512i test_mm512_cvtts_roundpd_epu64(__m512d A) {
43 return _mm512_cvtts_roundpd_epu64( A, 22); // expected-error {{invalid rounding argument}}
46 __m512i test_mm512_mask_cvtts_roundpd_epu64(__m512i W, __mmask8 U, __m512d A) {
47 return _mm512_mask_cvtts_roundpd_epu64( W, U, A, 22); // expected-error {{invalid rounding argument}}
50 __m512i test_mm512_maskz_cvtts_roundpd_epu64(__mmask8 U, __m512d A) {
51 return _mm512_maskz_cvtts_roundpd_epu64( U, A, 22); // expected-error {{invalid rounding argument}}
54 __m512i test_mm512_cvtts_roundps_epi64(__m256 A) {
55 return _mm512_cvtts_roundps_epi64( A, 22); // expected-error {{invalid rounding argument}}
58 __m512i test_mm512_mask_cvtts_roundps_epi64(__m512i W, __mmask8 U, __m256 A) {
59 return _mm512_mask_cvtts_roundps_epi64( W, U, A, 22); // expected-error {{invalid rounding argument}}
62 __m512i test_mm512_maskz_cvtts_roundps_epi64(__mmask8 U, __m256 A) {
63 return _mm512_maskz_cvtts_roundps_epi64( U, A, 22); // expected-error {{invalid rounding argument}}
66 __m512i test_mm512_cvtts_roundps_epu64(__m256 A) {
67 return _mm512_cvtts_roundps_epu64( A, 22); // expected-error {{invalid rounding argument}}
70 __m512i test_mm512_mask_cvtts_roundps_epu64(__m512i W, __mmask8 U, __m256 A) {
71 return _mm512_mask_cvtts_roundps_epu64( W, U, A, 22); // expected-error {{invalid rounding argument}}
74 __m512i test_mm512_maskz_cvtts_roundps_epu64(__mmask8 U, __m256 A) {
75 return _mm512_maskz_cvtts_roundps_epu64( U, A, 22); // expected-error {{invalid rounding argument}}