Debian Codegraph @

clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_undef_bool.c

raw
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
2 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -O2 -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
3 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -O2 -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
4 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -O2 -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
5 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sme -target-feature +sme2 -O2 -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
6 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -O2 -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
7 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -O2 -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
8 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
9
10 // REQUIRES: aarch64-registered-target
11
12 #include <arm_sve.h>
13
14 #if defined(__ARM_FEATURE_SME) && defined(__ARM_FEATURE_SVE)
15 #define MODE_ATTR __arm_streaming_compatible
16 #elif defined(__ARM_FEATURE_SME)
17 #define MODE_ATTR __arm_streaming
18 #else
19 #define MODE_ATTR
20 #endif
21
22 // CHECK-LABEL: define dso_local { <vscale x 16 x i1>, <vscale x 16 x i1> } @test_svundef2_b(
23 // CHECK-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
24 // CHECK-NEXT: entry:
25 // CHECK-NEXT: ret { <vscale x 16 x i1>, <vscale x 16 x i1> } undef
26 //
27 // CPP-CHECK-LABEL: define dso_local { <vscale x 16 x i1>, <vscale x 16 x i1> } @_Z15test_svundef2_bv(
28 // CPP-CHECK-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
29 // CPP-CHECK-NEXT: entry:
30 // CPP-CHECK-NEXT: ret { <vscale x 16 x i1>, <vscale x 16 x i1> } undef
31 //
32 svboolx2_t test_svundef2_b(void) MODE_ATTR {
33 return svundef2_b();
34 }
35
36 // CHECK-LABEL: define dso_local { <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1> } @test_svundef4_b(
37 // CHECK-SAME: ) local_unnamed_addr #[[ATTR0]] {
38 // CHECK-NEXT: entry:
39 // CHECK-NEXT: ret { <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1> } undef
40 //
41 // CPP-CHECK-LABEL: define dso_local { <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1> } @_Z15test_svundef4_bv(
42 // CPP-CHECK-SAME: ) local_unnamed_addr #[[ATTR0]] {
43 // CPP-CHECK-NEXT: entry:
44 // CPP-CHECK-NEXT: ret { <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1>, <vscale x 16 x i1> } undef
45 //
46 svboolx4_t test_svundef4_b(void) MODE_ATTR {
47 return svundef4_b();
48 }