xref: /llvm-project/clang/test/Sema/aarch64-sme-intrinsics/acle_sme_zero.c (revision 3b3d0978c334702114131e4dab549aa25b9f0ad4)
1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sve -fsyntax-only -verify %s
3 
4 #include <arm_sme.h>
5 
test_svzero_args(uint64_t m)6 void test_svzero_args(uint64_t m) {
7   svzero_za(0); // expected-error {{too many arguments to function call, expected 0, have 1}}
8   svzero_za(m); // expected-error {{too many arguments to function call, expected 0, have 1}}
9   svzero_mask_za(m); // expected-error {{argument to 'svzero_mask_za' must be a constant integer}}
10 }
11