xref: /llvm-project/clang/test/Sema/aarch64-sme2p1-intrinsics/acle_sme2p1_imm.cpp (revision 7934fcef26c2e5e7d451bb9c36b5a344b342a015)
1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu \
2 // RUN:    -target-feature +sme -target-feature +sme2p1 -target-feature +bf16 -fsyntax-only -verify %s
3 
4 // REQUIRES: aarch64-registered-target
5 
6 #include <arm_sme.h>
7 
tests_readz_tile_to_vector_single(uint32_t slice)8 void tests_readz_tile_to_vector_single(uint32_t slice) __arm_streaming __arm_inout("za") {
9   svreadz_hor_za8_s8(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 0]}}
10   svreadz_hor_za16_s16(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 1]}}
11   svreadz_hor_za32_s32(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 3]}}
12   svreadz_hor_za64_s64(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 7]}}
13   svreadz_hor_za128_s8(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 15]}}
14   svreadz_hor_za128_s16(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 15]}}
15   svreadz_hor_za128_s32(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 15]}}
16   svreadz_hor_za128_s64(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 15]}}
17   svreadz_hor_za128_bf16(-1, slice); // expected-error {{argument value 18446744073709551615 is outside the valid range [0, 15]}}
18   return;
19 }
20 
21 
22