[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / CodeGen / aarch64-sve2p1-intrinsics / acle_sve2p1_get2_bool.c
blob5d38f72b34b164c7b2ebfbd8cd7dfe81ec6510db
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s \
3 // RUN: | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
4 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s \
5 // RUN: | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
6 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s \
7 // RUN: | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
8 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s\
9 // RUN: | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
10 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
11 // REQUIRES: aarch64-registered-target
12 #include <arm_sve.h>
14 #ifdef SVE_OVERLOADED_FORMS
15 // A simple used,unused... macro, long enough to represent any SVE builtin.
16 #define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3
17 #else
18 #define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
19 #endif
21 // CHECK-LABEL: @test_svget2_b8_0(
22 // CHECK-NEXT: entry:
23 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i1> @llvm.vector.extract.nxv16i1.nxv32i1(<vscale x 32 x i1> [[TUPLE:%.*]], i64 0)
24 // CHECK-NEXT: ret <vscale x 16 x i1> [[TMP0]]
26 // CPP-CHECK-LABEL: @_Z16test_svget2_b8_010svboolx2_t(
27 // CPP-CHECK-NEXT: entry:
28 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i1> @llvm.vector.extract.nxv16i1.nxv32i1(<vscale x 32 x i1> [[TUPLE:%.*]], i64 0)
29 // CPP-CHECK-NEXT: ret <vscale x 16 x i1> [[TMP0]]
31 svbool_t test_svget2_b8_0(svboolx2_t tuple)
33 return SVE_ACLE_FUNC(svget2,_b8,,)(tuple, 0);
36 // CHECK-LABEL: @test_svget2_b8_1(
37 // CHECK-NEXT: entry:
38 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i1> @llvm.vector.extract.nxv16i1.nxv32i1(<vscale x 32 x i1> [[TUPLE:%.*]], i64 16)
39 // CHECK-NEXT: ret <vscale x 16 x i1> [[TMP0]]
41 // CPP-CHECK-LABEL: @_Z16test_svget2_b8_110svboolx2_t(
42 // CPP-CHECK-NEXT: entry:
43 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i1> @llvm.vector.extract.nxv16i1.nxv32i1(<vscale x 32 x i1> [[TUPLE:%.*]], i64 16)
44 // CPP-CHECK-NEXT: ret <vscale x 16 x i1> [[TMP0]]
46 svbool_t test_svget2_b8_1(svboolx2_t tuple)
48 return SVE_ACLE_FUNC(svget2,_b8,,)(tuple, 1);