Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / aarch64-sme-intrinsics / acle_sme_zero.c
blob750eead7c705e2f5364a8ead60b91adc6a199f96
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 3
2 // REQUIRES: aarch64-registered-target
3 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sve -S -O1 -Werror -emit-llvm -o - %s | FileCheck %s -check-prefixes=CHECK,CHECK-C
4 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sve -S -O1 -Werror -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefixes=CHECK,CHECK-CXX
5 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sve -S -O1 -Werror -o /dev/null %s
7 #include <arm_sme_draft_spec_subject_to_change.h>
9 // CHECK-C-LABEL: define dso_local void @test_svzero_mask_za(
10 // CHECK-C-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
11 // CHECK-C-NEXT: entry:
12 // CHECK-C-NEXT: tail call void @llvm.aarch64.sme.zero(i32 0)
13 // CHECK-C-NEXT: ret void
15 // CHECK-CXX-LABEL: define dso_local void @_Z19test_svzero_mask_zav(
16 // CHECK-CXX-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
17 // CHECK-CXX-NEXT: entry:
18 // CHECK-CXX-NEXT: tail call void @llvm.aarch64.sme.zero(i32 0)
19 // CHECK-CXX-NEXT: ret void
21 void test_svzero_mask_za() {
22 svzero_mask_za(0);
25 // CHECK-C-LABEL: define dso_local void @test_svzero_mask_za_1(
26 // CHECK-C-SAME: ) local_unnamed_addr #[[ATTR0]] {
27 // CHECK-C-NEXT: entry:
28 // CHECK-C-NEXT: tail call void @llvm.aarch64.sme.zero(i32 176)
29 // CHECK-C-NEXT: ret void
31 // CHECK-CXX-LABEL: define dso_local void @_Z21test_svzero_mask_za_1v(
32 // CHECK-CXX-SAME: ) local_unnamed_addr #[[ATTR0]] {
33 // CHECK-CXX-NEXT: entry:
34 // CHECK-CXX-NEXT: tail call void @llvm.aarch64.sme.zero(i32 176)
35 // CHECK-CXX-NEXT: ret void
37 void test_svzero_mask_za_1() {
38 svzero_mask_za(176);
41 // CHECK-C-LABEL: define dso_local void @test_svzero_mask_za_2(
42 // CHECK-C-SAME: ) local_unnamed_addr #[[ATTR0]] {
43 // CHECK-C-NEXT: entry:
44 // CHECK-C-NEXT: tail call void @llvm.aarch64.sme.zero(i32 255)
45 // CHECK-C-NEXT: ret void
47 // CHECK-CXX-LABEL: define dso_local void @_Z21test_svzero_mask_za_2v(
48 // CHECK-CXX-SAME: ) local_unnamed_addr #[[ATTR0]] {
49 // CHECK-CXX-NEXT: entry:
50 // CHECK-CXX-NEXT: tail call void @llvm.aarch64.sme.zero(i32 255)
51 // CHECK-CXX-NEXT: ret void
53 void test_svzero_mask_za_2() {
54 svzero_mask_za(255);
57 // CHECK-C-LABEL: define dso_local void @test_svzero_za(
58 // CHECK-C-SAME: ) local_unnamed_addr #[[ATTR0]] {
59 // CHECK-C-NEXT: entry:
60 // CHECK-C-NEXT: tail call void @llvm.aarch64.sme.zero(i32 255)
61 // CHECK-C-NEXT: ret void
63 // CHECK-CXX-LABEL: define dso_local void @_Z14test_svzero_zav(
64 // CHECK-CXX-SAME: ) local_unnamed_addr #[[ATTR0]] {
65 // CHECK-CXX-NEXT: entry:
66 // CHECK-CXX-NEXT: tail call void @llvm.aarch64.sme.zero(i32 255)
67 // CHECK-CXX-NEXT: ret void
69 void test_svzero_za() {
70 svzero_za();
72 //// NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
73 // CHECK: {{.*}}