| 1 |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py |
| 2 |
// REQUIRES: aarch64-registered-target |
| 3 |
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s |
| 4 |
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK |
| 5 |
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s |
| 6 |
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK |
| 7 |
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +sve2 -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s |
| 8 |
|
| 9 |
#include <arm_sve.h> |
| 10 |
|
| 11 |
#ifdef SVE_OVERLOADED_FORMS |
| 12 |
// A simple used,unused... macro, long enough to represent any SVE builtin. |
| 13 |
#define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3 |
| 14 |
#else |
| 15 |
#define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4 |
| 16 |
#endif |
| 17 |
|
| 18 |
// Gather for 128 bits |
| 19 |
// vector base + scalar offset |
| 20 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_u64( |
| 21 |
// CHECK-NEXT: entry: |
| 22 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 23 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 24 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 25 |
// |
| 26 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_u64u10__SVBool_tu12__SVUint64_tl( |
| 27 |
// CPP-CHECK-NEXT: entry: |
| 28 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 29 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 30 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 31 |
// |
| 32 |
svuint64_t test_svld1q_gather_u64base_offset_u64(svbool_t pg, svuint64_t base, int64_t offset) |
| 33 |
{ |
| 34 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_u64,)(pg, base, offset); |
| 35 |
} |
| 36 |
|
| 37 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_s64( |
| 38 |
// CHECK-NEXT: entry: |
| 39 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 40 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 41 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 42 |
// |
| 43 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_s64u10__SVBool_tu12__SVUint64_tl( |
| 44 |
// CPP-CHECK-NEXT: entry: |
| 45 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 46 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 47 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 48 |
// |
| 49 |
svint64_t test_svld1q_gather_u64base_offset_s64(svbool_t pg, svuint64_t base, int64_t offset) |
| 50 |
{ |
| 51 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_s64,)(pg, base, offset); |
| 52 |
} |
| 53 |
|
| 54 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_u32( |
| 55 |
// CHECK-NEXT: entry: |
| 56 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 57 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 58 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 59 |
// |
| 60 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_u32u10__SVBool_tu12__SVUint64_tl( |
| 61 |
// CPP-CHECK-NEXT: entry: |
| 62 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 63 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 64 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 65 |
// |
| 66 |
svuint32_t test_svld1q_gather_u64base_offset_u32(svbool_t pg, svuint64_t base, int64_t offset) |
| 67 |
{ |
| 68 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_u32,)(pg, base, offset); |
| 69 |
} |
| 70 |
|
| 71 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_s32( |
| 72 |
// CHECK-NEXT: entry: |
| 73 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 74 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 75 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 76 |
// |
| 77 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_s32u10__SVBool_tu12__SVUint64_tl( |
| 78 |
// CPP-CHECK-NEXT: entry: |
| 79 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 80 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 81 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 82 |
// |
| 83 |
svint32_t test_svld1q_gather_u64base_offset_s32(svbool_t pg, svuint64_t base, int64_t offset) |
| 84 |
{ |
| 85 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_s32,)(pg, base, offset); |
| 86 |
} |
| 87 |
|
| 88 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_u16( |
| 89 |
// CHECK-NEXT: entry: |
| 90 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 91 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 92 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 93 |
// |
| 94 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_u16u10__SVBool_tu12__SVUint64_tl( |
| 95 |
// CPP-CHECK-NEXT: entry: |
| 96 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 97 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 98 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 99 |
// |
| 100 |
svuint16_t test_svld1q_gather_u64base_offset_u16(svbool_t pg, svuint64_t base, int64_t offset) |
| 101 |
{ |
| 102 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_u16,)(pg, base, offset); |
| 103 |
} |
| 104 |
|
| 105 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_s16( |
| 106 |
// CHECK-NEXT: entry: |
| 107 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 108 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 109 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 110 |
// |
| 111 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_s16u10__SVBool_tu12__SVUint64_tl( |
| 112 |
// CPP-CHECK-NEXT: entry: |
| 113 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 114 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 115 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 116 |
// |
| 117 |
svint16_t test_svld1q_gather_u64base_offset_s16(svbool_t pg, svuint64_t base, int64_t offset) |
| 118 |
{ |
| 119 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_s16,)(pg, base, offset); |
| 120 |
} |
| 121 |
|
| 122 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_u8( |
| 123 |
// CHECK-NEXT: entry: |
| 124 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 125 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 126 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 127 |
// |
| 128 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_offset_u8u10__SVBool_tu12__SVUint64_tl( |
| 129 |
// CPP-CHECK-NEXT: entry: |
| 130 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 131 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 132 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 133 |
// |
| 134 |
svuint8_t test_svld1q_gather_u64base_offset_u8(svbool_t pg, svuint64_t base, int64_t offset) |
| 135 |
{ |
| 136 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_u8,)(pg, base, offset); |
| 137 |
} |
| 138 |
|
| 139 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_s8( |
| 140 |
// CHECK-NEXT: entry: |
| 141 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 142 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 143 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 144 |
// |
| 145 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_offset_s8u10__SVBool_tu12__SVUint64_tl( |
| 146 |
// CPP-CHECK-NEXT: entry: |
| 147 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 148 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 149 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 150 |
// |
| 151 |
svint8_t test_svld1q_gather_u64base_offset_s8(svbool_t pg, svuint64_t base, int64_t offset) |
| 152 |
{ |
| 153 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_s8,)(pg, base, offset); |
| 154 |
} |
| 155 |
|
| 156 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_f64( |
| 157 |
// CHECK-NEXT: entry: |
| 158 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 159 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 160 |
// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 161 |
// |
| 162 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_f64u10__SVBool_tu12__SVUint64_tl( |
| 163 |
// CPP-CHECK-NEXT: entry: |
| 164 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 165 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 166 |
// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 167 |
// |
| 168 |
svfloat64_t test_svld1q_gather_u64base_offset_f64(svbool_t pg, svuint64_t base, int64_t offset) |
| 169 |
{ |
| 170 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_f64,)(pg, base, offset); |
| 171 |
} |
| 172 |
|
| 173 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_f32( |
| 174 |
// CHECK-NEXT: entry: |
| 175 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 176 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 177 |
// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 178 |
// |
| 179 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_f32u10__SVBool_tu12__SVUint64_tl( |
| 180 |
// CPP-CHECK-NEXT: entry: |
| 181 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 182 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 183 |
// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 184 |
// |
| 185 |
svfloat32_t test_svld1q_gather_u64base_offset_f32(svbool_t pg, svuint64_t base, int64_t offset) |
| 186 |
{ |
| 187 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_f32,)(pg, base, offset); |
| 188 |
} |
| 189 |
|
| 190 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_f16( |
| 191 |
// CHECK-NEXT: entry: |
| 192 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 193 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 194 |
// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 195 |
// |
| 196 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_f16u10__SVBool_tu12__SVUint64_tl( |
| 197 |
// CPP-CHECK-NEXT: entry: |
| 198 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 199 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 200 |
// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 201 |
// |
| 202 |
svfloat16_t test_svld1q_gather_u64base_offset_f16(svbool_t pg, svuint64_t base, int64_t offset) |
| 203 |
{ |
| 204 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_f16,)(pg, base, offset); |
| 205 |
} |
| 206 |
|
| 207 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_bf16( |
| 208 |
// CHECK-NEXT: entry: |
| 209 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 210 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 211 |
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 212 |
// |
| 213 |
// CPP-CHECK-LABEL: @_Z38test_svld1q_gather_u64base_offset_bf16u10__SVBool_tu12__SVUint64_tl( |
| 214 |
// CPP-CHECK-NEXT: entry: |
| 215 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 216 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 217 |
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 218 |
// |
| 219 |
svbfloat16_t test_svld1q_gather_u64base_offset_bf16(svbool_t pg, svuint64_t base, int64_t offset) |
| 220 |
{ |
| 221 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_bf16,)(pg, base, offset); |
| 222 |
} |
| 223 |
|
| 224 |
// CHECK-LABEL: @test_svld1q_gather_u64base_offset_mf8( |
| 225 |
// CHECK-NEXT: entry: |
| 226 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 227 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 228 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 229 |
// |
| 230 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_offset_mf8u10__SVBool_tu12__SVUint64_tl( |
| 231 |
// CPP-CHECK-NEXT: entry: |
| 232 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 233 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[OFFSET:%.*]]) |
| 234 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 235 |
// |
| 236 |
svmfloat8_t test_svld1q_gather_u64base_offset_mf8(svbool_t pg, svuint64_t base, int64_t offset) |
| 237 |
{ |
| 238 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_offset_mf8,)(pg, base, offset); |
| 239 |
} |
| 240 |
|
| 241 |
// Vector base and no offset |
| 242 |
// CHECK-LABEL: @test_svld1q_gather_u64base_u64( |
| 243 |
// CHECK-NEXT: entry: |
| 244 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 245 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 246 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 247 |
// |
| 248 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_u64u10__SVBool_tu12__SVUint64_t( |
| 249 |
// CPP-CHECK-NEXT: entry: |
| 250 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 251 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 252 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 253 |
// |
| 254 |
svuint64_t test_svld1q_gather_u64base_u64(svbool_t pg, svuint64_t base) |
| 255 |
{ |
| 256 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_u64,)(pg, base); |
| 257 |
} |
| 258 |
|
| 259 |
// CHECK-LABEL: @test_svld1q_gather_u64base_s64( |
| 260 |
// CHECK-NEXT: entry: |
| 261 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 262 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 263 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 264 |
// |
| 265 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_s64u10__SVBool_tu12__SVUint64_t( |
| 266 |
// CPP-CHECK-NEXT: entry: |
| 267 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 268 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 269 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 270 |
// |
| 271 |
svint64_t test_svld1q_gather_u64base_s64(svbool_t pg, svuint64_t base) |
| 272 |
{ |
| 273 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_s64,)(pg, base); |
| 274 |
} |
| 275 |
|
| 276 |
// CHECK-LABEL: @test_svld1q_gather_u64base_u32( |
| 277 |
// CHECK-NEXT: entry: |
| 278 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 279 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 280 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 281 |
// |
| 282 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_u32u10__SVBool_tu12__SVUint64_t( |
| 283 |
// CPP-CHECK-NEXT: entry: |
| 284 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 285 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 286 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 287 |
// |
| 288 |
svuint32_t test_svld1q_gather_u64base_u32(svbool_t pg, svuint64_t base) |
| 289 |
{ |
| 290 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_u32,)(pg, base); |
| 291 |
} |
| 292 |
|
| 293 |
// CHECK-LABEL: @test_svld1q_gather_u64base_s32( |
| 294 |
// CHECK-NEXT: entry: |
| 295 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 296 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 297 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 298 |
// |
| 299 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_s32u10__SVBool_tu12__SVUint64_t( |
| 300 |
// CPP-CHECK-NEXT: entry: |
| 301 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 302 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 303 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 304 |
// |
| 305 |
svint32_t test_svld1q_gather_u64base_s32(svbool_t pg, svuint64_t base) |
| 306 |
{ |
| 307 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_s32,)(pg, base); |
| 308 |
} |
| 309 |
|
| 310 |
// CHECK-LABEL: @test_svld1q_gather_u64base_u16( |
| 311 |
// CHECK-NEXT: entry: |
| 312 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 313 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 314 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 315 |
// |
| 316 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_u16u10__SVBool_tu12__SVUint64_t( |
| 317 |
// CPP-CHECK-NEXT: entry: |
| 318 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 319 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 320 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 321 |
// |
| 322 |
svuint16_t test_svld1q_gather_u64base_u16(svbool_t pg, svuint64_t base) |
| 323 |
{ |
| 324 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_u16,)(pg, base); |
| 325 |
} |
| 326 |
|
| 327 |
// CHECK-LABEL: @test_svld1q_gather_u64base_s16( |
| 328 |
// CHECK-NEXT: entry: |
| 329 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 330 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 331 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 332 |
// |
| 333 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_s16u10__SVBool_tu12__SVUint64_t( |
| 334 |
// CPP-CHECK-NEXT: entry: |
| 335 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 336 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 337 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 338 |
// |
| 339 |
svint16_t test_svld1q_gather_u64base_s16(svbool_t pg, svuint64_t base) |
| 340 |
{ |
| 341 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_s16,)(pg, base); |
| 342 |
} |
| 343 |
|
| 344 |
// CHECK-LABEL: @test_svld1q_gather_u64base_u8( |
| 345 |
// CHECK-NEXT: entry: |
| 346 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 347 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 348 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 349 |
// |
| 350 |
// CPP-CHECK-LABEL: @_Z29test_svld1q_gather_u64base_u8u10__SVBool_tu12__SVUint64_t( |
| 351 |
// CPP-CHECK-NEXT: entry: |
| 352 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 353 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 354 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 355 |
// |
| 356 |
svuint8_t test_svld1q_gather_u64base_u8(svbool_t pg, svuint64_t base) |
| 357 |
{ |
| 358 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_u8,)(pg, base); |
| 359 |
} |
| 360 |
|
| 361 |
// CHECK-LABEL: @test_svld1q_gather_u64base_s8( |
| 362 |
// CHECK-NEXT: entry: |
| 363 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 364 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 365 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 366 |
// |
| 367 |
// CPP-CHECK-LABEL: @_Z29test_svld1q_gather_u64base_s8u10__SVBool_tu12__SVUint64_t( |
| 368 |
// CPP-CHECK-NEXT: entry: |
| 369 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 370 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 371 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 372 |
// |
| 373 |
svint8_t test_svld1q_gather_u64base_s8(svbool_t pg, svuint64_t base) |
| 374 |
{ |
| 375 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_s8,)(pg, base); |
| 376 |
} |
| 377 |
|
| 378 |
// CHECK-LABEL: @test_svld1q_gather_u64base_f64( |
| 379 |
// CHECK-NEXT: entry: |
| 380 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 381 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 382 |
// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 383 |
// |
| 384 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_f64u10__SVBool_tu12__SVUint64_t( |
| 385 |
// CPP-CHECK-NEXT: entry: |
| 386 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 387 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 388 |
// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 389 |
// |
| 390 |
svfloat64_t test_svld1q_gather_u64base_f64(svbool_t pg, svuint64_t base) |
| 391 |
{ |
| 392 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_f64,)(pg, base); |
| 393 |
} |
| 394 |
|
| 395 |
// CHECK-LABEL: @test_svld1q_gather_u64base_f32( |
| 396 |
// CHECK-NEXT: entry: |
| 397 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 398 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 399 |
// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 400 |
// |
| 401 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_f32u10__SVBool_tu12__SVUint64_t( |
| 402 |
// CPP-CHECK-NEXT: entry: |
| 403 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 404 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 405 |
// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 406 |
// |
| 407 |
svfloat32_t test_svld1q_gather_u64base_f32(svbool_t pg, svuint64_t base) |
| 408 |
{ |
| 409 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_f32,)(pg, base); |
| 410 |
} |
| 411 |
|
| 412 |
// CHECK-LABEL: @test_svld1q_gather_u64base_f16( |
| 413 |
// CHECK-NEXT: entry: |
| 414 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 415 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 416 |
// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 417 |
// |
| 418 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_f16u10__SVBool_tu12__SVUint64_t( |
| 419 |
// CPP-CHECK-NEXT: entry: |
| 420 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 421 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 422 |
// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 423 |
// |
| 424 |
svfloat16_t test_svld1q_gather_u64base_f16(svbool_t pg, svuint64_t base) |
| 425 |
{ |
| 426 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_f16,)(pg, base); |
| 427 |
} |
| 428 |
|
| 429 |
// CHECK-LABEL: @test_svld1q_gather_u64base_bf16( |
| 430 |
// CHECK-NEXT: entry: |
| 431 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 432 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 433 |
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 434 |
// |
| 435 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64base_bf16u10__SVBool_tu12__SVUint64_t( |
| 436 |
// CPP-CHECK-NEXT: entry: |
| 437 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 438 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 439 |
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 440 |
// |
| 441 |
svbfloat16_t test_svld1q_gather_u64base_bf16(svbool_t pg, svuint64_t base) |
| 442 |
{ |
| 443 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_bf16,)(pg, base); |
| 444 |
} |
| 445 |
|
| 446 |
// CHECK-LABEL: @test_svld1q_gather_u64base_mf8( |
| 447 |
// CHECK-NEXT: entry: |
| 448 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 449 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 450 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 451 |
// |
| 452 |
// CPP-CHECK-LABEL: @_Z30test_svld1q_gather_u64base_mf8u10__SVBool_tu12__SVUint64_t( |
| 453 |
// CPP-CHECK-NEXT: entry: |
| 454 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 455 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv16i8.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 0) |
| 456 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 457 |
// |
| 458 |
svmfloat8_t test_svld1q_gather_u64base_mf8(svbool_t pg, svuint64_t base) |
| 459 |
{ |
| 460 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_mf8,)(pg, base); |
| 461 |
} |
| 462 |
|
| 463 |
// CHECK-LABEL: @test_svld1q_gather_u64index_s16( |
| 464 |
// CHECK-NEXT: entry: |
| 465 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 466 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.index.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 467 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 468 |
// |
| 469 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_s16u10__SVBool_tPKsu12__SVUint64_t( |
| 470 |
// CPP-CHECK-NEXT: entry: |
| 471 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 472 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.index.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 473 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 474 |
// |
| 475 |
svint16_t test_svld1q_gather_u64index_s16(svbool_t pg, const int16_t *base, svuint64_t idx) { |
| 476 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_s16) (pg, base, idx); |
| 477 |
} |
| 478 |
|
| 479 |
// CHECK-LABEL: @test_svld1q_gather_u64index_u16( |
| 480 |
// CHECK-NEXT: entry: |
| 481 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 482 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.index.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 483 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 484 |
// |
| 485 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_u16u10__SVBool_tPKtu12__SVUint64_t( |
| 486 |
// CPP-CHECK-NEXT: entry: |
| 487 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 488 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.index.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 489 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 490 |
// |
| 491 |
svuint16_t test_svld1q_gather_u64index_u16(svbool_t pg, const uint16_t *base, svuint64_t idx) { |
| 492 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_u16) (pg, base, idx); |
| 493 |
} |
| 494 |
|
| 495 |
// CHECK-LABEL: @test_svld1q_gather_u64index_s32( |
| 496 |
// CHECK-NEXT: entry: |
| 497 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 498 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.index.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 499 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 500 |
// |
| 501 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_s32u10__SVBool_tPKiu12__SVUint64_t( |
| 502 |
// CPP-CHECK-NEXT: entry: |
| 503 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 504 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.index.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 505 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 506 |
// |
| 507 |
svint32_t test_svld1q_gather_u64index_s32(svbool_t pg, const int32_t *base, svuint64_t idx) { |
| 508 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_s32) (pg, base, idx); |
| 509 |
} |
| 510 |
|
| 511 |
// CHECK-LABEL: @test_svld1q_gather_u64index_u32( |
| 512 |
// CHECK-NEXT: entry: |
| 513 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 514 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.index.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 515 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 516 |
// |
| 517 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_u32u10__SVBool_tPKju12__SVUint64_t( |
| 518 |
// CPP-CHECK-NEXT: entry: |
| 519 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 520 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.index.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 521 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 522 |
// |
| 523 |
svuint32_t test_svld1q_gather_u64index_u32(svbool_t pg, const uint32_t *base, svuint64_t idx) { |
| 524 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_u32) (pg, base, idx); |
| 525 |
} |
| 526 |
|
| 527 |
// CHECK-LABEL: @test_svld1q_gather_u64index_s64( |
| 528 |
// CHECK-NEXT: entry: |
| 529 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 530 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.index.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 531 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 532 |
// |
| 533 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_s64u10__SVBool_tPKlu12__SVUint64_t( |
| 534 |
// CPP-CHECK-NEXT: entry: |
| 535 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 536 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.index.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 537 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 538 |
// |
| 539 |
svint64_t test_svld1q_gather_u64index_s64(svbool_t pg, const int64_t *base, svuint64_t idx) { |
| 540 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_s64) (pg, base, idx); |
| 541 |
} |
| 542 |
|
| 543 |
// CHECK-LABEL: @test_svld1q_gather_u64index_u64( |
| 544 |
// CHECK-NEXT: entry: |
| 545 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 546 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.index.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 547 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 548 |
// |
| 549 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_u64u10__SVBool_tPKmu12__SVUint64_t( |
| 550 |
// CPP-CHECK-NEXT: entry: |
| 551 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 552 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.index.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 553 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 554 |
// |
| 555 |
svuint64_t test_svld1q_gather_u64index_u64(svbool_t pg, const uint64_t *base, svuint64_t idx) { |
| 556 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_u64) (pg, base, idx); |
| 557 |
} |
| 558 |
|
| 559 |
// CHECK-LABEL: @test_svld1q_gather_u64index_bf16( |
| 560 |
// CHECK-NEXT: entry: |
| 561 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 562 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.index.nxv8bf16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 563 |
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 564 |
// |
| 565 |
// CPP-CHECK-LABEL: @_Z32test_svld1q_gather_u64index_bf16u10__SVBool_tPKu6__bf16u12__SVUint64_t( |
| 566 |
// CPP-CHECK-NEXT: entry: |
| 567 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 568 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.index.nxv8bf16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 569 |
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 570 |
// |
| 571 |
svbfloat16_t test_svld1q_gather_u64index_bf16(svbool_t pg, const bfloat16_t *base, svuint64_t idx) { |
| 572 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_bf16) (pg, base, idx); |
| 573 |
} |
| 574 |
|
| 575 |
// CHECK-LABEL: @test_svld1q_gather_u64index_f16( |
| 576 |
// CHECK-NEXT: entry: |
| 577 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 578 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.index.nxv8f16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 579 |
// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 580 |
// |
| 581 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_f16u10__SVBool_tPKDhu12__SVUint64_t( |
| 582 |
// CPP-CHECK-NEXT: entry: |
| 583 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 584 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.index.nxv8f16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 585 |
// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 586 |
// |
| 587 |
svfloat16_t test_svld1q_gather_u64index_f16(svbool_t pg, const float16_t *base, svuint64_t idx) { |
| 588 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_f16) (pg, base, idx); |
| 589 |
} |
| 590 |
|
| 591 |
// CHECK-LABEL: @test_svld1q_gather_u64index_f32( |
| 592 |
// CHECK-NEXT: entry: |
| 593 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 594 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.index.nxv4f32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 595 |
// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 596 |
// |
| 597 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_f32u10__SVBool_tPKfu12__SVUint64_t( |
| 598 |
// CPP-CHECK-NEXT: entry: |
| 599 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 600 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.index.nxv4f32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 601 |
// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 602 |
// |
| 603 |
svfloat32_t test_svld1q_gather_u64index_f32(svbool_t pg, const float32_t *base, svuint64_t idx) { |
| 604 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_f32) (pg, base, idx); |
| 605 |
} |
| 606 |
|
| 607 |
// CHECK-LABEL: @test_svld1q_gather_u64index_f64( |
| 608 |
// CHECK-NEXT: entry: |
| 609 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 610 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.index.nxv2f64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 611 |
// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 612 |
// |
| 613 |
// CPP-CHECK-LABEL: @_Z31test_svld1q_gather_u64index_f64u10__SVBool_tPKdu12__SVUint64_t( |
| 614 |
// CPP-CHECK-NEXT: entry: |
| 615 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 616 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.index.nxv2f64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[IDX:%.*]]) |
| 617 |
// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 618 |
// |
| 619 |
svfloat64_t test_svld1q_gather_u64index_f64(svbool_t pg, const float64_t *base, svuint64_t idx) { |
| 620 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,index,_f64) (pg, base, idx); |
| 621 |
} |
| 622 |
|
| 623 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_s16( |
| 624 |
// CHECK-NEXT: entry: |
| 625 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 626 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 627 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 628 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP2]] |
| 629 |
// |
| 630 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_s16u10__SVBool_tu12__SVUint64_tl( |
| 631 |
// CPP-CHECK-NEXT: entry: |
| 632 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 633 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 634 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 635 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP2]] |
| 636 |
// |
| 637 |
svint16_t test_svld1q_gather_u64base_index_s16(svbool_t pg, svuint64_t base, int64_t idx) { |
| 638 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_s16,)(pg, base, idx); |
| 639 |
} |
| 640 |
|
| 641 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_u16( |
| 642 |
// CHECK-NEXT: entry: |
| 643 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 644 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 645 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 646 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP2]] |
| 647 |
// |
| 648 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_u16u10__SVBool_tu12__SVUint64_tl( |
| 649 |
// CPP-CHECK-NEXT: entry: |
| 650 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 651 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 652 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8i16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 653 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP2]] |
| 654 |
// |
| 655 |
svuint16_t test_svld1q_gather_u64base_index_u16(svbool_t pg, svuint64_t base, int64_t idx) { |
| 656 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_u16,)(pg, base, idx); |
| 657 |
} |
| 658 |
|
| 659 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_s32( |
| 660 |
// CHECK-NEXT: entry: |
| 661 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 662 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 663 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 664 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP2]] |
| 665 |
// |
| 666 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_s32u10__SVBool_tu12__SVUint64_tl( |
| 667 |
// CPP-CHECK-NEXT: entry: |
| 668 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 669 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 670 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 671 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP2]] |
| 672 |
// |
| 673 |
svint32_t test_svld1q_gather_u64base_index_s32(svbool_t pg, svuint64_t base, int64_t idx) { |
| 674 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_s32,)(pg, base, idx); |
| 675 |
} |
| 676 |
|
| 677 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_u32( |
| 678 |
// CHECK-NEXT: entry: |
| 679 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 680 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 681 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 682 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP2]] |
| 683 |
// |
| 684 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_u32u10__SVBool_tu12__SVUint64_tl( |
| 685 |
// CPP-CHECK-NEXT: entry: |
| 686 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 687 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 688 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4i32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 689 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP2]] |
| 690 |
// |
| 691 |
svuint32_t test_svld1q_gather_u64base_index_u32(svbool_t pg, svuint64_t base, int64_t idx) { |
| 692 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_u32,)(pg, base, idx); |
| 693 |
} |
| 694 |
|
| 695 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_s64( |
| 696 |
// CHECK-NEXT: entry: |
| 697 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 698 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 699 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 700 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP2]] |
| 701 |
// |
| 702 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_s64u10__SVBool_tu12__SVUint64_tl( |
| 703 |
// CPP-CHECK-NEXT: entry: |
| 704 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 705 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 706 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 707 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP2]] |
| 708 |
// |
| 709 |
svint64_t test_svld1q_gather_u64base_index_s64(svbool_t pg, svuint64_t base, int64_t idx) { |
| 710 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_s64,)(pg, base, idx); |
| 711 |
} |
| 712 |
|
| 713 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_u64( |
| 714 |
// CHECK-NEXT: entry: |
| 715 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 716 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 717 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 718 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP2]] |
| 719 |
// |
| 720 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_u64u10__SVBool_tu12__SVUint64_tl( |
| 721 |
// CPP-CHECK-NEXT: entry: |
| 722 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 723 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 724 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 725 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP2]] |
| 726 |
// |
| 727 |
svuint64_t test_svld1q_gather_u64base_index_u64(svbool_t pg, svuint64_t base, int64_t idx) { |
| 728 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_u64,)(pg, base, idx); |
| 729 |
} |
| 730 |
|
| 731 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_bf16( |
| 732 |
// CHECK-NEXT: entry: |
| 733 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 734 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 735 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 736 |
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP2]] |
| 737 |
// |
| 738 |
// CPP-CHECK-LABEL: @_Z37test_svld1q_gather_u64base_index_bf16u10__SVBool_tu12__SVUint64_tl( |
| 739 |
// CPP-CHECK-NEXT: entry: |
| 740 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 741 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 742 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8bf16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 743 |
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP2]] |
| 744 |
// |
| 745 |
svbfloat16_t test_svld1q_gather_u64base_index_bf16(svbool_t pg, svuint64_t base, int64_t idx) { |
| 746 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_bf16,)(pg, base, idx); |
| 747 |
} |
| 748 |
|
| 749 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_f16( |
| 750 |
// CHECK-NEXT: entry: |
| 751 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 752 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 753 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 754 |
// CHECK-NEXT: ret <vscale x 8 x half> [[TMP2]] |
| 755 |
// |
| 756 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_f16u10__SVBool_tu12__SVUint64_tl( |
| 757 |
// CPP-CHECK-NEXT: entry: |
| 758 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 759 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 1 |
| 760 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv8f16.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 761 |
// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP2]] |
| 762 |
// |
| 763 |
svfloat16_t test_svld1q_gather_u64base_index_f16(svbool_t pg, svuint64_t base, int64_t idx) { |
| 764 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_f16,)(pg, base, idx); |
| 765 |
} |
| 766 |
|
| 767 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_f32( |
| 768 |
// CHECK-NEXT: entry: |
| 769 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 770 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 771 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 772 |
// CHECK-NEXT: ret <vscale x 4 x float> [[TMP2]] |
| 773 |
// |
| 774 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_f32u10__SVBool_tu12__SVUint64_tl( |
| 775 |
// CPP-CHECK-NEXT: entry: |
| 776 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 777 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 2 |
| 778 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv4f32.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 779 |
// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP2]] |
| 780 |
// |
| 781 |
svfloat32_t test_svld1q_gather_u64base_index_f32(svbool_t pg, svuint64_t base, int64_t idx) { |
| 782 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_f32,)(pg, base, idx); |
| 783 |
} |
| 784 |
|
| 785 |
// CHECK-LABEL: @test_svld1q_gather_u64base_index_f64( |
| 786 |
// CHECK-NEXT: entry: |
| 787 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 788 |
// CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 789 |
// CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 790 |
// CHECK-NEXT: ret <vscale x 2 x double> [[TMP2]] |
| 791 |
// |
| 792 |
// CPP-CHECK-LABEL: @_Z36test_svld1q_gather_u64base_index_f64u10__SVBool_tu12__SVUint64_tl( |
| 793 |
// CPP-CHECK-NEXT: entry: |
| 794 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 795 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[IDX:%.*]], 3 |
| 796 |
// CPP-CHECK-NEXT: [[TMP2:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2f64.nxv2i64(<vscale x 1 x i1> [[TMP0]], <vscale x 2 x i64> [[BASE:%.*]], i64 [[TMP1]]) |
| 797 |
// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP2]] |
| 798 |
// |
| 799 |
svfloat64_t test_svld1q_gather_u64base_index_f64(svbool_t pg, svuint64_t base, int64_t idx) { |
| 800 |
return SVE_ACLE_FUNC(svld1q_gather,_u64base,_index_f64,)(pg, base, idx); |
| 801 |
} |
| 802 |
|
| 803 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_s8( |
| 804 |
// CHECK-NEXT: entry: |
| 805 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 806 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 807 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 808 |
// |
| 809 |
// CPP-CHECK-LABEL: @_Z31test_svdl1q_gather_u64offset_s8u10__SVBool_tPKau12__SVUint64_t( |
| 810 |
// CPP-CHECK-NEXT: entry: |
| 811 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 812 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 813 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 814 |
// |
| 815 |
svint8_t test_svdl1q_gather_u64offset_s8(svbool_t pg, const int8_t *base, svuint64_t off) { |
| 816 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_s8)(pg, base, off); |
| 817 |
} |
| 818 |
|
| 819 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_u8( |
| 820 |
// CHECK-NEXT: entry: |
| 821 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 822 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 823 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 824 |
// |
| 825 |
// CPP-CHECK-LABEL: @_Z31test_svdl1q_gather_u64offset_u8u10__SVBool_tPKhu12__SVUint64_t( |
| 826 |
// CPP-CHECK-NEXT: entry: |
| 827 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 828 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 829 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 830 |
// |
| 831 |
svuint8_t test_svdl1q_gather_u64offset_u8(svbool_t pg, const uint8_t *base, svuint64_t off) { |
| 832 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_u8)(pg, base, off); |
| 833 |
} |
| 834 |
|
| 835 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_s16( |
| 836 |
// CHECK-NEXT: entry: |
| 837 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 838 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 839 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 840 |
// |
| 841 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_s16u10__SVBool_tPKsu12__SVUint64_t( |
| 842 |
// CPP-CHECK-NEXT: entry: |
| 843 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 844 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 845 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 846 |
// |
| 847 |
svint16_t test_svdl1q_gather_u64offset_s16(svbool_t pg, const int16_t *base, svuint64_t off) { |
| 848 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_s16)(pg, base, off); |
| 849 |
} |
| 850 |
|
| 851 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_u16( |
| 852 |
// CHECK-NEXT: entry: |
| 853 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 854 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 855 |
// CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 856 |
// |
| 857 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_u16u10__SVBool_tPKtu12__SVUint64_t( |
| 858 |
// CPP-CHECK-NEXT: entry: |
| 859 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 860 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8i16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 861 |
// CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP1]] |
| 862 |
// |
| 863 |
svuint16_t test_svdl1q_gather_u64offset_u16(svbool_t pg, const uint16_t *base, svuint64_t off) { |
| 864 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_u16)(pg, base, off); |
| 865 |
} |
| 866 |
|
| 867 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_s32( |
| 868 |
// CHECK-NEXT: entry: |
| 869 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 870 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 871 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 872 |
// |
| 873 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_s32u10__SVBool_tPKiu12__SVUint64_t( |
| 874 |
// CPP-CHECK-NEXT: entry: |
| 875 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 876 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 877 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 878 |
// |
| 879 |
svint32_t test_svdl1q_gather_u64offset_s32(svbool_t pg, const int32_t *base, svuint64_t off) { |
| 880 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_s32)(pg, base, off); |
| 881 |
} |
| 882 |
|
| 883 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_u32( |
| 884 |
// CHECK-NEXT: entry: |
| 885 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 886 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 887 |
// CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 888 |
// |
| 889 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_u32u10__SVBool_tPKju12__SVUint64_t( |
| 890 |
// CPP-CHECK-NEXT: entry: |
| 891 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 892 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4i32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 893 |
// CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP1]] |
| 894 |
// |
| 895 |
svuint32_t test_svdl1q_gather_u64offset_u32(svbool_t pg, const uint32_t *base, svuint64_t off) { |
| 896 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_u32)(pg, base, off); |
| 897 |
} |
| 898 |
|
| 899 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_s64( |
| 900 |
// CHECK-NEXT: entry: |
| 901 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 902 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 903 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 904 |
// |
| 905 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_s64u10__SVBool_tPKlu12__SVUint64_t( |
| 906 |
// CPP-CHECK-NEXT: entry: |
| 907 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 908 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 909 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 910 |
// |
| 911 |
svint64_t test_svdl1q_gather_u64offset_s64(svbool_t pg, const int64_t *base, svuint64_t off) { |
| 912 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_s64)(pg, base, off); |
| 913 |
} |
| 914 |
|
| 915 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_u64( |
| 916 |
// CHECK-NEXT: entry: |
| 917 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 918 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 919 |
// CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 920 |
// |
| 921 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_u64u10__SVBool_tPKmu12__SVUint64_t( |
| 922 |
// CPP-CHECK-NEXT: entry: |
| 923 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 924 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2i64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 925 |
// CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP1]] |
| 926 |
// |
| 927 |
svuint64_t test_svdl1q_gather_u64offset_u64(svbool_t pg, const uint64_t *base, svuint64_t off) { |
| 928 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_u64)(pg, base, off); |
| 929 |
} |
| 930 |
|
| 931 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_bf16( |
| 932 |
// CHECK-NEXT: entry: |
| 933 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 934 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8bf16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 935 |
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 936 |
// |
| 937 |
// CPP-CHECK-LABEL: @_Z33test_svdl1q_gather_u64offset_bf16u10__SVBool_tPKu6__bf16u12__SVUint64_t( |
| 938 |
// CPP-CHECK-NEXT: entry: |
| 939 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 940 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8bf16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 941 |
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]] |
| 942 |
// |
| 943 |
svbfloat16_t test_svdl1q_gather_u64offset_bf16(svbool_t pg, const bfloat16_t *base, svuint64_t off) { |
| 944 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_bf16)(pg, base, off); |
| 945 |
} |
| 946 |
|
| 947 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_f16( |
| 948 |
// CHECK-NEXT: entry: |
| 949 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 950 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8f16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 951 |
// CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 952 |
// |
| 953 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_f16u10__SVBool_tPKDhu12__SVUint64_t( |
| 954 |
// CPP-CHECK-NEXT: entry: |
| 955 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 956 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x half> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv8f16(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 957 |
// CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP1]] |
| 958 |
// |
| 959 |
svfloat16_t test_svdl1q_gather_u64offset_f16(svbool_t pg, const float16_t *base, svuint64_t off) { |
| 960 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_f16)(pg, base, off); |
| 961 |
} |
| 962 |
|
| 963 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_f32( |
| 964 |
// CHECK-NEXT: entry: |
| 965 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 966 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4f32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 967 |
// CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 968 |
// |
| 969 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_f32u10__SVBool_tPKfu12__SVUint64_t( |
| 970 |
// CPP-CHECK-NEXT: entry: |
| 971 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 972 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 4 x float> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv4f32(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 973 |
// CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]] |
| 974 |
// |
| 975 |
svfloat32_t test_svdl1q_gather_u64offset_f32(svbool_t pg, const float32_t *base, svuint64_t off) { |
| 976 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_f32)(pg, base, off); |
| 977 |
} |
| 978 |
|
| 979 |
// CHECK-LABEL: @test_svdl1q_gather_u64offset_f64( |
| 980 |
// CHECK-NEXT: entry: |
| 981 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 982 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2f64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 983 |
// CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 984 |
// |
| 985 |
// CPP-CHECK-LABEL: @_Z32test_svdl1q_gather_u64offset_f64u10__SVBool_tPKdu12__SVUint64_t( |
| 986 |
// CPP-CHECK-NEXT: entry: |
| 987 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 988 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 2 x double> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv2f64(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 989 |
// CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]] |
| 990 |
// |
| 991 |
svfloat64_t test_svdl1q_gather_u64offset_f64(svbool_t pg, const float64_t *base, svuint64_t off) { |
| 992 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_f64)(pg, base, off); |
| 993 |
} |
| 994 |
|
| 995 |
// CHECK-LABEL: @test_svld1q_gather_u64offset_mf8( |
| 996 |
// CHECK-NEXT: entry: |
| 997 |
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 998 |
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 999 |
// CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 1000 |
// |
| 1001 |
// CPP-CHECK-LABEL: @_Z32test_svld1q_gather_u64offset_mf8u10__SVBool_tPKu6__mfp8u12__SVUint64_t( |
| 1002 |
// CPP-CHECK-NEXT: entry: |
| 1003 |
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 1 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv1i1(<vscale x 16 x i1> [[PG:%.*]]) |
| 1004 |
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.ld1q.gather.vector.offset.nxv16i8(<vscale x 1 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFF:%.*]]) |
| 1005 |
// CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP1]] |
| 1006 |
// |
| 1007 |
svmfloat8_t test_svld1q_gather_u64offset_mf8(svbool_t pg, mfloat8_t const *base, svuint64_t off) { |
| 1008 |
return SVE_ACLE_FUNC(svld1q_gather_,u64,offset,_mf8)(pg, base, off); |
| 1009 |
} |