Debian Codegraph @

clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret.c

raw
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 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
4 // RUN: %clang_cc1 -DTUPLE=x2 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE2
5 // RUN: %clang_cc1 -DTUPLE=x3 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE3
6 // RUN: %clang_cc1 -DTUPLE=x4 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE4
7 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
8 // RUN: %clang_cc1 -DTUPLE=x2 -triple aarch64 -target-feature +sme -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE2
9 // RUN: %clang_cc1 -DTUPLE=x3 -triple aarch64 -target-feature +sme -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE3
10 // RUN: %clang_cc1 -DTUPLE=x4 -triple aarch64 -target-feature +sme -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE4
11 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
12 // RUN: %clang_cc1 -DTUPLE=x2 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE2
13 // RUN: %clang_cc1 -DTUPLE=x3 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE3
14 // RUN: %clang_cc1 -DTUPLE=x4 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE4
15 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
16 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x2 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE2
17 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x3 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE3
18 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x4 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=TUPLE4
19 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
20 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x2 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE2
21 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x3 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE3
22 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -DTUPLE=x4 -triple aarch64 -target-feature +sve -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-TUPLE4
23 // RUN: %clang_cc1 -triple aarch64 -target-feature +sve -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
24 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
25
26 #include <arm_sve.h>
27
28 #if defined __ARM_FEATURE_SME
29 #define MODE_ATTR __arm_streaming
30 #else
31 #define MODE_ATTR
32 #endif
33
34 #ifdef TUPLE
35 #define TYPE_1(base,tuple) base ## tuple ## _t
36 #define TYPE_0(base,tuple) TYPE_1(base,tuple)
37 #define TYPE(base) TYPE_0(base,TUPLE)
38 #else
39 #define TYPE(base) base ## _t
40 #endif
41
42 #ifdef SVE_OVERLOADED_FORMS
43 #define SVE_ACLE_FUNC(A1,A2_UNUSED) A1
44 #else
45 #ifdef TUPLE
46 #define SVE_ACLE_FUNC_1(A1,A2,T) A1##A2##_##T
47 #define SVE_ACLE_FUNC_0(A1,A2,T) SVE_ACLE_FUNC_1(A1,A2,T)
48 #define SVE_ACLE_FUNC(A1,A2) SVE_ACLE_FUNC_0(A1,A2,TUPLE)
49 #else
50 #define SVE_ACLE_FUNC(A1,A2) A1##A2
51 #endif
52 #endif
53
54 // CHECK-LABEL: @test_svreinterpret_s8_s8(
55 // CHECK-NEXT: entry:
56 // CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
57 //
58 // TUPLE2-LABEL: @test_svreinterpret_s8_s8(
59 // TUPLE2-NEXT: entry:
60 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
61 //
62 // TUPLE3-LABEL: @test_svreinterpret_s8_s8(
63 // TUPLE3-NEXT: entry:
64 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
65 //
66 // TUPLE4-LABEL: @test_svreinterpret_s8_s8(
67 // TUPLE4-NEXT: entry:
68 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
69 //
70 // CPP-CHECK-LABEL: @_Z24test_svreinterpret_s8_s8u10__SVInt8_t(
71 // CPP-CHECK-NEXT: entry:
72 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
73 //
74 // CPP-TUPLE2-LABEL: @_Z24test_svreinterpret_s8_s810svint8x2_t(
75 // CPP-TUPLE2-NEXT: entry:
76 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
77 //
78 // CPP-TUPLE3-LABEL: @_Z24test_svreinterpret_s8_s810svint8x3_t(
79 // CPP-TUPLE3-NEXT: entry:
80 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
81 //
82 // CPP-TUPLE4-LABEL: @_Z24test_svreinterpret_s8_s810svint8x4_t(
83 // CPP-TUPLE4-NEXT: entry:
84 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
85 //
86 TYPE(svint8) test_svreinterpret_s8_s8(TYPE(svint8) op) MODE_ATTR
87 {
88 return SVE_ACLE_FUNC(svreinterpret_s8,_s8)(op);
89 }
90
91 // CHECK-LABEL: @test_svreinterpret_s8_s16(
92 // CHECK-NEXT: entry:
93 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
94 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
95 //
96 // TUPLE2-LABEL: @test_svreinterpret_s8_s16(
97 // TUPLE2-NEXT: entry:
98 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
99 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
100 //
101 // TUPLE3-LABEL: @test_svreinterpret_s8_s16(
102 // TUPLE3-NEXT: entry:
103 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
104 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
105 //
106 // TUPLE4-LABEL: @test_svreinterpret_s8_s16(
107 // TUPLE4-NEXT: entry:
108 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
109 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
110 //
111 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_s16u11__SVInt16_t(
112 // CPP-CHECK-NEXT: entry:
113 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
114 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
115 //
116 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_s1611svint16x2_t(
117 // CPP-TUPLE2-NEXT: entry:
118 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
119 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
120 //
121 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_s1611svint16x3_t(
122 // CPP-TUPLE3-NEXT: entry:
123 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
124 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
125 //
126 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_s1611svint16x4_t(
127 // CPP-TUPLE4-NEXT: entry:
128 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
129 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
130 //
131 TYPE(svint8) test_svreinterpret_s8_s16(TYPE(svint16) op) MODE_ATTR
132 {
133 return SVE_ACLE_FUNC(svreinterpret_s8,_s16)(op);
134 }
135
136 // CHECK-LABEL: @test_svreinterpret_s8_s32(
137 // CHECK-NEXT: entry:
138 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
139 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
140 //
141 // TUPLE2-LABEL: @test_svreinterpret_s8_s32(
142 // TUPLE2-NEXT: entry:
143 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
144 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
145 //
146 // TUPLE3-LABEL: @test_svreinterpret_s8_s32(
147 // TUPLE3-NEXT: entry:
148 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
149 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
150 //
151 // TUPLE4-LABEL: @test_svreinterpret_s8_s32(
152 // TUPLE4-NEXT: entry:
153 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
154 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
155 //
156 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_s32u11__SVInt32_t(
157 // CPP-CHECK-NEXT: entry:
158 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
159 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
160 //
161 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_s3211svint32x2_t(
162 // CPP-TUPLE2-NEXT: entry:
163 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
164 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
165 //
166 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_s3211svint32x3_t(
167 // CPP-TUPLE3-NEXT: entry:
168 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
169 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
170 //
171 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_s3211svint32x4_t(
172 // CPP-TUPLE4-NEXT: entry:
173 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
174 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
175 //
176 TYPE(svint8) test_svreinterpret_s8_s32(TYPE(svint32) op) MODE_ATTR
177 {
178 return SVE_ACLE_FUNC(svreinterpret_s8,_s32)(op);
179 }
180
181 // CHECK-LABEL: @test_svreinterpret_s8_s64(
182 // CHECK-NEXT: entry:
183 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
184 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
185 //
186 // TUPLE2-LABEL: @test_svreinterpret_s8_s64(
187 // TUPLE2-NEXT: entry:
188 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
189 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
190 //
191 // TUPLE3-LABEL: @test_svreinterpret_s8_s64(
192 // TUPLE3-NEXT: entry:
193 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
194 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
195 //
196 // TUPLE4-LABEL: @test_svreinterpret_s8_s64(
197 // TUPLE4-NEXT: entry:
198 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
199 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
200 //
201 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_s64u11__SVInt64_t(
202 // CPP-CHECK-NEXT: entry:
203 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
204 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
205 //
206 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_s6411svint64x2_t(
207 // CPP-TUPLE2-NEXT: entry:
208 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
209 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
210 //
211 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_s6411svint64x3_t(
212 // CPP-TUPLE3-NEXT: entry:
213 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
214 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
215 //
216 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_s6411svint64x4_t(
217 // CPP-TUPLE4-NEXT: entry:
218 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
219 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
220 //
221 TYPE(svint8) test_svreinterpret_s8_s64(TYPE(svint64) op) MODE_ATTR
222 {
223 return SVE_ACLE_FUNC(svreinterpret_s8,_s64)(op);
224 }
225
226 // CHECK-LABEL: @test_svreinterpret_s8_u8(
227 // CHECK-NEXT: entry:
228 // CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
229 //
230 // TUPLE2-LABEL: @test_svreinterpret_s8_u8(
231 // TUPLE2-NEXT: entry:
232 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
233 //
234 // TUPLE3-LABEL: @test_svreinterpret_s8_u8(
235 // TUPLE3-NEXT: entry:
236 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
237 //
238 // TUPLE4-LABEL: @test_svreinterpret_s8_u8(
239 // TUPLE4-NEXT: entry:
240 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
241 //
242 // CPP-CHECK-LABEL: @_Z24test_svreinterpret_s8_u8u11__SVUint8_t(
243 // CPP-CHECK-NEXT: entry:
244 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
245 //
246 // CPP-TUPLE2-LABEL: @_Z24test_svreinterpret_s8_u811svuint8x2_t(
247 // CPP-TUPLE2-NEXT: entry:
248 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
249 //
250 // CPP-TUPLE3-LABEL: @_Z24test_svreinterpret_s8_u811svuint8x3_t(
251 // CPP-TUPLE3-NEXT: entry:
252 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
253 //
254 // CPP-TUPLE4-LABEL: @_Z24test_svreinterpret_s8_u811svuint8x4_t(
255 // CPP-TUPLE4-NEXT: entry:
256 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
257 //
258 TYPE(svint8) test_svreinterpret_s8_u8(TYPE(svuint8) op) MODE_ATTR
259 {
260 return SVE_ACLE_FUNC(svreinterpret_s8,_u8)(op);
261 }
262
263 // CHECK-LABEL: @test_svreinterpret_s8_u16(
264 // CHECK-NEXT: entry:
265 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
266 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
267 //
268 // TUPLE2-LABEL: @test_svreinterpret_s8_u16(
269 // TUPLE2-NEXT: entry:
270 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
271 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
272 //
273 // TUPLE3-LABEL: @test_svreinterpret_s8_u16(
274 // TUPLE3-NEXT: entry:
275 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
276 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
277 //
278 // TUPLE4-LABEL: @test_svreinterpret_s8_u16(
279 // TUPLE4-NEXT: entry:
280 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
281 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
282 //
283 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_u16u12__SVUint16_t(
284 // CPP-CHECK-NEXT: entry:
285 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
286 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
287 //
288 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_u1612svuint16x2_t(
289 // CPP-TUPLE2-NEXT: entry:
290 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
291 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
292 //
293 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_u1612svuint16x3_t(
294 // CPP-TUPLE3-NEXT: entry:
295 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
296 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
297 //
298 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_u1612svuint16x4_t(
299 // CPP-TUPLE4-NEXT: entry:
300 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
301 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
302 //
303 TYPE(svint8) test_svreinterpret_s8_u16(TYPE(svuint16) op) MODE_ATTR
304 {
305 return SVE_ACLE_FUNC(svreinterpret_s8,_u16)(op);
306 }
307
308 //
309 // CHECK-LABEL: @test_svreinterpret_s8_u32(
310 // CHECK-NEXT: entry:
311 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
312 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
313 //
314 // TUPLE2-LABEL: @test_svreinterpret_s8_u32(
315 // TUPLE2-NEXT: entry:
316 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
317 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
318 //
319 // TUPLE3-LABEL: @test_svreinterpret_s8_u32(
320 // TUPLE3-NEXT: entry:
321 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
322 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
323 //
324 // TUPLE4-LABEL: @test_svreinterpret_s8_u32(
325 // TUPLE4-NEXT: entry:
326 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
327 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
328 //
329 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_u32u12__SVUint32_t(
330 // CPP-CHECK-NEXT: entry:
331 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
332 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
333 //
334 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_u3212svuint32x2_t(
335 // CPP-TUPLE2-NEXT: entry:
336 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
337 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
338 //
339 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_u3212svuint32x3_t(
340 // CPP-TUPLE3-NEXT: entry:
341 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
342 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
343 //
344 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_u3212svuint32x4_t(
345 // CPP-TUPLE4-NEXT: entry:
346 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
347 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
348 //
349 TYPE(svint8) test_svreinterpret_s8_u32(TYPE(svuint32) op) MODE_ATTR
350 {
351 return SVE_ACLE_FUNC(svreinterpret_s8,_u32)(op);
352 }
353
354 //
355 // CHECK-LABEL: @test_svreinterpret_s8_u64(
356 // CHECK-NEXT: entry:
357 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
358 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
359 //
360 // TUPLE2-LABEL: @test_svreinterpret_s8_u64(
361 // TUPLE2-NEXT: entry:
362 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
363 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
364 //
365 // TUPLE3-LABEL: @test_svreinterpret_s8_u64(
366 // TUPLE3-NEXT: entry:
367 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
368 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
369 //
370 // TUPLE4-LABEL: @test_svreinterpret_s8_u64(
371 // TUPLE4-NEXT: entry:
372 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
373 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
374 //
375 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_u64u12__SVUint64_t(
376 // CPP-CHECK-NEXT: entry:
377 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
378 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
379 //
380 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_u6412svuint64x2_t(
381 // CPP-TUPLE2-NEXT: entry:
382 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
383 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
384 //
385 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_u6412svuint64x3_t(
386 // CPP-TUPLE3-NEXT: entry:
387 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
388 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
389 //
390 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_u6412svuint64x4_t(
391 // CPP-TUPLE4-NEXT: entry:
392 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
393 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
394 //
395 TYPE(svint8) test_svreinterpret_s8_u64(TYPE(svuint64) op) MODE_ATTR
396 {
397 return SVE_ACLE_FUNC(svreinterpret_s8,_u64)(op);
398 }
399
400 // CHECK-LABEL: @test_svreinterpret_s8_f16(
401 // CHECK-NEXT: entry:
402 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 16 x i8>
403 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
404 //
405 // TUPLE2-LABEL: @test_svreinterpret_s8_f16(
406 // TUPLE2-NEXT: entry:
407 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 32 x i8>
408 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
409 //
410 // TUPLE3-LABEL: @test_svreinterpret_s8_f16(
411 // TUPLE3-NEXT: entry:
412 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 48 x i8>
413 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
414 //
415 // TUPLE4-LABEL: @test_svreinterpret_s8_f16(
416 // TUPLE4-NEXT: entry:
417 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 64 x i8>
418 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
419 //
420 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_f16u13__SVFloat16_t(
421 // CPP-CHECK-NEXT: entry:
422 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 16 x i8>
423 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
424 //
425 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_f1613svfloat16x2_t(
426 // CPP-TUPLE2-NEXT: entry:
427 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 32 x i8>
428 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
429 //
430 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_f1613svfloat16x3_t(
431 // CPP-TUPLE3-NEXT: entry:
432 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 48 x i8>
433 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
434 //
435 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_f1613svfloat16x4_t(
436 // CPP-TUPLE4-NEXT: entry:
437 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 64 x i8>
438 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
439 //
440 TYPE(svint8) test_svreinterpret_s8_f16(TYPE(svfloat16) op) MODE_ATTR
441 {
442 return SVE_ACLE_FUNC(svreinterpret_s8,_f16)(op);
443 }
444
445 // CHECK-LABEL: @test_svreinterpret_s8_f32(
446 // CHECK-NEXT: entry:
447 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 16 x i8>
448 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
449 //
450 // TUPLE2-LABEL: @test_svreinterpret_s8_f32(
451 // TUPLE2-NEXT: entry:
452 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 32 x i8>
453 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
454 //
455 // TUPLE3-LABEL: @test_svreinterpret_s8_f32(
456 // TUPLE3-NEXT: entry:
457 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 48 x i8>
458 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
459 //
460 // TUPLE4-LABEL: @test_svreinterpret_s8_f32(
461 // TUPLE4-NEXT: entry:
462 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 64 x i8>
463 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
464 //
465 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_f32u13__SVFloat32_t(
466 // CPP-CHECK-NEXT: entry:
467 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 16 x i8>
468 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
469 //
470 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_f3213svfloat32x2_t(
471 // CPP-TUPLE2-NEXT: entry:
472 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 32 x i8>
473 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
474 //
475 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_f3213svfloat32x3_t(
476 // CPP-TUPLE3-NEXT: entry:
477 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 48 x i8>
478 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
479 //
480 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_f3213svfloat32x4_t(
481 // CPP-TUPLE4-NEXT: entry:
482 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 64 x i8>
483 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
484 //
485 TYPE(svint8) test_svreinterpret_s8_f32(TYPE(svfloat32) op) MODE_ATTR
486 {
487 return SVE_ACLE_FUNC(svreinterpret_s8,_f32)(op);
488 }
489
490 // CHECK-LABEL: @test_svreinterpret_s8_f64(
491 // CHECK-NEXT: entry:
492 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 16 x i8>
493 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
494 //
495 // TUPLE2-LABEL: @test_svreinterpret_s8_f64(
496 // TUPLE2-NEXT: entry:
497 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 32 x i8>
498 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
499 //
500 // TUPLE3-LABEL: @test_svreinterpret_s8_f64(
501 // TUPLE3-NEXT: entry:
502 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 48 x i8>
503 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
504 //
505 // TUPLE4-LABEL: @test_svreinterpret_s8_f64(
506 // TUPLE4-NEXT: entry:
507 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 64 x i8>
508 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
509 //
510 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s8_f64u13__SVFloat64_t(
511 // CPP-CHECK-NEXT: entry:
512 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 16 x i8>
513 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
514 //
515 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s8_f6413svfloat64x2_t(
516 // CPP-TUPLE2-NEXT: entry:
517 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 32 x i8>
518 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
519 //
520 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s8_f6413svfloat64x3_t(
521 // CPP-TUPLE3-NEXT: entry:
522 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 48 x i8>
523 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
524 //
525 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s8_f6413svfloat64x4_t(
526 // CPP-TUPLE4-NEXT: entry:
527 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 64 x i8>
528 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
529 //
530 TYPE(svint8) test_svreinterpret_s8_f64(TYPE(svfloat64) op) MODE_ATTR
531 {
532 return SVE_ACLE_FUNC(svreinterpret_s8,_f64)(op);
533 }
534
535 // CHECK-LABEL: @test_svreinterpret_s16_s8(
536 // CHECK-NEXT: entry:
537 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
538 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
539 //
540 // TUPLE2-LABEL: @test_svreinterpret_s16_s8(
541 // TUPLE2-NEXT: entry:
542 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
543 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
544 //
545 // TUPLE3-LABEL: @test_svreinterpret_s16_s8(
546 // TUPLE3-NEXT: entry:
547 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
548 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
549 //
550 // TUPLE4-LABEL: @test_svreinterpret_s16_s8(
551 // TUPLE4-NEXT: entry:
552 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
553 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
554 //
555 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s16_s8u10__SVInt8_t(
556 // CPP-CHECK-NEXT: entry:
557 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
558 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
559 //
560 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s16_s810svint8x2_t(
561 // CPP-TUPLE2-NEXT: entry:
562 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
563 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
564 //
565 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s16_s810svint8x3_t(
566 // CPP-TUPLE3-NEXT: entry:
567 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
568 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
569 //
570 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s16_s810svint8x4_t(
571 // CPP-TUPLE4-NEXT: entry:
572 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
573 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
574 //
575 TYPE(svint16) test_svreinterpret_s16_s8(TYPE(svint8) op) MODE_ATTR
576 {
577 return SVE_ACLE_FUNC(svreinterpret_s16,_s8)(op);
578 }
579
580 // CHECK-LABEL: @test_svreinterpret_s16_s16(
581 // CHECK-NEXT: entry:
582 // CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
583 //
584 // TUPLE2-LABEL: @test_svreinterpret_s16_s16(
585 // TUPLE2-NEXT: entry:
586 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
587 //
588 // TUPLE3-LABEL: @test_svreinterpret_s16_s16(
589 // TUPLE3-NEXT: entry:
590 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
591 //
592 // TUPLE4-LABEL: @test_svreinterpret_s16_s16(
593 // TUPLE4-NEXT: entry:
594 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
595 //
596 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_s16u11__SVInt16_t(
597 // CPP-CHECK-NEXT: entry:
598 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
599 //
600 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_s1611svint16x2_t(
601 // CPP-TUPLE2-NEXT: entry:
602 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
603 //
604 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_s1611svint16x3_t(
605 // CPP-TUPLE3-NEXT: entry:
606 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
607 //
608 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_s1611svint16x4_t(
609 // CPP-TUPLE4-NEXT: entry:
610 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
611 //
612 TYPE(svint16) test_svreinterpret_s16_s16(TYPE(svint16) op) MODE_ATTR
613 {
614 return SVE_ACLE_FUNC(svreinterpret_s16,_s16)(op);
615 }
616
617 // CHECK-LABEL: @test_svreinterpret_s16_s32(
618 // CHECK-NEXT: entry:
619 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
620 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
621 //
622 // TUPLE2-LABEL: @test_svreinterpret_s16_s32(
623 // TUPLE2-NEXT: entry:
624 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
625 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
626 //
627 // TUPLE3-LABEL: @test_svreinterpret_s16_s32(
628 // TUPLE3-NEXT: entry:
629 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
630 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
631 //
632 // TUPLE4-LABEL: @test_svreinterpret_s16_s32(
633 // TUPLE4-NEXT: entry:
634 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
635 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
636 //
637 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_s32u11__SVInt32_t(
638 // CPP-CHECK-NEXT: entry:
639 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
640 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
641 //
642 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_s3211svint32x2_t(
643 // CPP-TUPLE2-NEXT: entry:
644 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
645 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
646 //
647 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_s3211svint32x3_t(
648 // CPP-TUPLE3-NEXT: entry:
649 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
650 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
651 //
652 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_s3211svint32x4_t(
653 // CPP-TUPLE4-NEXT: entry:
654 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
655 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
656 //
657 TYPE(svint16) test_svreinterpret_s16_s32(TYPE(svint32) op) MODE_ATTR
658 {
659 return SVE_ACLE_FUNC(svreinterpret_s16,_s32)(op);
660 }
661
662 // CHECK-LABEL: @test_svreinterpret_s16_s64(
663 // CHECK-NEXT: entry:
664 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
665 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
666 //
667 // TUPLE2-LABEL: @test_svreinterpret_s16_s64(
668 // TUPLE2-NEXT: entry:
669 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
670 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
671 //
672 // TUPLE3-LABEL: @test_svreinterpret_s16_s64(
673 // TUPLE3-NEXT: entry:
674 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
675 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
676 //
677 // TUPLE4-LABEL: @test_svreinterpret_s16_s64(
678 // TUPLE4-NEXT: entry:
679 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
680 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
681 //
682 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_s64u11__SVInt64_t(
683 // CPP-CHECK-NEXT: entry:
684 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
685 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
686 //
687 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_s6411svint64x2_t(
688 // CPP-TUPLE2-NEXT: entry:
689 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
690 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
691 //
692 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_s6411svint64x3_t(
693 // CPP-TUPLE3-NEXT: entry:
694 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
695 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
696 //
697 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_s6411svint64x4_t(
698 // CPP-TUPLE4-NEXT: entry:
699 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
700 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
701 //
702 TYPE(svint16) test_svreinterpret_s16_s64(TYPE(svint64) op) MODE_ATTR
703 {
704 return SVE_ACLE_FUNC(svreinterpret_s16,_s64)(op);
705 }
706
707 // CHECK-LABEL: @test_svreinterpret_s16_u8(
708 // CHECK-NEXT: entry:
709 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
710 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
711 //
712 // TUPLE2-LABEL: @test_svreinterpret_s16_u8(
713 // TUPLE2-NEXT: entry:
714 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
715 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
716 //
717 // TUPLE3-LABEL: @test_svreinterpret_s16_u8(
718 // TUPLE3-NEXT: entry:
719 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
720 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
721 //
722 // TUPLE4-LABEL: @test_svreinterpret_s16_u8(
723 // TUPLE4-NEXT: entry:
724 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
725 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
726 //
727 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s16_u8u11__SVUint8_t(
728 // CPP-CHECK-NEXT: entry:
729 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
730 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
731 //
732 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s16_u811svuint8x2_t(
733 // CPP-TUPLE2-NEXT: entry:
734 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
735 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
736 //
737 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s16_u811svuint8x3_t(
738 // CPP-TUPLE3-NEXT: entry:
739 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
740 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
741 //
742 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s16_u811svuint8x4_t(
743 // CPP-TUPLE4-NEXT: entry:
744 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
745 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
746 //
747 TYPE(svint16) test_svreinterpret_s16_u8(TYPE(svuint8) op) MODE_ATTR
748 {
749 return SVE_ACLE_FUNC(svreinterpret_s16,_u8)(op);
750 }
751
752 // CHECK-LABEL: @test_svreinterpret_s16_u16(
753 // CHECK-NEXT: entry:
754 // CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
755 //
756 // TUPLE2-LABEL: @test_svreinterpret_s16_u16(
757 // TUPLE2-NEXT: entry:
758 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
759 //
760 // TUPLE3-LABEL: @test_svreinterpret_s16_u16(
761 // TUPLE3-NEXT: entry:
762 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
763 //
764 // TUPLE4-LABEL: @test_svreinterpret_s16_u16(
765 // TUPLE4-NEXT: entry:
766 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
767 //
768 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_u16u12__SVUint16_t(
769 // CPP-CHECK-NEXT: entry:
770 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
771 //
772 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_u1612svuint16x2_t(
773 // CPP-TUPLE2-NEXT: entry:
774 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
775 //
776 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_u1612svuint16x3_t(
777 // CPP-TUPLE3-NEXT: entry:
778 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
779 //
780 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_u1612svuint16x4_t(
781 // CPP-TUPLE4-NEXT: entry:
782 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
783 //
784 TYPE(svint16) test_svreinterpret_s16_u16(TYPE(svuint16) op) MODE_ATTR
785 {
786 return SVE_ACLE_FUNC(svreinterpret_s16,_u16)(op);
787 }
788
789 // CHECK-LABEL: @test_svreinterpret_s16_u32(
790 // CHECK-NEXT: entry:
791 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
792 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
793 //
794 // TUPLE2-LABEL: @test_svreinterpret_s16_u32(
795 // TUPLE2-NEXT: entry:
796 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
797 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
798 //
799 // TUPLE3-LABEL: @test_svreinterpret_s16_u32(
800 // TUPLE3-NEXT: entry:
801 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
802 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
803 //
804 // TUPLE4-LABEL: @test_svreinterpret_s16_u32(
805 // TUPLE4-NEXT: entry:
806 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
807 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
808 //
809 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_u32u12__SVUint32_t(
810 // CPP-CHECK-NEXT: entry:
811 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
812 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
813 //
814 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_u3212svuint32x2_t(
815 // CPP-TUPLE2-NEXT: entry:
816 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
817 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
818 //
819 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_u3212svuint32x3_t(
820 // CPP-TUPLE3-NEXT: entry:
821 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
822 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
823 //
824 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_u3212svuint32x4_t(
825 // CPP-TUPLE4-NEXT: entry:
826 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
827 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
828 //
829 TYPE(svint16) test_svreinterpret_s16_u32(TYPE(svuint32) op) MODE_ATTR
830 {
831 return SVE_ACLE_FUNC(svreinterpret_s16,_u32)(op);
832 }
833
834 // CHECK-LABEL: @test_svreinterpret_s16_u64(
835 // CHECK-NEXT: entry:
836 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
837 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
838 //
839 // TUPLE2-LABEL: @test_svreinterpret_s16_u64(
840 // TUPLE2-NEXT: entry:
841 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
842 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
843 //
844 // TUPLE3-LABEL: @test_svreinterpret_s16_u64(
845 // TUPLE3-NEXT: entry:
846 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
847 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
848 //
849 // TUPLE4-LABEL: @test_svreinterpret_s16_u64(
850 // TUPLE4-NEXT: entry:
851 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
852 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
853 //
854 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_u64u12__SVUint64_t(
855 // CPP-CHECK-NEXT: entry:
856 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
857 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
858 //
859 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_u6412svuint64x2_t(
860 // CPP-TUPLE2-NEXT: entry:
861 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
862 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
863 //
864 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_u6412svuint64x3_t(
865 // CPP-TUPLE3-NEXT: entry:
866 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
867 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
868 //
869 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_u6412svuint64x4_t(
870 // CPP-TUPLE4-NEXT: entry:
871 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
872 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
873 //
874 TYPE(svint16) test_svreinterpret_s16_u64(TYPE(svuint64) op) MODE_ATTR
875 {
876 return SVE_ACLE_FUNC(svreinterpret_s16,_u64)(op);
877 }
878
879 // CHECK-LABEL: @test_svreinterpret_s16_f16(
880 // CHECK-NEXT: entry:
881 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 8 x i16>
882 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
883 //
884 // TUPLE2-LABEL: @test_svreinterpret_s16_f16(
885 // TUPLE2-NEXT: entry:
886 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 16 x i16>
887 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
888 //
889 // TUPLE3-LABEL: @test_svreinterpret_s16_f16(
890 // TUPLE3-NEXT: entry:
891 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 24 x i16>
892 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
893 //
894 // TUPLE4-LABEL: @test_svreinterpret_s16_f16(
895 // TUPLE4-NEXT: entry:
896 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 32 x i16>
897 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
898 //
899 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_f16u13__SVFloat16_t(
900 // CPP-CHECK-NEXT: entry:
901 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 8 x i16>
902 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
903 //
904 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_f1613svfloat16x2_t(
905 // CPP-TUPLE2-NEXT: entry:
906 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 16 x i16>
907 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
908 //
909 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_f1613svfloat16x3_t(
910 // CPP-TUPLE3-NEXT: entry:
911 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 24 x i16>
912 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
913 //
914 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_f1613svfloat16x4_t(
915 // CPP-TUPLE4-NEXT: entry:
916 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 32 x i16>
917 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
918 //
919 TYPE(svint16) test_svreinterpret_s16_f16(TYPE(svfloat16) op) MODE_ATTR
920 {
921 return SVE_ACLE_FUNC(svreinterpret_s16,_f16)(op);
922 }
923
924 // CHECK-LABEL: @test_svreinterpret_s16_f32(
925 // CHECK-NEXT: entry:
926 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x i16>
927 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
928 //
929 // TUPLE2-LABEL: @test_svreinterpret_s16_f32(
930 // TUPLE2-NEXT: entry:
931 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x i16>
932 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
933 //
934 // TUPLE3-LABEL: @test_svreinterpret_s16_f32(
935 // TUPLE3-NEXT: entry:
936 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x i16>
937 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
938 //
939 // TUPLE4-LABEL: @test_svreinterpret_s16_f32(
940 // TUPLE4-NEXT: entry:
941 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x i16>
942 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
943 //
944 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_f32u13__SVFloat32_t(
945 // CPP-CHECK-NEXT: entry:
946 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x i16>
947 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
948 //
949 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_f3213svfloat32x2_t(
950 // CPP-TUPLE2-NEXT: entry:
951 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x i16>
952 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
953 //
954 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_f3213svfloat32x3_t(
955 // CPP-TUPLE3-NEXT: entry:
956 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x i16>
957 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
958 //
959 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_f3213svfloat32x4_t(
960 // CPP-TUPLE4-NEXT: entry:
961 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x i16>
962 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
963 //
964 TYPE(svint16) test_svreinterpret_s16_f32(TYPE(svfloat32) op) MODE_ATTR
965 {
966 return SVE_ACLE_FUNC(svreinterpret_s16,_f32)(op);
967 }
968
969 // CHECK-LABEL: @test_svreinterpret_s16_f64(
970 // CHECK-NEXT: entry:
971 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x i16>
972 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
973 //
974 // TUPLE2-LABEL: @test_svreinterpret_s16_f64(
975 // TUPLE2-NEXT: entry:
976 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x i16>
977 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
978 //
979 // TUPLE3-LABEL: @test_svreinterpret_s16_f64(
980 // TUPLE3-NEXT: entry:
981 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x i16>
982 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
983 //
984 // TUPLE4-LABEL: @test_svreinterpret_s16_f64(
985 // TUPLE4-NEXT: entry:
986 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x i16>
987 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
988 //
989 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s16_f64u13__SVFloat64_t(
990 // CPP-CHECK-NEXT: entry:
991 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x i16>
992 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
993 //
994 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s16_f6413svfloat64x2_t(
995 // CPP-TUPLE2-NEXT: entry:
996 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x i16>
997 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
998 //
999 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s16_f6413svfloat64x3_t(
1000 // CPP-TUPLE3-NEXT: entry:
1001 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x i16>
1002 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
1003 //
1004 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s16_f6413svfloat64x4_t(
1005 // CPP-TUPLE4-NEXT: entry:
1006 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x i16>
1007 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
1008 //
1009 TYPE(svint16) test_svreinterpret_s16_f64(TYPE(svfloat64) op) MODE_ATTR
1010 {
1011 return SVE_ACLE_FUNC(svreinterpret_s16,_f64)(op);
1012 }
1013
1014 // CHECK-LABEL: @test_svreinterpret_s32_s8(
1015 // CHECK-NEXT: entry:
1016 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
1017 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1018 //
1019 // TUPLE2-LABEL: @test_svreinterpret_s32_s8(
1020 // TUPLE2-NEXT: entry:
1021 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
1022 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1023 //
1024 // TUPLE3-LABEL: @test_svreinterpret_s32_s8(
1025 // TUPLE3-NEXT: entry:
1026 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
1027 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1028 //
1029 // TUPLE4-LABEL: @test_svreinterpret_s32_s8(
1030 // TUPLE4-NEXT: entry:
1031 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
1032 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1033 //
1034 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s32_s8u10__SVInt8_t(
1035 // CPP-CHECK-NEXT: entry:
1036 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
1037 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1038 //
1039 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s32_s810svint8x2_t(
1040 // CPP-TUPLE2-NEXT: entry:
1041 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
1042 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1043 //
1044 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s32_s810svint8x3_t(
1045 // CPP-TUPLE3-NEXT: entry:
1046 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
1047 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1048 //
1049 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s32_s810svint8x4_t(
1050 // CPP-TUPLE4-NEXT: entry:
1051 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
1052 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1053 //
1054 TYPE(svint32) test_svreinterpret_s32_s8(TYPE(svint8) op) MODE_ATTR
1055 {
1056 return SVE_ACLE_FUNC(svreinterpret_s32,_s8)(op);
1057 }
1058
1059 // CHECK-LABEL: @test_svreinterpret_s32_s16(
1060 // CHECK-NEXT: entry:
1061 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
1062 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1063 //
1064 // TUPLE2-LABEL: @test_svreinterpret_s32_s16(
1065 // TUPLE2-NEXT: entry:
1066 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
1067 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1068 //
1069 // TUPLE3-LABEL: @test_svreinterpret_s32_s16(
1070 // TUPLE3-NEXT: entry:
1071 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
1072 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1073 //
1074 // TUPLE4-LABEL: @test_svreinterpret_s32_s16(
1075 // TUPLE4-NEXT: entry:
1076 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
1077 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1078 //
1079 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_s16u11__SVInt16_t(
1080 // CPP-CHECK-NEXT: entry:
1081 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
1082 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1083 //
1084 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_s1611svint16x2_t(
1085 // CPP-TUPLE2-NEXT: entry:
1086 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
1087 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1088 //
1089 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_s1611svint16x3_t(
1090 // CPP-TUPLE3-NEXT: entry:
1091 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
1092 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1093 //
1094 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_s1611svint16x4_t(
1095 // CPP-TUPLE4-NEXT: entry:
1096 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
1097 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1098 //
1099 TYPE(svint32) test_svreinterpret_s32_s16(TYPE(svint16) op) MODE_ATTR
1100 {
1101 return SVE_ACLE_FUNC(svreinterpret_s32,_s16)(op);
1102 }
1103
1104 // CHECK-LABEL: @test_svreinterpret_s32_s32(
1105 // CHECK-NEXT: entry:
1106 // CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
1107 //
1108 // TUPLE2-LABEL: @test_svreinterpret_s32_s32(
1109 // TUPLE2-NEXT: entry:
1110 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
1111 //
1112 // TUPLE3-LABEL: @test_svreinterpret_s32_s32(
1113 // TUPLE3-NEXT: entry:
1114 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
1115 //
1116 // TUPLE4-LABEL: @test_svreinterpret_s32_s32(
1117 // TUPLE4-NEXT: entry:
1118 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
1119 //
1120 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_s32u11__SVInt32_t(
1121 // CPP-CHECK-NEXT: entry:
1122 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
1123 //
1124 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_s3211svint32x2_t(
1125 // CPP-TUPLE2-NEXT: entry:
1126 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
1127 //
1128 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_s3211svint32x3_t(
1129 // CPP-TUPLE3-NEXT: entry:
1130 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
1131 //
1132 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_s3211svint32x4_t(
1133 // CPP-TUPLE4-NEXT: entry:
1134 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
1135 //
1136 TYPE(svint32) test_svreinterpret_s32_s32(TYPE(svint32) op) MODE_ATTR
1137 {
1138 return SVE_ACLE_FUNC(svreinterpret_s32,_s32)(op);
1139 }
1140
1141 // CHECK-LABEL: @test_svreinterpret_s32_s64(
1142 // CHECK-NEXT: entry:
1143 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
1144 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1145 //
1146 // TUPLE2-LABEL: @test_svreinterpret_s32_s64(
1147 // TUPLE2-NEXT: entry:
1148 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
1149 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1150 //
1151 // TUPLE3-LABEL: @test_svreinterpret_s32_s64(
1152 // TUPLE3-NEXT: entry:
1153 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
1154 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1155 //
1156 // TUPLE4-LABEL: @test_svreinterpret_s32_s64(
1157 // TUPLE4-NEXT: entry:
1158 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
1159 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1160 //
1161 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_s64u11__SVInt64_t(
1162 // CPP-CHECK-NEXT: entry:
1163 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
1164 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1165 //
1166 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_s6411svint64x2_t(
1167 // CPP-TUPLE2-NEXT: entry:
1168 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
1169 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1170 //
1171 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_s6411svint64x3_t(
1172 // CPP-TUPLE3-NEXT: entry:
1173 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
1174 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1175 //
1176 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_s6411svint64x4_t(
1177 // CPP-TUPLE4-NEXT: entry:
1178 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
1179 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1180 //
1181 TYPE(svint32) test_svreinterpret_s32_s64(TYPE(svint64) op) MODE_ATTR
1182 {
1183 return SVE_ACLE_FUNC(svreinterpret_s32,_s64)(op);
1184 }
1185
1186 // CHECK-LABEL: @test_svreinterpret_s32_u8(
1187 // CHECK-NEXT: entry:
1188 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
1189 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1190 //
1191 // TUPLE2-LABEL: @test_svreinterpret_s32_u8(
1192 // TUPLE2-NEXT: entry:
1193 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
1194 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1195 //
1196 // TUPLE3-LABEL: @test_svreinterpret_s32_u8(
1197 // TUPLE3-NEXT: entry:
1198 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
1199 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1200 //
1201 // TUPLE4-LABEL: @test_svreinterpret_s32_u8(
1202 // TUPLE4-NEXT: entry:
1203 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
1204 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1205 //
1206 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s32_u8u11__SVUint8_t(
1207 // CPP-CHECK-NEXT: entry:
1208 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
1209 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1210 //
1211 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s32_u811svuint8x2_t(
1212 // CPP-TUPLE2-NEXT: entry:
1213 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
1214 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1215 //
1216 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s32_u811svuint8x3_t(
1217 // CPP-TUPLE3-NEXT: entry:
1218 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
1219 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1220 //
1221 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s32_u811svuint8x4_t(
1222 // CPP-TUPLE4-NEXT: entry:
1223 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
1224 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1225 //
1226 TYPE(svint32) test_svreinterpret_s32_u8(TYPE(svuint8) op) MODE_ATTR
1227 {
1228 return SVE_ACLE_FUNC(svreinterpret_s32,_u8)(op);
1229 }
1230
1231 // CHECK-LABEL: @test_svreinterpret_s32_u16(
1232 // CHECK-NEXT: entry:
1233 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
1234 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1235 //
1236 // TUPLE2-LABEL: @test_svreinterpret_s32_u16(
1237 // TUPLE2-NEXT: entry:
1238 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
1239 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1240 //
1241 // TUPLE3-LABEL: @test_svreinterpret_s32_u16(
1242 // TUPLE3-NEXT: entry:
1243 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
1244 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1245 //
1246 // TUPLE4-LABEL: @test_svreinterpret_s32_u16(
1247 // TUPLE4-NEXT: entry:
1248 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
1249 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1250 //
1251 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_u16u12__SVUint16_t(
1252 // CPP-CHECK-NEXT: entry:
1253 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
1254 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1255 //
1256 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_u1612svuint16x2_t(
1257 // CPP-TUPLE2-NEXT: entry:
1258 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
1259 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1260 //
1261 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_u1612svuint16x3_t(
1262 // CPP-TUPLE3-NEXT: entry:
1263 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
1264 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1265 //
1266 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_u1612svuint16x4_t(
1267 // CPP-TUPLE4-NEXT: entry:
1268 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
1269 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1270 //
1271 TYPE(svint32) test_svreinterpret_s32_u16(TYPE(svuint16) op) MODE_ATTR
1272 {
1273 return SVE_ACLE_FUNC(svreinterpret_s32,_u16)(op);
1274 }
1275
1276 // CHECK-LABEL: @test_svreinterpret_s32_u32(
1277 // CHECK-NEXT: entry:
1278 // CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
1279 //
1280 // TUPLE2-LABEL: @test_svreinterpret_s32_u32(
1281 // TUPLE2-NEXT: entry:
1282 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
1283 //
1284 // TUPLE3-LABEL: @test_svreinterpret_s32_u32(
1285 // TUPLE3-NEXT: entry:
1286 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
1287 //
1288 // TUPLE4-LABEL: @test_svreinterpret_s32_u32(
1289 // TUPLE4-NEXT: entry:
1290 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
1291 //
1292 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_u32u12__SVUint32_t(
1293 // CPP-CHECK-NEXT: entry:
1294 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
1295 //
1296 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_u3212svuint32x2_t(
1297 // CPP-TUPLE2-NEXT: entry:
1298 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
1299 //
1300 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_u3212svuint32x3_t(
1301 // CPP-TUPLE3-NEXT: entry:
1302 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
1303 //
1304 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_u3212svuint32x4_t(
1305 // CPP-TUPLE4-NEXT: entry:
1306 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
1307 //
1308 TYPE(svint32) test_svreinterpret_s32_u32(TYPE(svuint32) op) MODE_ATTR
1309 {
1310 return SVE_ACLE_FUNC(svreinterpret_s32,_u32)(op);
1311 }
1312
1313 // CHECK-LABEL: @test_svreinterpret_s32_u64(
1314 // CHECK-NEXT: entry:
1315 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
1316 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1317 //
1318 // TUPLE2-LABEL: @test_svreinterpret_s32_u64(
1319 // TUPLE2-NEXT: entry:
1320 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
1321 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1322 //
1323 // TUPLE3-LABEL: @test_svreinterpret_s32_u64(
1324 // TUPLE3-NEXT: entry:
1325 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
1326 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1327 //
1328 // TUPLE4-LABEL: @test_svreinterpret_s32_u64(
1329 // TUPLE4-NEXT: entry:
1330 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
1331 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1332 //
1333 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_u64u12__SVUint64_t(
1334 // CPP-CHECK-NEXT: entry:
1335 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
1336 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1337 //
1338 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_u6412svuint64x2_t(
1339 // CPP-TUPLE2-NEXT: entry:
1340 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
1341 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1342 //
1343 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_u6412svuint64x3_t(
1344 // CPP-TUPLE3-NEXT: entry:
1345 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
1346 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1347 //
1348 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_u6412svuint64x4_t(
1349 // CPP-TUPLE4-NEXT: entry:
1350 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
1351 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1352 //
1353 TYPE(svint32) test_svreinterpret_s32_u64(TYPE(svuint64) op) MODE_ATTR
1354 {
1355 return SVE_ACLE_FUNC(svreinterpret_s32,_u64)(op);
1356 }
1357
1358 // CHECK-LABEL: @test_svreinterpret_s32_f16(
1359 // CHECK-NEXT: entry:
1360 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x i32>
1361 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1362 //
1363 // TUPLE2-LABEL: @test_svreinterpret_s32_f16(
1364 // TUPLE2-NEXT: entry:
1365 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x i32>
1366 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1367 //
1368 // TUPLE3-LABEL: @test_svreinterpret_s32_f16(
1369 // TUPLE3-NEXT: entry:
1370 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x i32>
1371 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1372 //
1373 // TUPLE4-LABEL: @test_svreinterpret_s32_f16(
1374 // TUPLE4-NEXT: entry:
1375 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x i32>
1376 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1377 //
1378 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_f16u13__SVFloat16_t(
1379 // CPP-CHECK-NEXT: entry:
1380 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x i32>
1381 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1382 //
1383 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_f1613svfloat16x2_t(
1384 // CPP-TUPLE2-NEXT: entry:
1385 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x i32>
1386 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1387 //
1388 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_f1613svfloat16x3_t(
1389 // CPP-TUPLE3-NEXT: entry:
1390 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x i32>
1391 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1392 //
1393 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_f1613svfloat16x4_t(
1394 // CPP-TUPLE4-NEXT: entry:
1395 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x i32>
1396 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1397 //
1398 TYPE(svint32) test_svreinterpret_s32_f16(TYPE(svfloat16) op) MODE_ATTR
1399 {
1400 return SVE_ACLE_FUNC(svreinterpret_s32,_f16)(op);
1401 }
1402
1403 // CHECK-LABEL: @test_svreinterpret_s32_f32(
1404 // CHECK-NEXT: entry:
1405 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 4 x i32>
1406 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1407 //
1408 // TUPLE2-LABEL: @test_svreinterpret_s32_f32(
1409 // TUPLE2-NEXT: entry:
1410 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 8 x i32>
1411 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1412 //
1413 // TUPLE3-LABEL: @test_svreinterpret_s32_f32(
1414 // TUPLE3-NEXT: entry:
1415 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 12 x i32>
1416 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1417 //
1418 // TUPLE4-LABEL: @test_svreinterpret_s32_f32(
1419 // TUPLE4-NEXT: entry:
1420 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 16 x i32>
1421 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1422 //
1423 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_f32u13__SVFloat32_t(
1424 // CPP-CHECK-NEXT: entry:
1425 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 4 x i32>
1426 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1427 //
1428 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_f3213svfloat32x2_t(
1429 // CPP-TUPLE2-NEXT: entry:
1430 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 8 x i32>
1431 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1432 //
1433 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_f3213svfloat32x3_t(
1434 // CPP-TUPLE3-NEXT: entry:
1435 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 12 x i32>
1436 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1437 //
1438 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_f3213svfloat32x4_t(
1439 // CPP-TUPLE4-NEXT: entry:
1440 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 16 x i32>
1441 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1442 //
1443 TYPE(svint32) test_svreinterpret_s32_f32(TYPE(svfloat32) op) MODE_ATTR
1444 {
1445 return SVE_ACLE_FUNC(svreinterpret_s32,_f32)(op);
1446 }
1447
1448 //
1449 // CHECK-LABEL: @test_svreinterpret_s32_f64(
1450 // CHECK-NEXT: entry:
1451 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x i32>
1452 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1453 //
1454 // TUPLE2-LABEL: @test_svreinterpret_s32_f64(
1455 // TUPLE2-NEXT: entry:
1456 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x i32>
1457 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1458 //
1459 // TUPLE3-LABEL: @test_svreinterpret_s32_f64(
1460 // TUPLE3-NEXT: entry:
1461 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x i32>
1462 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1463 //
1464 // TUPLE4-LABEL: @test_svreinterpret_s32_f64(
1465 // TUPLE4-NEXT: entry:
1466 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x i32>
1467 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1468 //
1469 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s32_f64u13__SVFloat64_t(
1470 // CPP-CHECK-NEXT: entry:
1471 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x i32>
1472 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
1473 //
1474 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s32_f6413svfloat64x2_t(
1475 // CPP-TUPLE2-NEXT: entry:
1476 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x i32>
1477 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
1478 //
1479 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s32_f6413svfloat64x3_t(
1480 // CPP-TUPLE3-NEXT: entry:
1481 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x i32>
1482 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
1483 //
1484 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s32_f6413svfloat64x4_t(
1485 // CPP-TUPLE4-NEXT: entry:
1486 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x i32>
1487 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
1488 //
1489 TYPE(svint32) test_svreinterpret_s32_f64(TYPE(svfloat64) op) MODE_ATTR
1490 {
1491 return SVE_ACLE_FUNC(svreinterpret_s32,_f64)(op);
1492 }
1493
1494 // CHECK-LABEL: @test_svreinterpret_s64_s8(
1495 // CHECK-NEXT: entry:
1496 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
1497 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1498 //
1499 // TUPLE2-LABEL: @test_svreinterpret_s64_s8(
1500 // TUPLE2-NEXT: entry:
1501 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
1502 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1503 //
1504 // TUPLE3-LABEL: @test_svreinterpret_s64_s8(
1505 // TUPLE3-NEXT: entry:
1506 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
1507 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1508 //
1509 // TUPLE4-LABEL: @test_svreinterpret_s64_s8(
1510 // TUPLE4-NEXT: entry:
1511 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
1512 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1513 //
1514 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s64_s8u10__SVInt8_t(
1515 // CPP-CHECK-NEXT: entry:
1516 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
1517 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1518 //
1519 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s64_s810svint8x2_t(
1520 // CPP-TUPLE2-NEXT: entry:
1521 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
1522 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1523 //
1524 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s64_s810svint8x3_t(
1525 // CPP-TUPLE3-NEXT: entry:
1526 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
1527 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1528 //
1529 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s64_s810svint8x4_t(
1530 // CPP-TUPLE4-NEXT: entry:
1531 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
1532 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1533 //
1534 TYPE(svint64) test_svreinterpret_s64_s8(TYPE(svint8) op) MODE_ATTR
1535 {
1536 return SVE_ACLE_FUNC(svreinterpret_s64,_s8)(op);
1537 }
1538
1539 // CHECK-LABEL: @test_svreinterpret_s64_s16(
1540 // CHECK-NEXT: entry:
1541 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
1542 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1543 //
1544 // TUPLE2-LABEL: @test_svreinterpret_s64_s16(
1545 // TUPLE2-NEXT: entry:
1546 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
1547 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1548 //
1549 // TUPLE3-LABEL: @test_svreinterpret_s64_s16(
1550 // TUPLE3-NEXT: entry:
1551 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
1552 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1553 //
1554 // TUPLE4-LABEL: @test_svreinterpret_s64_s16(
1555 // TUPLE4-NEXT: entry:
1556 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
1557 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1558 //
1559 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_s16u11__SVInt16_t(
1560 // CPP-CHECK-NEXT: entry:
1561 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
1562 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1563 //
1564 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_s1611svint16x2_t(
1565 // CPP-TUPLE2-NEXT: entry:
1566 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
1567 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1568 //
1569 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_s1611svint16x3_t(
1570 // CPP-TUPLE3-NEXT: entry:
1571 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
1572 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1573 //
1574 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_s1611svint16x4_t(
1575 // CPP-TUPLE4-NEXT: entry:
1576 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
1577 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1578 //
1579 TYPE(svint64) test_svreinterpret_s64_s16(TYPE(svint16) op) MODE_ATTR
1580 {
1581 return SVE_ACLE_FUNC(svreinterpret_s64,_s16)(op);
1582 }
1583
1584 // CHECK-LABEL: @test_svreinterpret_s64_s32(
1585 // CHECK-NEXT: entry:
1586 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
1587 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1588 //
1589 // TUPLE2-LABEL: @test_svreinterpret_s64_s32(
1590 // TUPLE2-NEXT: entry:
1591 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
1592 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1593 //
1594 // TUPLE3-LABEL: @test_svreinterpret_s64_s32(
1595 // TUPLE3-NEXT: entry:
1596 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
1597 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1598 //
1599 // TUPLE4-LABEL: @test_svreinterpret_s64_s32(
1600 // TUPLE4-NEXT: entry:
1601 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
1602 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1603 //
1604 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_s32u11__SVInt32_t(
1605 // CPP-CHECK-NEXT: entry:
1606 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
1607 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1608 //
1609 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_s3211svint32x2_t(
1610 // CPP-TUPLE2-NEXT: entry:
1611 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
1612 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1613 //
1614 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_s3211svint32x3_t(
1615 // CPP-TUPLE3-NEXT: entry:
1616 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
1617 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1618 //
1619 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_s3211svint32x4_t(
1620 // CPP-TUPLE4-NEXT: entry:
1621 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
1622 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1623 //
1624 TYPE(svint64) test_svreinterpret_s64_s32(TYPE(svint32) op) MODE_ATTR
1625 {
1626 return SVE_ACLE_FUNC(svreinterpret_s64,_s32)(op);
1627 }
1628
1629 // CHECK-LABEL: @test_svreinterpret_s64_s64(
1630 // CHECK-NEXT: entry:
1631 // CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
1632 //
1633 // TUPLE2-LABEL: @test_svreinterpret_s64_s64(
1634 // TUPLE2-NEXT: entry:
1635 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
1636 //
1637 // TUPLE3-LABEL: @test_svreinterpret_s64_s64(
1638 // TUPLE3-NEXT: entry:
1639 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
1640 //
1641 // TUPLE4-LABEL: @test_svreinterpret_s64_s64(
1642 // TUPLE4-NEXT: entry:
1643 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
1644 //
1645 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_s64u11__SVInt64_t(
1646 // CPP-CHECK-NEXT: entry:
1647 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
1648 //
1649 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_s6411svint64x2_t(
1650 // CPP-TUPLE2-NEXT: entry:
1651 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
1652 //
1653 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_s6411svint64x3_t(
1654 // CPP-TUPLE3-NEXT: entry:
1655 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
1656 //
1657 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_s6411svint64x4_t(
1658 // CPP-TUPLE4-NEXT: entry:
1659 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
1660 //
1661 TYPE(svint64) test_svreinterpret_s64_s64(TYPE(svint64) op) MODE_ATTR
1662 {
1663 return SVE_ACLE_FUNC(svreinterpret_s64,_s64)(op);
1664 }
1665
1666 // CHECK-LABEL: @test_svreinterpret_s64_u8(
1667 // CHECK-NEXT: entry:
1668 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
1669 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1670 //
1671 // TUPLE2-LABEL: @test_svreinterpret_s64_u8(
1672 // TUPLE2-NEXT: entry:
1673 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
1674 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1675 //
1676 // TUPLE3-LABEL: @test_svreinterpret_s64_u8(
1677 // TUPLE3-NEXT: entry:
1678 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
1679 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1680 //
1681 // TUPLE4-LABEL: @test_svreinterpret_s64_u8(
1682 // TUPLE4-NEXT: entry:
1683 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
1684 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1685 //
1686 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_s64_u8u11__SVUint8_t(
1687 // CPP-CHECK-NEXT: entry:
1688 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
1689 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1690 //
1691 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_s64_u811svuint8x2_t(
1692 // CPP-TUPLE2-NEXT: entry:
1693 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
1694 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1695 //
1696 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_s64_u811svuint8x3_t(
1697 // CPP-TUPLE3-NEXT: entry:
1698 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
1699 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1700 //
1701 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_s64_u811svuint8x4_t(
1702 // CPP-TUPLE4-NEXT: entry:
1703 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
1704 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1705 //
1706 TYPE(svint64) test_svreinterpret_s64_u8(TYPE(svuint8) op) MODE_ATTR
1707 {
1708 return SVE_ACLE_FUNC(svreinterpret_s64,_u8)(op);
1709 }
1710
1711 // CHECK-LABEL: @test_svreinterpret_s64_u16(
1712 // CHECK-NEXT: entry:
1713 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
1714 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1715 //
1716 // TUPLE2-LABEL: @test_svreinterpret_s64_u16(
1717 // TUPLE2-NEXT: entry:
1718 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
1719 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1720 //
1721 // TUPLE3-LABEL: @test_svreinterpret_s64_u16(
1722 // TUPLE3-NEXT: entry:
1723 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
1724 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1725 //
1726 // TUPLE4-LABEL: @test_svreinterpret_s64_u16(
1727 // TUPLE4-NEXT: entry:
1728 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
1729 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1730 //
1731 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_u16u12__SVUint16_t(
1732 // CPP-CHECK-NEXT: entry:
1733 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
1734 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1735 //
1736 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_u1612svuint16x2_t(
1737 // CPP-TUPLE2-NEXT: entry:
1738 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
1739 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1740 //
1741 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_u1612svuint16x3_t(
1742 // CPP-TUPLE3-NEXT: entry:
1743 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
1744 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1745 //
1746 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_u1612svuint16x4_t(
1747 // CPP-TUPLE4-NEXT: entry:
1748 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
1749 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1750 //
1751 TYPE(svint64) test_svreinterpret_s64_u16(TYPE(svuint16) op) MODE_ATTR
1752 {
1753 return SVE_ACLE_FUNC(svreinterpret_s64,_u16)(op);
1754 }
1755
1756 // CHECK-LABEL: @test_svreinterpret_s64_u32(
1757 // CHECK-NEXT: entry:
1758 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
1759 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1760 //
1761 // TUPLE2-LABEL: @test_svreinterpret_s64_u32(
1762 // TUPLE2-NEXT: entry:
1763 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
1764 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1765 //
1766 // TUPLE3-LABEL: @test_svreinterpret_s64_u32(
1767 // TUPLE3-NEXT: entry:
1768 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
1769 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1770 //
1771 // TUPLE4-LABEL: @test_svreinterpret_s64_u32(
1772 // TUPLE4-NEXT: entry:
1773 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
1774 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1775 //
1776 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_u32u12__SVUint32_t(
1777 // CPP-CHECK-NEXT: entry:
1778 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
1779 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1780 //
1781 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_u3212svuint32x2_t(
1782 // CPP-TUPLE2-NEXT: entry:
1783 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
1784 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1785 //
1786 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_u3212svuint32x3_t(
1787 // CPP-TUPLE3-NEXT: entry:
1788 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
1789 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1790 //
1791 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_u3212svuint32x4_t(
1792 // CPP-TUPLE4-NEXT: entry:
1793 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
1794 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1795 //
1796 TYPE(svint64) test_svreinterpret_s64_u32(TYPE(svuint32) op) MODE_ATTR
1797 {
1798 return SVE_ACLE_FUNC(svreinterpret_s64,_u32)(op);
1799 }
1800
1801 // CHECK-LABEL: @test_svreinterpret_s64_u64(
1802 // CHECK-NEXT: entry:
1803 // CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
1804 //
1805 // TUPLE2-LABEL: @test_svreinterpret_s64_u64(
1806 // TUPLE2-NEXT: entry:
1807 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
1808 //
1809 // TUPLE3-LABEL: @test_svreinterpret_s64_u64(
1810 // TUPLE3-NEXT: entry:
1811 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
1812 //
1813 // TUPLE4-LABEL: @test_svreinterpret_s64_u64(
1814 // TUPLE4-NEXT: entry:
1815 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
1816 //
1817 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_u64u12__SVUint64_t(
1818 // CPP-CHECK-NEXT: entry:
1819 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
1820 //
1821 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_u6412svuint64x2_t(
1822 // CPP-TUPLE2-NEXT: entry:
1823 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
1824 //
1825 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_u6412svuint64x3_t(
1826 // CPP-TUPLE3-NEXT: entry:
1827 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
1828 //
1829 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_u6412svuint64x4_t(
1830 // CPP-TUPLE4-NEXT: entry:
1831 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
1832 //
1833 TYPE(svint64) test_svreinterpret_s64_u64(TYPE(svuint64) op) MODE_ATTR
1834 {
1835 return SVE_ACLE_FUNC(svreinterpret_s64,_u64)(op);
1836 }
1837
1838 // CHECK-LABEL: @test_svreinterpret_s64_f16(
1839 // CHECK-NEXT: entry:
1840 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x i64>
1841 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1842 //
1843 // TUPLE2-LABEL: @test_svreinterpret_s64_f16(
1844 // TUPLE2-NEXT: entry:
1845 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x i64>
1846 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1847 //
1848 // TUPLE3-LABEL: @test_svreinterpret_s64_f16(
1849 // TUPLE3-NEXT: entry:
1850 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x i64>
1851 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1852 //
1853 // TUPLE4-LABEL: @test_svreinterpret_s64_f16(
1854 // TUPLE4-NEXT: entry:
1855 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x i64>
1856 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1857 //
1858 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_f16u13__SVFloat16_t(
1859 // CPP-CHECK-NEXT: entry:
1860 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x i64>
1861 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1862 //
1863 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_f1613svfloat16x2_t(
1864 // CPP-TUPLE2-NEXT: entry:
1865 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x i64>
1866 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1867 //
1868 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_f1613svfloat16x3_t(
1869 // CPP-TUPLE3-NEXT: entry:
1870 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x i64>
1871 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1872 //
1873 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_f1613svfloat16x4_t(
1874 // CPP-TUPLE4-NEXT: entry:
1875 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x i64>
1876 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1877 //
1878 TYPE(svint64) test_svreinterpret_s64_f16(TYPE(svfloat16) op) MODE_ATTR
1879 {
1880 return SVE_ACLE_FUNC(svreinterpret_s64,_f16)(op);
1881 }
1882
1883 // CHECK-LABEL: @test_svreinterpret_s64_f32(
1884 // CHECK-NEXT: entry:
1885 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x i64>
1886 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1887 //
1888 // TUPLE2-LABEL: @test_svreinterpret_s64_f32(
1889 // TUPLE2-NEXT: entry:
1890 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x i64>
1891 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1892 //
1893 // TUPLE3-LABEL: @test_svreinterpret_s64_f32(
1894 // TUPLE3-NEXT: entry:
1895 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x i64>
1896 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1897 //
1898 // TUPLE4-LABEL: @test_svreinterpret_s64_f32(
1899 // TUPLE4-NEXT: entry:
1900 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x i64>
1901 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1902 //
1903 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_f32u13__SVFloat32_t(
1904 // CPP-CHECK-NEXT: entry:
1905 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x i64>
1906 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1907 //
1908 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_f3213svfloat32x2_t(
1909 // CPP-TUPLE2-NEXT: entry:
1910 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x i64>
1911 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1912 //
1913 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_f3213svfloat32x3_t(
1914 // CPP-TUPLE3-NEXT: entry:
1915 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x i64>
1916 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1917 //
1918 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_f3213svfloat32x4_t(
1919 // CPP-TUPLE4-NEXT: entry:
1920 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x i64>
1921 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1922 //
1923 TYPE(svint64) test_svreinterpret_s64_f32(TYPE(svfloat32) op) MODE_ATTR
1924 {
1925 return SVE_ACLE_FUNC(svreinterpret_s64,_f32)(op);
1926 }
1927
1928 // CHECK-LABEL: @test_svreinterpret_s64_f64(
1929 // CHECK-NEXT: entry:
1930 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 2 x i64>
1931 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1932 //
1933 // TUPLE2-LABEL: @test_svreinterpret_s64_f64(
1934 // TUPLE2-NEXT: entry:
1935 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 4 x i64>
1936 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1937 //
1938 // TUPLE3-LABEL: @test_svreinterpret_s64_f64(
1939 // TUPLE3-NEXT: entry:
1940 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 6 x i64>
1941 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1942 //
1943 // TUPLE4-LABEL: @test_svreinterpret_s64_f64(
1944 // TUPLE4-NEXT: entry:
1945 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 8 x i64>
1946 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1947 //
1948 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_s64_f64u13__SVFloat64_t(
1949 // CPP-CHECK-NEXT: entry:
1950 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 2 x i64>
1951 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
1952 //
1953 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_s64_f6413svfloat64x2_t(
1954 // CPP-TUPLE2-NEXT: entry:
1955 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 4 x i64>
1956 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
1957 //
1958 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_s64_f6413svfloat64x3_t(
1959 // CPP-TUPLE3-NEXT: entry:
1960 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 6 x i64>
1961 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
1962 //
1963 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_s64_f6413svfloat64x4_t(
1964 // CPP-TUPLE4-NEXT: entry:
1965 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 8 x i64>
1966 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
1967 //
1968 TYPE(svint64) test_svreinterpret_s64_f64(TYPE(svfloat64) op) MODE_ATTR
1969 {
1970 return SVE_ACLE_FUNC(svreinterpret_s64,_f64)(op);
1971 }
1972
1973 // CHECK-LABEL: @test_svreinterpret_u8_s8(
1974 // CHECK-NEXT: entry:
1975 // CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
1976 //
1977 // TUPLE2-LABEL: @test_svreinterpret_u8_s8(
1978 // TUPLE2-NEXT: entry:
1979 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
1980 //
1981 // TUPLE3-LABEL: @test_svreinterpret_u8_s8(
1982 // TUPLE3-NEXT: entry:
1983 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
1984 //
1985 // TUPLE4-LABEL: @test_svreinterpret_u8_s8(
1986 // TUPLE4-NEXT: entry:
1987 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
1988 //
1989 // CPP-CHECK-LABEL: @_Z24test_svreinterpret_u8_s8u10__SVInt8_t(
1990 // CPP-CHECK-NEXT: entry:
1991 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
1992 //
1993 // CPP-TUPLE2-LABEL: @_Z24test_svreinterpret_u8_s810svint8x2_t(
1994 // CPP-TUPLE2-NEXT: entry:
1995 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
1996 //
1997 // CPP-TUPLE3-LABEL: @_Z24test_svreinterpret_u8_s810svint8x3_t(
1998 // CPP-TUPLE3-NEXT: entry:
1999 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
2000 //
2001 // CPP-TUPLE4-LABEL: @_Z24test_svreinterpret_u8_s810svint8x4_t(
2002 // CPP-TUPLE4-NEXT: entry:
2003 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
2004 //
2005 TYPE(svuint8) test_svreinterpret_u8_s8(TYPE(svint8) op) MODE_ATTR
2006 {
2007 return SVE_ACLE_FUNC(svreinterpret_u8,_s8)(op);
2008 }
2009
2010 // CHECK-LABEL: @test_svreinterpret_u8_s16(
2011 // CHECK-NEXT: entry:
2012 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
2013 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2014 //
2015 // TUPLE2-LABEL: @test_svreinterpret_u8_s16(
2016 // TUPLE2-NEXT: entry:
2017 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
2018 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2019 //
2020 // TUPLE3-LABEL: @test_svreinterpret_u8_s16(
2021 // TUPLE3-NEXT: entry:
2022 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
2023 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2024 //
2025 // TUPLE4-LABEL: @test_svreinterpret_u8_s16(
2026 // TUPLE4-NEXT: entry:
2027 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
2028 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2029 //
2030 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_s16u11__SVInt16_t(
2031 // CPP-CHECK-NEXT: entry:
2032 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
2033 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2034 //
2035 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_s1611svint16x2_t(
2036 // CPP-TUPLE2-NEXT: entry:
2037 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
2038 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2039 //
2040 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_s1611svint16x3_t(
2041 // CPP-TUPLE3-NEXT: entry:
2042 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
2043 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2044 //
2045 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_s1611svint16x4_t(
2046 // CPP-TUPLE4-NEXT: entry:
2047 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
2048 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2049 //
2050 TYPE(svuint8) test_svreinterpret_u8_s16(TYPE(svint16) op) MODE_ATTR
2051 {
2052 return SVE_ACLE_FUNC(svreinterpret_u8,_s16)(op);
2053 }
2054
2055 // CHECK-LABEL: @test_svreinterpret_u8_s32(
2056 // CHECK-NEXT: entry:
2057 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
2058 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2059 //
2060 // TUPLE2-LABEL: @test_svreinterpret_u8_s32(
2061 // TUPLE2-NEXT: entry:
2062 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
2063 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2064 //
2065 // TUPLE3-LABEL: @test_svreinterpret_u8_s32(
2066 // TUPLE3-NEXT: entry:
2067 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
2068 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2069 //
2070 // TUPLE4-LABEL: @test_svreinterpret_u8_s32(
2071 // TUPLE4-NEXT: entry:
2072 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
2073 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2074 //
2075 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_s32u11__SVInt32_t(
2076 // CPP-CHECK-NEXT: entry:
2077 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
2078 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2079 //
2080 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_s3211svint32x2_t(
2081 // CPP-TUPLE2-NEXT: entry:
2082 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
2083 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2084 //
2085 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_s3211svint32x3_t(
2086 // CPP-TUPLE3-NEXT: entry:
2087 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
2088 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2089 //
2090 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_s3211svint32x4_t(
2091 // CPP-TUPLE4-NEXT: entry:
2092 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
2093 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2094 //
2095 TYPE(svuint8) test_svreinterpret_u8_s32(TYPE(svint32) op) MODE_ATTR
2096 {
2097 return SVE_ACLE_FUNC(svreinterpret_u8,_s32)(op);
2098 }
2099
2100 // CHECK-LABEL: @test_svreinterpret_u8_s64(
2101 // CHECK-NEXT: entry:
2102 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
2103 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2104 //
2105 // TUPLE2-LABEL: @test_svreinterpret_u8_s64(
2106 // TUPLE2-NEXT: entry:
2107 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
2108 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2109 //
2110 // TUPLE3-LABEL: @test_svreinterpret_u8_s64(
2111 // TUPLE3-NEXT: entry:
2112 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
2113 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2114 //
2115 // TUPLE4-LABEL: @test_svreinterpret_u8_s64(
2116 // TUPLE4-NEXT: entry:
2117 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
2118 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2119 //
2120 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_s64u11__SVInt64_t(
2121 // CPP-CHECK-NEXT: entry:
2122 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
2123 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2124 //
2125 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_s6411svint64x2_t(
2126 // CPP-TUPLE2-NEXT: entry:
2127 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
2128 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2129 //
2130 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_s6411svint64x3_t(
2131 // CPP-TUPLE3-NEXT: entry:
2132 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
2133 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2134 //
2135 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_s6411svint64x4_t(
2136 // CPP-TUPLE4-NEXT: entry:
2137 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
2138 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2139 //
2140 TYPE(svuint8) test_svreinterpret_u8_s64(TYPE(svint64) op) MODE_ATTR
2141 {
2142 return SVE_ACLE_FUNC(svreinterpret_u8,_s64)(op);
2143 }
2144
2145 // CHECK-LABEL: @test_svreinterpret_u8_u8(
2146 // CHECK-NEXT: entry:
2147 // CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
2148 //
2149 // TUPLE2-LABEL: @test_svreinterpret_u8_u8(
2150 // TUPLE2-NEXT: entry:
2151 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
2152 //
2153 // TUPLE3-LABEL: @test_svreinterpret_u8_u8(
2154 // TUPLE3-NEXT: entry:
2155 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
2156 //
2157 // TUPLE4-LABEL: @test_svreinterpret_u8_u8(
2158 // TUPLE4-NEXT: entry:
2159 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
2160 //
2161 // CPP-CHECK-LABEL: @_Z24test_svreinterpret_u8_u8u11__SVUint8_t(
2162 // CPP-CHECK-NEXT: entry:
2163 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[OP:%.*]]
2164 //
2165 // CPP-TUPLE2-LABEL: @_Z24test_svreinterpret_u8_u811svuint8x2_t(
2166 // CPP-TUPLE2-NEXT: entry:
2167 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[OP:%.*]]
2168 //
2169 // CPP-TUPLE3-LABEL: @_Z24test_svreinterpret_u8_u811svuint8x3_t(
2170 // CPP-TUPLE3-NEXT: entry:
2171 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[OP:%.*]]
2172 //
2173 // CPP-TUPLE4-LABEL: @_Z24test_svreinterpret_u8_u811svuint8x4_t(
2174 // CPP-TUPLE4-NEXT: entry:
2175 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[OP:%.*]]
2176 //
2177 TYPE(svuint8) test_svreinterpret_u8_u8(TYPE(svuint8) op) MODE_ATTR
2178 {
2179 return SVE_ACLE_FUNC(svreinterpret_u8,_u8)(op);
2180 }
2181
2182 // CHECK-LABEL: @test_svreinterpret_u8_u16(
2183 // CHECK-NEXT: entry:
2184 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
2185 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2186 //
2187 // TUPLE2-LABEL: @test_svreinterpret_u8_u16(
2188 // TUPLE2-NEXT: entry:
2189 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
2190 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2191 //
2192 // TUPLE3-LABEL: @test_svreinterpret_u8_u16(
2193 // TUPLE3-NEXT: entry:
2194 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
2195 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2196 //
2197 // TUPLE4-LABEL: @test_svreinterpret_u8_u16(
2198 // TUPLE4-NEXT: entry:
2199 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
2200 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2201 //
2202 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_u16u12__SVUint16_t(
2203 // CPP-CHECK-NEXT: entry:
2204 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 16 x i8>
2205 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2206 //
2207 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_u1612svuint16x2_t(
2208 // CPP-TUPLE2-NEXT: entry:
2209 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 32 x i8>
2210 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2211 //
2212 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_u1612svuint16x3_t(
2213 // CPP-TUPLE3-NEXT: entry:
2214 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 48 x i8>
2215 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2216 //
2217 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_u1612svuint16x4_t(
2218 // CPP-TUPLE4-NEXT: entry:
2219 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 64 x i8>
2220 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2221 //
2222 TYPE(svuint8) test_svreinterpret_u8_u16(TYPE(svuint16) op) MODE_ATTR
2223 {
2224 return SVE_ACLE_FUNC(svreinterpret_u8,_u16)(op);
2225 }
2226
2227 // CHECK-LABEL: @test_svreinterpret_u8_u32(
2228 // CHECK-NEXT: entry:
2229 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
2230 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2231 //
2232 // TUPLE2-LABEL: @test_svreinterpret_u8_u32(
2233 // TUPLE2-NEXT: entry:
2234 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
2235 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2236 //
2237 // TUPLE3-LABEL: @test_svreinterpret_u8_u32(
2238 // TUPLE3-NEXT: entry:
2239 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
2240 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2241 //
2242 // TUPLE4-LABEL: @test_svreinterpret_u8_u32(
2243 // TUPLE4-NEXT: entry:
2244 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
2245 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2246 //
2247 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_u32u12__SVUint32_t(
2248 // CPP-CHECK-NEXT: entry:
2249 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 16 x i8>
2250 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2251 //
2252 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_u3212svuint32x2_t(
2253 // CPP-TUPLE2-NEXT: entry:
2254 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 32 x i8>
2255 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2256 //
2257 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_u3212svuint32x3_t(
2258 // CPP-TUPLE3-NEXT: entry:
2259 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 48 x i8>
2260 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2261 //
2262 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_u3212svuint32x4_t(
2263 // CPP-TUPLE4-NEXT: entry:
2264 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 64 x i8>
2265 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2266 //
2267 TYPE(svuint8) test_svreinterpret_u8_u32(TYPE(svuint32) op) MODE_ATTR
2268 {
2269 return SVE_ACLE_FUNC(svreinterpret_u8,_u32)(op);
2270 }
2271
2272 // CHECK-LABEL: @test_svreinterpret_u8_u64(
2273 // CHECK-NEXT: entry:
2274 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
2275 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2276 //
2277 // TUPLE2-LABEL: @test_svreinterpret_u8_u64(
2278 // TUPLE2-NEXT: entry:
2279 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
2280 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2281 //
2282 // TUPLE3-LABEL: @test_svreinterpret_u8_u64(
2283 // TUPLE3-NEXT: entry:
2284 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
2285 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2286 //
2287 // TUPLE4-LABEL: @test_svreinterpret_u8_u64(
2288 // TUPLE4-NEXT: entry:
2289 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
2290 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2291 //
2292 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_u64u12__SVUint64_t(
2293 // CPP-CHECK-NEXT: entry:
2294 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 16 x i8>
2295 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2296 //
2297 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_u6412svuint64x2_t(
2298 // CPP-TUPLE2-NEXT: entry:
2299 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 32 x i8>
2300 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2301 //
2302 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_u6412svuint64x3_t(
2303 // CPP-TUPLE3-NEXT: entry:
2304 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 48 x i8>
2305 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2306 //
2307 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_u6412svuint64x4_t(
2308 // CPP-TUPLE4-NEXT: entry:
2309 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 64 x i8>
2310 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2311 //
2312 TYPE(svuint8) test_svreinterpret_u8_u64(TYPE(svuint64) op) MODE_ATTR
2313 {
2314 return SVE_ACLE_FUNC(svreinterpret_u8,_u64)(op);
2315 }
2316
2317 // CHECK-LABEL: @test_svreinterpret_u8_f16(
2318 // CHECK-NEXT: entry:
2319 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 16 x i8>
2320 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2321 //
2322 // TUPLE2-LABEL: @test_svreinterpret_u8_f16(
2323 // TUPLE2-NEXT: entry:
2324 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 32 x i8>
2325 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2326 //
2327 // TUPLE3-LABEL: @test_svreinterpret_u8_f16(
2328 // TUPLE3-NEXT: entry:
2329 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 48 x i8>
2330 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2331 //
2332 // TUPLE4-LABEL: @test_svreinterpret_u8_f16(
2333 // TUPLE4-NEXT: entry:
2334 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 64 x i8>
2335 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2336 //
2337 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_f16u13__SVFloat16_t(
2338 // CPP-CHECK-NEXT: entry:
2339 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 16 x i8>
2340 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2341 //
2342 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_f1613svfloat16x2_t(
2343 // CPP-TUPLE2-NEXT: entry:
2344 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 32 x i8>
2345 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2346 //
2347 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_f1613svfloat16x3_t(
2348 // CPP-TUPLE3-NEXT: entry:
2349 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 48 x i8>
2350 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2351 //
2352 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_f1613svfloat16x4_t(
2353 // CPP-TUPLE4-NEXT: entry:
2354 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 64 x i8>
2355 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2356 //
2357 TYPE(svuint8) test_svreinterpret_u8_f16(TYPE(svfloat16) op) MODE_ATTR
2358 {
2359 return SVE_ACLE_FUNC(svreinterpret_u8,_f16)(op);
2360 }
2361
2362 // CHECK-LABEL: @test_svreinterpret_u8_f32(
2363 // CHECK-NEXT: entry:
2364 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 16 x i8>
2365 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2366 //
2367 // TUPLE2-LABEL: @test_svreinterpret_u8_f32(
2368 // TUPLE2-NEXT: entry:
2369 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 32 x i8>
2370 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2371 //
2372 // TUPLE3-LABEL: @test_svreinterpret_u8_f32(
2373 // TUPLE3-NEXT: entry:
2374 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 48 x i8>
2375 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2376 //
2377 // TUPLE4-LABEL: @test_svreinterpret_u8_f32(
2378 // TUPLE4-NEXT: entry:
2379 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 64 x i8>
2380 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2381 //
2382 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_f32u13__SVFloat32_t(
2383 // CPP-CHECK-NEXT: entry:
2384 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 16 x i8>
2385 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2386 //
2387 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_f3213svfloat32x2_t(
2388 // CPP-TUPLE2-NEXT: entry:
2389 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 32 x i8>
2390 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2391 //
2392 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_f3213svfloat32x3_t(
2393 // CPP-TUPLE3-NEXT: entry:
2394 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 48 x i8>
2395 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2396 //
2397 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_f3213svfloat32x4_t(
2398 // CPP-TUPLE4-NEXT: entry:
2399 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 64 x i8>
2400 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2401 //
2402 TYPE(svuint8) test_svreinterpret_u8_f32(TYPE(svfloat32) op) MODE_ATTR
2403 {
2404 return SVE_ACLE_FUNC(svreinterpret_u8,_f32)(op);
2405 }
2406
2407 // CHECK-LABEL: @test_svreinterpret_u8_f64(
2408 // CHECK-NEXT: entry:
2409 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 16 x i8>
2410 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2411 //
2412 // TUPLE2-LABEL: @test_svreinterpret_u8_f64(
2413 // TUPLE2-NEXT: entry:
2414 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 32 x i8>
2415 // TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2416 //
2417 // TUPLE3-LABEL: @test_svreinterpret_u8_f64(
2418 // TUPLE3-NEXT: entry:
2419 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 48 x i8>
2420 // TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2421 //
2422 // TUPLE4-LABEL: @test_svreinterpret_u8_f64(
2423 // TUPLE4-NEXT: entry:
2424 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 64 x i8>
2425 // TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2426 //
2427 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u8_f64u13__SVFloat64_t(
2428 // CPP-CHECK-NEXT: entry:
2429 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 16 x i8>
2430 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
2431 //
2432 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u8_f6413svfloat64x2_t(
2433 // CPP-TUPLE2-NEXT: entry:
2434 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 32 x i8>
2435 // CPP-TUPLE2-NEXT: ret <vscale x 32 x i8> [[TMP0]]
2436 //
2437 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u8_f6413svfloat64x3_t(
2438 // CPP-TUPLE3-NEXT: entry:
2439 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 48 x i8>
2440 // CPP-TUPLE3-NEXT: ret <vscale x 48 x i8> [[TMP0]]
2441 //
2442 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u8_f6413svfloat64x4_t(
2443 // CPP-TUPLE4-NEXT: entry:
2444 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 64 x i8>
2445 // CPP-TUPLE4-NEXT: ret <vscale x 64 x i8> [[TMP0]]
2446 //
2447 TYPE(svuint8) test_svreinterpret_u8_f64(TYPE(svfloat64) op) MODE_ATTR
2448 {
2449 return SVE_ACLE_FUNC(svreinterpret_u8,_f64)(op);
2450 }
2451
2452 // CHECK-LABEL: @test_svreinterpret_u16_s8(
2453 // CHECK-NEXT: entry:
2454 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
2455 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2456 //
2457 // TUPLE2-LABEL: @test_svreinterpret_u16_s8(
2458 // TUPLE2-NEXT: entry:
2459 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
2460 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2461 //
2462 // TUPLE3-LABEL: @test_svreinterpret_u16_s8(
2463 // TUPLE3-NEXT: entry:
2464 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
2465 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2466 //
2467 // TUPLE4-LABEL: @test_svreinterpret_u16_s8(
2468 // TUPLE4-NEXT: entry:
2469 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
2470 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2471 //
2472 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u16_s8u10__SVInt8_t(
2473 // CPP-CHECK-NEXT: entry:
2474 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
2475 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2476 //
2477 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u16_s810svint8x2_t(
2478 // CPP-TUPLE2-NEXT: entry:
2479 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
2480 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2481 //
2482 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u16_s810svint8x3_t(
2483 // CPP-TUPLE3-NEXT: entry:
2484 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
2485 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2486 //
2487 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u16_s810svint8x4_t(
2488 // CPP-TUPLE4-NEXT: entry:
2489 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
2490 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2491 //
2492 TYPE(svuint16) test_svreinterpret_u16_s8(TYPE(svint8) op) MODE_ATTR
2493 {
2494 return SVE_ACLE_FUNC(svreinterpret_u16,_s8)(op);
2495 }
2496
2497 // CHECK-LABEL: @test_svreinterpret_u16_s16(
2498 // CHECK-NEXT: entry:
2499 // CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
2500 //
2501 // TUPLE2-LABEL: @test_svreinterpret_u16_s16(
2502 // TUPLE2-NEXT: entry:
2503 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
2504 //
2505 // TUPLE3-LABEL: @test_svreinterpret_u16_s16(
2506 // TUPLE3-NEXT: entry:
2507 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
2508 //
2509 // TUPLE4-LABEL: @test_svreinterpret_u16_s16(
2510 // TUPLE4-NEXT: entry:
2511 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
2512 //
2513 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_s16u11__SVInt16_t(
2514 // CPP-CHECK-NEXT: entry:
2515 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
2516 //
2517 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_s1611svint16x2_t(
2518 // CPP-TUPLE2-NEXT: entry:
2519 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
2520 //
2521 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_s1611svint16x3_t(
2522 // CPP-TUPLE3-NEXT: entry:
2523 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
2524 //
2525 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_s1611svint16x4_t(
2526 // CPP-TUPLE4-NEXT: entry:
2527 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
2528 //
2529 TYPE(svuint16) test_svreinterpret_u16_s16(TYPE(svint16) op) MODE_ATTR
2530 {
2531 return SVE_ACLE_FUNC(svreinterpret_u16,_s16)(op);
2532 }
2533
2534 // CHECK-LABEL: @test_svreinterpret_u16_s32(
2535 // CHECK-NEXT: entry:
2536 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
2537 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2538 //
2539 // TUPLE2-LABEL: @test_svreinterpret_u16_s32(
2540 // TUPLE2-NEXT: entry:
2541 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
2542 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2543 //
2544 // TUPLE3-LABEL: @test_svreinterpret_u16_s32(
2545 // TUPLE3-NEXT: entry:
2546 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
2547 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2548 //
2549 // TUPLE4-LABEL: @test_svreinterpret_u16_s32(
2550 // TUPLE4-NEXT: entry:
2551 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
2552 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2553 //
2554 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_s32u11__SVInt32_t(
2555 // CPP-CHECK-NEXT: entry:
2556 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
2557 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2558 //
2559 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_s3211svint32x2_t(
2560 // CPP-TUPLE2-NEXT: entry:
2561 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
2562 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2563 //
2564 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_s3211svint32x3_t(
2565 // CPP-TUPLE3-NEXT: entry:
2566 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
2567 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2568 //
2569 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_s3211svint32x4_t(
2570 // CPP-TUPLE4-NEXT: entry:
2571 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
2572 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2573 //
2574 TYPE(svuint16) test_svreinterpret_u16_s32(TYPE(svint32) op) MODE_ATTR
2575 {
2576 return SVE_ACLE_FUNC(svreinterpret_u16,_s32)(op);
2577 }
2578
2579 // CHECK-LABEL: @test_svreinterpret_u16_s64(
2580 // CHECK-NEXT: entry:
2581 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
2582 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2583 //
2584 // TUPLE2-LABEL: @test_svreinterpret_u16_s64(
2585 // TUPLE2-NEXT: entry:
2586 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
2587 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2588 //
2589 // TUPLE3-LABEL: @test_svreinterpret_u16_s64(
2590 // TUPLE3-NEXT: entry:
2591 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
2592 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2593 //
2594 // TUPLE4-LABEL: @test_svreinterpret_u16_s64(
2595 // TUPLE4-NEXT: entry:
2596 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
2597 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2598 //
2599 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_s64u11__SVInt64_t(
2600 // CPP-CHECK-NEXT: entry:
2601 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
2602 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2603 //
2604 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_s6411svint64x2_t(
2605 // CPP-TUPLE2-NEXT: entry:
2606 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
2607 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2608 //
2609 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_s6411svint64x3_t(
2610 // CPP-TUPLE3-NEXT: entry:
2611 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
2612 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2613 //
2614 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_s6411svint64x4_t(
2615 // CPP-TUPLE4-NEXT: entry:
2616 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
2617 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2618 //
2619 TYPE(svuint16) test_svreinterpret_u16_s64(TYPE(svint64) op) MODE_ATTR
2620 {
2621 return SVE_ACLE_FUNC(svreinterpret_u16,_s64)(op);
2622 }
2623
2624 // CHECK-LABEL: @test_svreinterpret_u16_u8(
2625 // CHECK-NEXT: entry:
2626 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
2627 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2628 //
2629 // TUPLE2-LABEL: @test_svreinterpret_u16_u8(
2630 // TUPLE2-NEXT: entry:
2631 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
2632 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2633 //
2634 // TUPLE3-LABEL: @test_svreinterpret_u16_u8(
2635 // TUPLE3-NEXT: entry:
2636 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
2637 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2638 //
2639 // TUPLE4-LABEL: @test_svreinterpret_u16_u8(
2640 // TUPLE4-NEXT: entry:
2641 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
2642 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2643 //
2644 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u16_u8u11__SVUint8_t(
2645 // CPP-CHECK-NEXT: entry:
2646 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x i16>
2647 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2648 //
2649 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u16_u811svuint8x2_t(
2650 // CPP-TUPLE2-NEXT: entry:
2651 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x i16>
2652 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2653 //
2654 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u16_u811svuint8x3_t(
2655 // CPP-TUPLE3-NEXT: entry:
2656 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x i16>
2657 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2658 //
2659 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u16_u811svuint8x4_t(
2660 // CPP-TUPLE4-NEXT: entry:
2661 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x i16>
2662 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2663 //
2664 TYPE(svuint16) test_svreinterpret_u16_u8(TYPE(svuint8) op) MODE_ATTR
2665 {
2666 return SVE_ACLE_FUNC(svreinterpret_u16,_u8)(op);
2667 }
2668
2669 // CHECK-LABEL: @test_svreinterpret_u16_u16(
2670 // CHECK-NEXT: entry:
2671 // CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
2672 //
2673 // TUPLE2-LABEL: @test_svreinterpret_u16_u16(
2674 // TUPLE2-NEXT: entry:
2675 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
2676 //
2677 // TUPLE3-LABEL: @test_svreinterpret_u16_u16(
2678 // TUPLE3-NEXT: entry:
2679 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
2680 //
2681 // TUPLE4-LABEL: @test_svreinterpret_u16_u16(
2682 // TUPLE4-NEXT: entry:
2683 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
2684 //
2685 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_u16u12__SVUint16_t(
2686 // CPP-CHECK-NEXT: entry:
2687 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[OP:%.*]]
2688 //
2689 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_u1612svuint16x2_t(
2690 // CPP-TUPLE2-NEXT: entry:
2691 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[OP:%.*]]
2692 //
2693 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_u1612svuint16x3_t(
2694 // CPP-TUPLE3-NEXT: entry:
2695 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[OP:%.*]]
2696 //
2697 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_u1612svuint16x4_t(
2698 // CPP-TUPLE4-NEXT: entry:
2699 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[OP:%.*]]
2700 //
2701 TYPE(svuint16) test_svreinterpret_u16_u16(TYPE(svuint16) op) MODE_ATTR
2702 {
2703 return SVE_ACLE_FUNC(svreinterpret_u16,_u16)(op);
2704 }
2705
2706 // CHECK-LABEL: @test_svreinterpret_u16_u32(
2707 // CHECK-NEXT: entry:
2708 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
2709 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2710 //
2711 // TUPLE2-LABEL: @test_svreinterpret_u16_u32(
2712 // TUPLE2-NEXT: entry:
2713 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
2714 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2715 //
2716 // TUPLE3-LABEL: @test_svreinterpret_u16_u32(
2717 // TUPLE3-NEXT: entry:
2718 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
2719 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2720 //
2721 // TUPLE4-LABEL: @test_svreinterpret_u16_u32(
2722 // TUPLE4-NEXT: entry:
2723 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
2724 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2725 //
2726 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_u32u12__SVUint32_t(
2727 // CPP-CHECK-NEXT: entry:
2728 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x i16>
2729 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2730 //
2731 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_u3212svuint32x2_t(
2732 // CPP-TUPLE2-NEXT: entry:
2733 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x i16>
2734 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2735 //
2736 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_u3212svuint32x3_t(
2737 // CPP-TUPLE3-NEXT: entry:
2738 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x i16>
2739 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2740 //
2741 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_u3212svuint32x4_t(
2742 // CPP-TUPLE4-NEXT: entry:
2743 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x i16>
2744 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2745 //
2746 TYPE(svuint16) test_svreinterpret_u16_u32(TYPE(svuint32) op) MODE_ATTR
2747 {
2748 return SVE_ACLE_FUNC(svreinterpret_u16,_u32)(op);
2749 }
2750
2751 // CHECK-LABEL: @test_svreinterpret_u16_u64(
2752 // CHECK-NEXT: entry:
2753 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
2754 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2755 //
2756 // TUPLE2-LABEL: @test_svreinterpret_u16_u64(
2757 // TUPLE2-NEXT: entry:
2758 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
2759 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2760 //
2761 // TUPLE3-LABEL: @test_svreinterpret_u16_u64(
2762 // TUPLE3-NEXT: entry:
2763 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
2764 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2765 //
2766 // TUPLE4-LABEL: @test_svreinterpret_u16_u64(
2767 // TUPLE4-NEXT: entry:
2768 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
2769 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2770 //
2771 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_u64u12__SVUint64_t(
2772 // CPP-CHECK-NEXT: entry:
2773 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x i16>
2774 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2775 //
2776 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_u6412svuint64x2_t(
2777 // CPP-TUPLE2-NEXT: entry:
2778 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x i16>
2779 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2780 //
2781 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_u6412svuint64x3_t(
2782 // CPP-TUPLE3-NEXT: entry:
2783 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x i16>
2784 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2785 //
2786 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_u6412svuint64x4_t(
2787 // CPP-TUPLE4-NEXT: entry:
2788 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x i16>
2789 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2790 //
2791 TYPE(svuint16) test_svreinterpret_u16_u64(TYPE(svuint64) op) MODE_ATTR
2792 {
2793 return SVE_ACLE_FUNC(svreinterpret_u16,_u64)(op);
2794 }
2795
2796 // CHECK-LABEL: @test_svreinterpret_u16_f16(
2797 // CHECK-NEXT: entry:
2798 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 8 x i16>
2799 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2800 //
2801 // TUPLE2-LABEL: @test_svreinterpret_u16_f16(
2802 // TUPLE2-NEXT: entry:
2803 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 16 x i16>
2804 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2805 //
2806 // TUPLE3-LABEL: @test_svreinterpret_u16_f16(
2807 // TUPLE3-NEXT: entry:
2808 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 24 x i16>
2809 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2810 //
2811 // TUPLE4-LABEL: @test_svreinterpret_u16_f16(
2812 // TUPLE4-NEXT: entry:
2813 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 32 x i16>
2814 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2815 //
2816 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_f16u13__SVFloat16_t(
2817 // CPP-CHECK-NEXT: entry:
2818 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 8 x i16>
2819 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2820 //
2821 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_f1613svfloat16x2_t(
2822 // CPP-TUPLE2-NEXT: entry:
2823 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 16 x i16>
2824 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2825 //
2826 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_f1613svfloat16x3_t(
2827 // CPP-TUPLE3-NEXT: entry:
2828 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 24 x i16>
2829 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2830 //
2831 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_f1613svfloat16x4_t(
2832 // CPP-TUPLE4-NEXT: entry:
2833 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 32 x i16>
2834 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2835 //
2836 TYPE(svuint16) test_svreinterpret_u16_f16(TYPE(svfloat16) op) MODE_ATTR
2837 {
2838 return SVE_ACLE_FUNC(svreinterpret_u16,_f16)(op);
2839 }
2840
2841 // CHECK-LABEL: @test_svreinterpret_u16_f32(
2842 // CHECK-NEXT: entry:
2843 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x i16>
2844 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2845 //
2846 // TUPLE2-LABEL: @test_svreinterpret_u16_f32(
2847 // TUPLE2-NEXT: entry:
2848 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x i16>
2849 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2850 //
2851 // TUPLE3-LABEL: @test_svreinterpret_u16_f32(
2852 // TUPLE3-NEXT: entry:
2853 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x i16>
2854 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2855 //
2856 // TUPLE4-LABEL: @test_svreinterpret_u16_f32(
2857 // TUPLE4-NEXT: entry:
2858 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x i16>
2859 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2860 //
2861 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_f32u13__SVFloat32_t(
2862 // CPP-CHECK-NEXT: entry:
2863 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x i16>
2864 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2865 //
2866 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_f3213svfloat32x2_t(
2867 // CPP-TUPLE2-NEXT: entry:
2868 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x i16>
2869 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2870 //
2871 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_f3213svfloat32x3_t(
2872 // CPP-TUPLE3-NEXT: entry:
2873 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x i16>
2874 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2875 //
2876 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_f3213svfloat32x4_t(
2877 // CPP-TUPLE4-NEXT: entry:
2878 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x i16>
2879 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2880 //
2881 TYPE(svuint16) test_svreinterpret_u16_f32(TYPE(svfloat32) op) MODE_ATTR
2882 {
2883 return SVE_ACLE_FUNC(svreinterpret_u16,_f32)(op);
2884 }
2885
2886 // CHECK-LABEL: @test_svreinterpret_u16_f64(
2887 // CHECK-NEXT: entry:
2888 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x i16>
2889 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2890 //
2891 // TUPLE2-LABEL: @test_svreinterpret_u16_f64(
2892 // TUPLE2-NEXT: entry:
2893 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x i16>
2894 // TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2895 //
2896 // TUPLE3-LABEL: @test_svreinterpret_u16_f64(
2897 // TUPLE3-NEXT: entry:
2898 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x i16>
2899 // TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2900 //
2901 // TUPLE4-LABEL: @test_svreinterpret_u16_f64(
2902 // TUPLE4-NEXT: entry:
2903 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x i16>
2904 // TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2905 //
2906 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u16_f64u13__SVFloat64_t(
2907 // CPP-CHECK-NEXT: entry:
2908 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x i16>
2909 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
2910 //
2911 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u16_f6413svfloat64x2_t(
2912 // CPP-TUPLE2-NEXT: entry:
2913 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x i16>
2914 // CPP-TUPLE2-NEXT: ret <vscale x 16 x i16> [[TMP0]]
2915 //
2916 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u16_f6413svfloat64x3_t(
2917 // CPP-TUPLE3-NEXT: entry:
2918 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x i16>
2919 // CPP-TUPLE3-NEXT: ret <vscale x 24 x i16> [[TMP0]]
2920 //
2921 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u16_f6413svfloat64x4_t(
2922 // CPP-TUPLE4-NEXT: entry:
2923 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x i16>
2924 // CPP-TUPLE4-NEXT: ret <vscale x 32 x i16> [[TMP0]]
2925 //
2926 TYPE(svuint16) test_svreinterpret_u16_f64(TYPE(svfloat64) op) MODE_ATTR
2927 {
2928 return SVE_ACLE_FUNC(svreinterpret_u16,_f64)(op);
2929 }
2930
2931 // CHECK-LABEL: @test_svreinterpret_u32_s8(
2932 // CHECK-NEXT: entry:
2933 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
2934 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
2935 //
2936 // TUPLE2-LABEL: @test_svreinterpret_u32_s8(
2937 // TUPLE2-NEXT: entry:
2938 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
2939 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
2940 //
2941 // TUPLE3-LABEL: @test_svreinterpret_u32_s8(
2942 // TUPLE3-NEXT: entry:
2943 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
2944 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
2945 //
2946 // TUPLE4-LABEL: @test_svreinterpret_u32_s8(
2947 // TUPLE4-NEXT: entry:
2948 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
2949 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
2950 //
2951 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u32_s8u10__SVInt8_t(
2952 // CPP-CHECK-NEXT: entry:
2953 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
2954 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
2955 //
2956 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u32_s810svint8x2_t(
2957 // CPP-TUPLE2-NEXT: entry:
2958 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
2959 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
2960 //
2961 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u32_s810svint8x3_t(
2962 // CPP-TUPLE3-NEXT: entry:
2963 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
2964 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
2965 //
2966 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u32_s810svint8x4_t(
2967 // CPP-TUPLE4-NEXT: entry:
2968 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
2969 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
2970 //
2971 TYPE(svuint32) test_svreinterpret_u32_s8(TYPE(svint8) op) MODE_ATTR
2972 {
2973 return SVE_ACLE_FUNC(svreinterpret_u32,_s8)(op);
2974 }
2975
2976 // CHECK-LABEL: @test_svreinterpret_u32_s16(
2977 // CHECK-NEXT: entry:
2978 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
2979 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
2980 //
2981 // TUPLE2-LABEL: @test_svreinterpret_u32_s16(
2982 // TUPLE2-NEXT: entry:
2983 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
2984 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
2985 //
2986 // TUPLE3-LABEL: @test_svreinterpret_u32_s16(
2987 // TUPLE3-NEXT: entry:
2988 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
2989 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
2990 //
2991 // TUPLE4-LABEL: @test_svreinterpret_u32_s16(
2992 // TUPLE4-NEXT: entry:
2993 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
2994 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
2995 //
2996 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_s16u11__SVInt16_t(
2997 // CPP-CHECK-NEXT: entry:
2998 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
2999 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3000 //
3001 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_s1611svint16x2_t(
3002 // CPP-TUPLE2-NEXT: entry:
3003 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
3004 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3005 //
3006 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_s1611svint16x3_t(
3007 // CPP-TUPLE3-NEXT: entry:
3008 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
3009 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3010 //
3011 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_s1611svint16x4_t(
3012 // CPP-TUPLE4-NEXT: entry:
3013 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
3014 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3015 //
3016 TYPE(svuint32) test_svreinterpret_u32_s16(TYPE(svint16) op) MODE_ATTR
3017 {
3018 return SVE_ACLE_FUNC(svreinterpret_u32,_s16)(op);
3019 }
3020
3021 // CHECK-LABEL: @test_svreinterpret_u32_s32(
3022 // CHECK-NEXT: entry:
3023 // CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
3024 //
3025 // TUPLE2-LABEL: @test_svreinterpret_u32_s32(
3026 // TUPLE2-NEXT: entry:
3027 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
3028 //
3029 // TUPLE3-LABEL: @test_svreinterpret_u32_s32(
3030 // TUPLE3-NEXT: entry:
3031 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
3032 //
3033 // TUPLE4-LABEL: @test_svreinterpret_u32_s32(
3034 // TUPLE4-NEXT: entry:
3035 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
3036 //
3037 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_s32u11__SVInt32_t(
3038 // CPP-CHECK-NEXT: entry:
3039 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
3040 //
3041 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_s3211svint32x2_t(
3042 // CPP-TUPLE2-NEXT: entry:
3043 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
3044 //
3045 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_s3211svint32x3_t(
3046 // CPP-TUPLE3-NEXT: entry:
3047 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
3048 //
3049 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_s3211svint32x4_t(
3050 // CPP-TUPLE4-NEXT: entry:
3051 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
3052 //
3053 TYPE(svuint32) test_svreinterpret_u32_s32(TYPE(svint32) op) MODE_ATTR
3054 {
3055 return SVE_ACLE_FUNC(svreinterpret_u32,_s32)(op);
3056 }
3057
3058 // CHECK-LABEL: @test_svreinterpret_u32_s64(
3059 // CHECK-NEXT: entry:
3060 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
3061 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3062 //
3063 // TUPLE2-LABEL: @test_svreinterpret_u32_s64(
3064 // TUPLE2-NEXT: entry:
3065 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
3066 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3067 //
3068 // TUPLE3-LABEL: @test_svreinterpret_u32_s64(
3069 // TUPLE3-NEXT: entry:
3070 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
3071 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3072 //
3073 // TUPLE4-LABEL: @test_svreinterpret_u32_s64(
3074 // TUPLE4-NEXT: entry:
3075 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
3076 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3077 //
3078 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_s64u11__SVInt64_t(
3079 // CPP-CHECK-NEXT: entry:
3080 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
3081 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3082 //
3083 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_s6411svint64x2_t(
3084 // CPP-TUPLE2-NEXT: entry:
3085 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
3086 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3087 //
3088 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_s6411svint64x3_t(
3089 // CPP-TUPLE3-NEXT: entry:
3090 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
3091 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3092 //
3093 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_s6411svint64x4_t(
3094 // CPP-TUPLE4-NEXT: entry:
3095 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
3096 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3097 //
3098 TYPE(svuint32) test_svreinterpret_u32_s64(TYPE(svint64) op) MODE_ATTR
3099 {
3100 return SVE_ACLE_FUNC(svreinterpret_u32,_s64)(op);
3101 }
3102
3103 // CHECK-LABEL: @test_svreinterpret_u32_u8(
3104 // CHECK-NEXT: entry:
3105 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
3106 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3107 //
3108 // TUPLE2-LABEL: @test_svreinterpret_u32_u8(
3109 // TUPLE2-NEXT: entry:
3110 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
3111 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3112 //
3113 // TUPLE3-LABEL: @test_svreinterpret_u32_u8(
3114 // TUPLE3-NEXT: entry:
3115 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
3116 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3117 //
3118 // TUPLE4-LABEL: @test_svreinterpret_u32_u8(
3119 // TUPLE4-NEXT: entry:
3120 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
3121 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3122 //
3123 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u32_u8u11__SVUint8_t(
3124 // CPP-CHECK-NEXT: entry:
3125 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x i32>
3126 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3127 //
3128 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u32_u811svuint8x2_t(
3129 // CPP-TUPLE2-NEXT: entry:
3130 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x i32>
3131 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3132 //
3133 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u32_u811svuint8x3_t(
3134 // CPP-TUPLE3-NEXT: entry:
3135 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x i32>
3136 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3137 //
3138 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u32_u811svuint8x4_t(
3139 // CPP-TUPLE4-NEXT: entry:
3140 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x i32>
3141 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3142 //
3143 TYPE(svuint32) test_svreinterpret_u32_u8(TYPE(svuint8) op) MODE_ATTR
3144 {
3145 return SVE_ACLE_FUNC(svreinterpret_u32,_u8)(op);
3146 }
3147
3148 // CHECK-LABEL: @test_svreinterpret_u32_u16(
3149 // CHECK-NEXT: entry:
3150 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
3151 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3152 //
3153 // TUPLE2-LABEL: @test_svreinterpret_u32_u16(
3154 // TUPLE2-NEXT: entry:
3155 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
3156 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3157 //
3158 // TUPLE3-LABEL: @test_svreinterpret_u32_u16(
3159 // TUPLE3-NEXT: entry:
3160 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
3161 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3162 //
3163 // TUPLE4-LABEL: @test_svreinterpret_u32_u16(
3164 // TUPLE4-NEXT: entry:
3165 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
3166 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3167 //
3168 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_u16u12__SVUint16_t(
3169 // CPP-CHECK-NEXT: entry:
3170 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x i32>
3171 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3172 //
3173 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_u1612svuint16x2_t(
3174 // CPP-TUPLE2-NEXT: entry:
3175 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x i32>
3176 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3177 //
3178 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_u1612svuint16x3_t(
3179 // CPP-TUPLE3-NEXT: entry:
3180 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x i32>
3181 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3182 //
3183 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_u1612svuint16x4_t(
3184 // CPP-TUPLE4-NEXT: entry:
3185 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x i32>
3186 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3187 //
3188 TYPE(svuint32) test_svreinterpret_u32_u16(TYPE(svuint16) op) MODE_ATTR
3189 {
3190 return SVE_ACLE_FUNC(svreinterpret_u32,_u16)(op);
3191 }
3192
3193 // CHECK-LABEL: @test_svreinterpret_u32_u32(
3194 // CHECK-NEXT: entry:
3195 // CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
3196 //
3197 // TUPLE2-LABEL: @test_svreinterpret_u32_u32(
3198 // TUPLE2-NEXT: entry:
3199 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
3200 //
3201 // TUPLE3-LABEL: @test_svreinterpret_u32_u32(
3202 // TUPLE3-NEXT: entry:
3203 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
3204 //
3205 // TUPLE4-LABEL: @test_svreinterpret_u32_u32(
3206 // TUPLE4-NEXT: entry:
3207 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
3208 //
3209 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_u32u12__SVUint32_t(
3210 // CPP-CHECK-NEXT: entry:
3211 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[OP:%.*]]
3212 //
3213 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_u3212svuint32x2_t(
3214 // CPP-TUPLE2-NEXT: entry:
3215 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[OP:%.*]]
3216 //
3217 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_u3212svuint32x3_t(
3218 // CPP-TUPLE3-NEXT: entry:
3219 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[OP:%.*]]
3220 //
3221 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_u3212svuint32x4_t(
3222 // CPP-TUPLE4-NEXT: entry:
3223 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[OP:%.*]]
3224 //
3225 TYPE(svuint32) test_svreinterpret_u32_u32(TYPE(svuint32) op) MODE_ATTR
3226 {
3227 return SVE_ACLE_FUNC(svreinterpret_u32,_u32)(op);
3228 }
3229
3230 // CHECK-LABEL: @test_svreinterpret_u32_u64(
3231 // CHECK-NEXT: entry:
3232 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
3233 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3234 //
3235 // TUPLE2-LABEL: @test_svreinterpret_u32_u64(
3236 // TUPLE2-NEXT: entry:
3237 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
3238 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3239 //
3240 // TUPLE3-LABEL: @test_svreinterpret_u32_u64(
3241 // TUPLE3-NEXT: entry:
3242 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
3243 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3244 //
3245 // TUPLE4-LABEL: @test_svreinterpret_u32_u64(
3246 // TUPLE4-NEXT: entry:
3247 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
3248 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3249 //
3250 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_u64u12__SVUint64_t(
3251 // CPP-CHECK-NEXT: entry:
3252 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x i32>
3253 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3254 //
3255 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_u6412svuint64x2_t(
3256 // CPP-TUPLE2-NEXT: entry:
3257 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x i32>
3258 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3259 //
3260 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_u6412svuint64x3_t(
3261 // CPP-TUPLE3-NEXT: entry:
3262 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x i32>
3263 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3264 //
3265 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_u6412svuint64x4_t(
3266 // CPP-TUPLE4-NEXT: entry:
3267 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x i32>
3268 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3269 //
3270 TYPE(svuint32) test_svreinterpret_u32_u64(TYPE(svuint64) op) MODE_ATTR
3271 {
3272 return SVE_ACLE_FUNC(svreinterpret_u32,_u64)(op);
3273 }
3274
3275 // CHECK-LABEL: @test_svreinterpret_u32_f16(
3276 // CHECK-NEXT: entry:
3277 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x i32>
3278 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3279 //
3280 // TUPLE2-LABEL: @test_svreinterpret_u32_f16(
3281 // TUPLE2-NEXT: entry:
3282 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x i32>
3283 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3284 //
3285 // TUPLE3-LABEL: @test_svreinterpret_u32_f16(
3286 // TUPLE3-NEXT: entry:
3287 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x i32>
3288 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3289 //
3290 // TUPLE4-LABEL: @test_svreinterpret_u32_f16(
3291 // TUPLE4-NEXT: entry:
3292 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x i32>
3293 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3294 //
3295 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_f16u13__SVFloat16_t(
3296 // CPP-CHECK-NEXT: entry:
3297 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x i32>
3298 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3299 //
3300 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_f1613svfloat16x2_t(
3301 // CPP-TUPLE2-NEXT: entry:
3302 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x i32>
3303 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3304 //
3305 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_f1613svfloat16x3_t(
3306 // CPP-TUPLE3-NEXT: entry:
3307 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x i32>
3308 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3309 //
3310 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_f1613svfloat16x4_t(
3311 // CPP-TUPLE4-NEXT: entry:
3312 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x i32>
3313 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3314 //
3315 TYPE(svuint32) test_svreinterpret_u32_f16(TYPE(svfloat16) op) MODE_ATTR
3316 {
3317 return SVE_ACLE_FUNC(svreinterpret_u32,_f16)(op);
3318 }
3319
3320 // CHECK-LABEL: @test_svreinterpret_u32_f32(
3321 // CHECK-NEXT: entry:
3322 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 4 x i32>
3323 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3324 //
3325 // TUPLE2-LABEL: @test_svreinterpret_u32_f32(
3326 // TUPLE2-NEXT: entry:
3327 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 8 x i32>
3328 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3329 //
3330 // TUPLE3-LABEL: @test_svreinterpret_u32_f32(
3331 // TUPLE3-NEXT: entry:
3332 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 12 x i32>
3333 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3334 //
3335 // TUPLE4-LABEL: @test_svreinterpret_u32_f32(
3336 // TUPLE4-NEXT: entry:
3337 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 16 x i32>
3338 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3339 //
3340 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_f32u13__SVFloat32_t(
3341 // CPP-CHECK-NEXT: entry:
3342 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 4 x i32>
3343 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3344 //
3345 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_f3213svfloat32x2_t(
3346 // CPP-TUPLE2-NEXT: entry:
3347 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 8 x i32>
3348 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3349 //
3350 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_f3213svfloat32x3_t(
3351 // CPP-TUPLE3-NEXT: entry:
3352 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 12 x i32>
3353 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3354 //
3355 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_f3213svfloat32x4_t(
3356 // CPP-TUPLE4-NEXT: entry:
3357 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 16 x i32>
3358 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3359 //
3360 TYPE(svuint32) test_svreinterpret_u32_f32(TYPE(svfloat32) op) MODE_ATTR
3361 {
3362 return SVE_ACLE_FUNC(svreinterpret_u32,_f32)(op);
3363 }
3364
3365 // CHECK-LABEL: @test_svreinterpret_u32_f64(
3366 // CHECK-NEXT: entry:
3367 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x i32>
3368 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3369 //
3370 // TUPLE2-LABEL: @test_svreinterpret_u32_f64(
3371 // TUPLE2-NEXT: entry:
3372 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x i32>
3373 // TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3374 //
3375 // TUPLE3-LABEL: @test_svreinterpret_u32_f64(
3376 // TUPLE3-NEXT: entry:
3377 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x i32>
3378 // TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3379 //
3380 // TUPLE4-LABEL: @test_svreinterpret_u32_f64(
3381 // TUPLE4-NEXT: entry:
3382 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x i32>
3383 // TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3384 //
3385 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u32_f64u13__SVFloat64_t(
3386 // CPP-CHECK-NEXT: entry:
3387 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x i32>
3388 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
3389 //
3390 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u32_f6413svfloat64x2_t(
3391 // CPP-TUPLE2-NEXT: entry:
3392 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x i32>
3393 // CPP-TUPLE2-NEXT: ret <vscale x 8 x i32> [[TMP0]]
3394 //
3395 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u32_f6413svfloat64x3_t(
3396 // CPP-TUPLE3-NEXT: entry:
3397 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x i32>
3398 // CPP-TUPLE3-NEXT: ret <vscale x 12 x i32> [[TMP0]]
3399 //
3400 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u32_f6413svfloat64x4_t(
3401 // CPP-TUPLE4-NEXT: entry:
3402 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x i32>
3403 // CPP-TUPLE4-NEXT: ret <vscale x 16 x i32> [[TMP0]]
3404 //
3405 TYPE(svuint32) test_svreinterpret_u32_f64(TYPE(svfloat64) op) MODE_ATTR
3406 {
3407 return SVE_ACLE_FUNC(svreinterpret_u32,_f64)(op);
3408 }
3409
3410 // CHECK-LABEL: @test_svreinterpret_u64_s8(
3411 // CHECK-NEXT: entry:
3412 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
3413 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3414 //
3415 // TUPLE2-LABEL: @test_svreinterpret_u64_s8(
3416 // TUPLE2-NEXT: entry:
3417 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
3418 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3419 //
3420 // TUPLE3-LABEL: @test_svreinterpret_u64_s8(
3421 // TUPLE3-NEXT: entry:
3422 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
3423 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3424 //
3425 // TUPLE4-LABEL: @test_svreinterpret_u64_s8(
3426 // TUPLE4-NEXT: entry:
3427 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
3428 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3429 //
3430 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u64_s8u10__SVInt8_t(
3431 // CPP-CHECK-NEXT: entry:
3432 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
3433 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3434 //
3435 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u64_s810svint8x2_t(
3436 // CPP-TUPLE2-NEXT: entry:
3437 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
3438 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3439 //
3440 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u64_s810svint8x3_t(
3441 // CPP-TUPLE3-NEXT: entry:
3442 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
3443 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3444 //
3445 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u64_s810svint8x4_t(
3446 // CPP-TUPLE4-NEXT: entry:
3447 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
3448 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3449 //
3450 TYPE(svuint64) test_svreinterpret_u64_s8(TYPE(svint8) op) MODE_ATTR
3451 {
3452 return SVE_ACLE_FUNC(svreinterpret_u64,_s8)(op);
3453 }
3454
3455 // CHECK-LABEL: @test_svreinterpret_u64_s16(
3456 // CHECK-NEXT: entry:
3457 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
3458 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3459 //
3460 // TUPLE2-LABEL: @test_svreinterpret_u64_s16(
3461 // TUPLE2-NEXT: entry:
3462 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
3463 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3464 //
3465 // TUPLE3-LABEL: @test_svreinterpret_u64_s16(
3466 // TUPLE3-NEXT: entry:
3467 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
3468 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3469 //
3470 // TUPLE4-LABEL: @test_svreinterpret_u64_s16(
3471 // TUPLE4-NEXT: entry:
3472 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
3473 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3474 //
3475 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_s16u11__SVInt16_t(
3476 // CPP-CHECK-NEXT: entry:
3477 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
3478 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3479 //
3480 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_s1611svint16x2_t(
3481 // CPP-TUPLE2-NEXT: entry:
3482 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
3483 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3484 //
3485 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_s1611svint16x3_t(
3486 // CPP-TUPLE3-NEXT: entry:
3487 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
3488 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3489 //
3490 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_s1611svint16x4_t(
3491 // CPP-TUPLE4-NEXT: entry:
3492 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
3493 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3494 //
3495 TYPE(svuint64) test_svreinterpret_u64_s16(TYPE(svint16) op) MODE_ATTR
3496 {
3497 return SVE_ACLE_FUNC(svreinterpret_u64,_s16)(op);
3498 }
3499
3500 // CHECK-LABEL: @test_svreinterpret_u64_s32(
3501 // CHECK-NEXT: entry:
3502 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
3503 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3504 //
3505 // TUPLE2-LABEL: @test_svreinterpret_u64_s32(
3506 // TUPLE2-NEXT: entry:
3507 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
3508 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3509 //
3510 // TUPLE3-LABEL: @test_svreinterpret_u64_s32(
3511 // TUPLE3-NEXT: entry:
3512 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
3513 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3514 //
3515 // TUPLE4-LABEL: @test_svreinterpret_u64_s32(
3516 // TUPLE4-NEXT: entry:
3517 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
3518 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3519 //
3520 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_s32u11__SVInt32_t(
3521 // CPP-CHECK-NEXT: entry:
3522 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
3523 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3524 //
3525 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_s3211svint32x2_t(
3526 // CPP-TUPLE2-NEXT: entry:
3527 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
3528 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3529 //
3530 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_s3211svint32x3_t(
3531 // CPP-TUPLE3-NEXT: entry:
3532 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
3533 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3534 //
3535 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_s3211svint32x4_t(
3536 // CPP-TUPLE4-NEXT: entry:
3537 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
3538 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3539 //
3540 TYPE(svuint64) test_svreinterpret_u64_s32(TYPE(svint32) op) MODE_ATTR
3541 {
3542 return SVE_ACLE_FUNC(svreinterpret_u64,_s32)(op);
3543 }
3544
3545 // CHECK-LABEL: @test_svreinterpret_u64_s64(
3546 // CHECK-NEXT: entry:
3547 // CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
3548 //
3549 // TUPLE2-LABEL: @test_svreinterpret_u64_s64(
3550 // TUPLE2-NEXT: entry:
3551 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
3552 //
3553 // TUPLE3-LABEL: @test_svreinterpret_u64_s64(
3554 // TUPLE3-NEXT: entry:
3555 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
3556 //
3557 // TUPLE4-LABEL: @test_svreinterpret_u64_s64(
3558 // TUPLE4-NEXT: entry:
3559 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
3560 //
3561 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_s64u11__SVInt64_t(
3562 // CPP-CHECK-NEXT: entry:
3563 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
3564 //
3565 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_s6411svint64x2_t(
3566 // CPP-TUPLE2-NEXT: entry:
3567 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
3568 //
3569 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_s6411svint64x3_t(
3570 // CPP-TUPLE3-NEXT: entry:
3571 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
3572 //
3573 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_s6411svint64x4_t(
3574 // CPP-TUPLE4-NEXT: entry:
3575 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
3576 //
3577 TYPE(svuint64) test_svreinterpret_u64_s64(TYPE(svint64) op) MODE_ATTR
3578 {
3579 return SVE_ACLE_FUNC(svreinterpret_u64,_s64)(op);
3580 }
3581
3582 // CHECK-LABEL: @test_svreinterpret_u64_u8(
3583 // CHECK-NEXT: entry:
3584 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
3585 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3586 //
3587 // TUPLE2-LABEL: @test_svreinterpret_u64_u8(
3588 // TUPLE2-NEXT: entry:
3589 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
3590 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3591 //
3592 // TUPLE3-LABEL: @test_svreinterpret_u64_u8(
3593 // TUPLE3-NEXT: entry:
3594 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
3595 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3596 //
3597 // TUPLE4-LABEL: @test_svreinterpret_u64_u8(
3598 // TUPLE4-NEXT: entry:
3599 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
3600 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3601 //
3602 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_u64_u8u11__SVUint8_t(
3603 // CPP-CHECK-NEXT: entry:
3604 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x i64>
3605 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3606 //
3607 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_u64_u811svuint8x2_t(
3608 // CPP-TUPLE2-NEXT: entry:
3609 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x i64>
3610 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3611 //
3612 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_u64_u811svuint8x3_t(
3613 // CPP-TUPLE3-NEXT: entry:
3614 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x i64>
3615 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3616 //
3617 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_u64_u811svuint8x4_t(
3618 // CPP-TUPLE4-NEXT: entry:
3619 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x i64>
3620 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3621 //
3622 TYPE(svuint64) test_svreinterpret_u64_u8(TYPE(svuint8) op) MODE_ATTR
3623 {
3624 return SVE_ACLE_FUNC(svreinterpret_u64,_u8)(op);
3625 }
3626
3627 // CHECK-LABEL: @test_svreinterpret_u64_u16(
3628 // CHECK-NEXT: entry:
3629 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
3630 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3631 //
3632 // TUPLE2-LABEL: @test_svreinterpret_u64_u16(
3633 // TUPLE2-NEXT: entry:
3634 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
3635 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3636 //
3637 // TUPLE3-LABEL: @test_svreinterpret_u64_u16(
3638 // TUPLE3-NEXT: entry:
3639 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
3640 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3641 //
3642 // TUPLE4-LABEL: @test_svreinterpret_u64_u16(
3643 // TUPLE4-NEXT: entry:
3644 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
3645 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3646 //
3647 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_u16u12__SVUint16_t(
3648 // CPP-CHECK-NEXT: entry:
3649 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x i64>
3650 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3651 //
3652 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_u1612svuint16x2_t(
3653 // CPP-TUPLE2-NEXT: entry:
3654 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x i64>
3655 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3656 //
3657 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_u1612svuint16x3_t(
3658 // CPP-TUPLE3-NEXT: entry:
3659 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x i64>
3660 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3661 //
3662 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_u1612svuint16x4_t(
3663 // CPP-TUPLE4-NEXT: entry:
3664 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x i64>
3665 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3666 //
3667 TYPE(svuint64) test_svreinterpret_u64_u16(TYPE(svuint16) op) MODE_ATTR
3668 {
3669 return SVE_ACLE_FUNC(svreinterpret_u64,_u16)(op);
3670 }
3671
3672 // CHECK-LABEL: @test_svreinterpret_u64_u32(
3673 // CHECK-NEXT: entry:
3674 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
3675 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3676 //
3677 // TUPLE2-LABEL: @test_svreinterpret_u64_u32(
3678 // TUPLE2-NEXT: entry:
3679 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
3680 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3681 //
3682 // TUPLE3-LABEL: @test_svreinterpret_u64_u32(
3683 // TUPLE3-NEXT: entry:
3684 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
3685 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3686 //
3687 // TUPLE4-LABEL: @test_svreinterpret_u64_u32(
3688 // TUPLE4-NEXT: entry:
3689 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
3690 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3691 //
3692 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_u32u12__SVUint32_t(
3693 // CPP-CHECK-NEXT: entry:
3694 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x i64>
3695 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3696 //
3697 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_u3212svuint32x2_t(
3698 // CPP-TUPLE2-NEXT: entry:
3699 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x i64>
3700 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3701 //
3702 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_u3212svuint32x3_t(
3703 // CPP-TUPLE3-NEXT: entry:
3704 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x i64>
3705 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3706 //
3707 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_u3212svuint32x4_t(
3708 // CPP-TUPLE4-NEXT: entry:
3709 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x i64>
3710 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3711 //
3712 TYPE(svuint64) test_svreinterpret_u64_u32(TYPE(svuint32) op) MODE_ATTR
3713 {
3714 return SVE_ACLE_FUNC(svreinterpret_u64,_u32)(op);
3715 }
3716
3717 // CHECK-LABEL: @test_svreinterpret_u64_u64(
3718 // CHECK-NEXT: entry:
3719 // CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
3720 //
3721 // TUPLE2-LABEL: @test_svreinterpret_u64_u64(
3722 // TUPLE2-NEXT: entry:
3723 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
3724 //
3725 // TUPLE3-LABEL: @test_svreinterpret_u64_u64(
3726 // TUPLE3-NEXT: entry:
3727 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
3728 //
3729 // TUPLE4-LABEL: @test_svreinterpret_u64_u64(
3730 // TUPLE4-NEXT: entry:
3731 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
3732 //
3733 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_u64u12__SVUint64_t(
3734 // CPP-CHECK-NEXT: entry:
3735 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[OP:%.*]]
3736 //
3737 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_u6412svuint64x2_t(
3738 // CPP-TUPLE2-NEXT: entry:
3739 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[OP:%.*]]
3740 //
3741 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_u6412svuint64x3_t(
3742 // CPP-TUPLE3-NEXT: entry:
3743 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[OP:%.*]]
3744 //
3745 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_u6412svuint64x4_t(
3746 // CPP-TUPLE4-NEXT: entry:
3747 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[OP:%.*]]
3748 //
3749 TYPE(svuint64) test_svreinterpret_u64_u64(TYPE(svuint64) op) MODE_ATTR
3750 {
3751 return SVE_ACLE_FUNC(svreinterpret_u64,_u64)(op);
3752 }
3753
3754 // CHECK-LABEL: @test_svreinterpret_u64_f16(
3755 // CHECK-NEXT: entry:
3756 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x i64>
3757 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3758 //
3759 // TUPLE2-LABEL: @test_svreinterpret_u64_f16(
3760 // TUPLE2-NEXT: entry:
3761 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x i64>
3762 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3763 //
3764 // TUPLE3-LABEL: @test_svreinterpret_u64_f16(
3765 // TUPLE3-NEXT: entry:
3766 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x i64>
3767 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3768 //
3769 // TUPLE4-LABEL: @test_svreinterpret_u64_f16(
3770 // TUPLE4-NEXT: entry:
3771 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x i64>
3772 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3773 //
3774 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_f16u13__SVFloat16_t(
3775 // CPP-CHECK-NEXT: entry:
3776 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x i64>
3777 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3778 //
3779 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_f1613svfloat16x2_t(
3780 // CPP-TUPLE2-NEXT: entry:
3781 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x i64>
3782 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3783 //
3784 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_f1613svfloat16x3_t(
3785 // CPP-TUPLE3-NEXT: entry:
3786 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x i64>
3787 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3788 //
3789 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_f1613svfloat16x4_t(
3790 // CPP-TUPLE4-NEXT: entry:
3791 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x i64>
3792 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3793 //
3794 TYPE(svuint64) test_svreinterpret_u64_f16(TYPE(svfloat16) op) MODE_ATTR
3795 {
3796 return SVE_ACLE_FUNC(svreinterpret_u64,_f16)(op);
3797 }
3798
3799 // CHECK-LABEL: @test_svreinterpret_u64_f32(
3800 // CHECK-NEXT: entry:
3801 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x i64>
3802 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3803 //
3804 // TUPLE2-LABEL: @test_svreinterpret_u64_f32(
3805 // TUPLE2-NEXT: entry:
3806 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x i64>
3807 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3808 //
3809 // TUPLE3-LABEL: @test_svreinterpret_u64_f32(
3810 // TUPLE3-NEXT: entry:
3811 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x i64>
3812 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3813 //
3814 // TUPLE4-LABEL: @test_svreinterpret_u64_f32(
3815 // TUPLE4-NEXT: entry:
3816 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x i64>
3817 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3818 //
3819 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_f32u13__SVFloat32_t(
3820 // CPP-CHECK-NEXT: entry:
3821 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x i64>
3822 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3823 //
3824 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_f3213svfloat32x2_t(
3825 // CPP-TUPLE2-NEXT: entry:
3826 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x i64>
3827 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3828 //
3829 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_f3213svfloat32x3_t(
3830 // CPP-TUPLE3-NEXT: entry:
3831 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x i64>
3832 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3833 //
3834 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_f3213svfloat32x4_t(
3835 // CPP-TUPLE4-NEXT: entry:
3836 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x i64>
3837 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3838 //
3839 TYPE(svuint64) test_svreinterpret_u64_f32(TYPE(svfloat32) op) MODE_ATTR
3840 {
3841 return SVE_ACLE_FUNC(svreinterpret_u64,_f32)(op);
3842 }
3843
3844 // CHECK-LABEL: @test_svreinterpret_u64_f64(
3845 // CHECK-NEXT: entry:
3846 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 2 x i64>
3847 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3848 //
3849 // TUPLE2-LABEL: @test_svreinterpret_u64_f64(
3850 // TUPLE2-NEXT: entry:
3851 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 4 x i64>
3852 // TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3853 //
3854 // TUPLE3-LABEL: @test_svreinterpret_u64_f64(
3855 // TUPLE3-NEXT: entry:
3856 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 6 x i64>
3857 // TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3858 //
3859 // TUPLE4-LABEL: @test_svreinterpret_u64_f64(
3860 // TUPLE4-NEXT: entry:
3861 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 8 x i64>
3862 // TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3863 //
3864 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_u64_f64u13__SVFloat64_t(
3865 // CPP-CHECK-NEXT: entry:
3866 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 2 x i64>
3867 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
3868 //
3869 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_u64_f6413svfloat64x2_t(
3870 // CPP-TUPLE2-NEXT: entry:
3871 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 4 x i64>
3872 // CPP-TUPLE2-NEXT: ret <vscale x 4 x i64> [[TMP0]]
3873 //
3874 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_u64_f6413svfloat64x3_t(
3875 // CPP-TUPLE3-NEXT: entry:
3876 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 6 x i64>
3877 // CPP-TUPLE3-NEXT: ret <vscale x 6 x i64> [[TMP0]]
3878 //
3879 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_u64_f6413svfloat64x4_t(
3880 // CPP-TUPLE4-NEXT: entry:
3881 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 8 x i64>
3882 // CPP-TUPLE4-NEXT: ret <vscale x 8 x i64> [[TMP0]]
3883 //
3884 TYPE(svuint64) test_svreinterpret_u64_f64(TYPE(svfloat64) op) MODE_ATTR
3885 {
3886 return SVE_ACLE_FUNC(svreinterpret_u64,_f64)(op);
3887 }
3888
3889 // CHECK-LABEL: @test_svreinterpret_f16_s8(
3890 // CHECK-NEXT: entry:
3891 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x half>
3892 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
3893 //
3894 // TUPLE2-LABEL: @test_svreinterpret_f16_s8(
3895 // TUPLE2-NEXT: entry:
3896 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x half>
3897 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
3898 //
3899 // TUPLE3-LABEL: @test_svreinterpret_f16_s8(
3900 // TUPLE3-NEXT: entry:
3901 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x half>
3902 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
3903 //
3904 // TUPLE4-LABEL: @test_svreinterpret_f16_s8(
3905 // TUPLE4-NEXT: entry:
3906 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x half>
3907 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
3908 //
3909 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f16_s8u10__SVInt8_t(
3910 // CPP-CHECK-NEXT: entry:
3911 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x half>
3912 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
3913 //
3914 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f16_s810svint8x2_t(
3915 // CPP-TUPLE2-NEXT: entry:
3916 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x half>
3917 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
3918 //
3919 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f16_s810svint8x3_t(
3920 // CPP-TUPLE3-NEXT: entry:
3921 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x half>
3922 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
3923 //
3924 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f16_s810svint8x4_t(
3925 // CPP-TUPLE4-NEXT: entry:
3926 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x half>
3927 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
3928 //
3929 TYPE(svfloat16) test_svreinterpret_f16_s8(TYPE(svint8) op) MODE_ATTR
3930 {
3931 return SVE_ACLE_FUNC(svreinterpret_f16,_s8)(op);
3932 }
3933
3934 // CHECK-LABEL: @test_svreinterpret_f16_s16(
3935 // CHECK-NEXT: entry:
3936 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 8 x half>
3937 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
3938 //
3939 // TUPLE2-LABEL: @test_svreinterpret_f16_s16(
3940 // TUPLE2-NEXT: entry:
3941 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 16 x half>
3942 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
3943 //
3944 // TUPLE3-LABEL: @test_svreinterpret_f16_s16(
3945 // TUPLE3-NEXT: entry:
3946 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 24 x half>
3947 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
3948 //
3949 // TUPLE4-LABEL: @test_svreinterpret_f16_s16(
3950 // TUPLE4-NEXT: entry:
3951 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 32 x half>
3952 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
3953 //
3954 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_s16u11__SVInt16_t(
3955 // CPP-CHECK-NEXT: entry:
3956 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 8 x half>
3957 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
3958 //
3959 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_s1611svint16x2_t(
3960 // CPP-TUPLE2-NEXT: entry:
3961 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 16 x half>
3962 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
3963 //
3964 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_s1611svint16x3_t(
3965 // CPP-TUPLE3-NEXT: entry:
3966 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 24 x half>
3967 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
3968 //
3969 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_s1611svint16x4_t(
3970 // CPP-TUPLE4-NEXT: entry:
3971 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 32 x half>
3972 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
3973 //
3974 TYPE(svfloat16) test_svreinterpret_f16_s16(TYPE(svint16) op) MODE_ATTR
3975 {
3976 return SVE_ACLE_FUNC(svreinterpret_f16,_s16)(op);
3977 }
3978
3979 // CHECK-LABEL: @test_svreinterpret_f16_s32(
3980 // CHECK-NEXT: entry:
3981 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x half>
3982 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
3983 //
3984 // TUPLE2-LABEL: @test_svreinterpret_f16_s32(
3985 // TUPLE2-NEXT: entry:
3986 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x half>
3987 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
3988 //
3989 // TUPLE3-LABEL: @test_svreinterpret_f16_s32(
3990 // TUPLE3-NEXT: entry:
3991 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x half>
3992 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
3993 //
3994 // TUPLE4-LABEL: @test_svreinterpret_f16_s32(
3995 // TUPLE4-NEXT: entry:
3996 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x half>
3997 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
3998 //
3999 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_s32u11__SVInt32_t(
4000 // CPP-CHECK-NEXT: entry:
4001 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x half>
4002 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4003 //
4004 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_s3211svint32x2_t(
4005 // CPP-TUPLE2-NEXT: entry:
4006 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x half>
4007 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4008 //
4009 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_s3211svint32x3_t(
4010 // CPP-TUPLE3-NEXT: entry:
4011 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x half>
4012 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4013 //
4014 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_s3211svint32x4_t(
4015 // CPP-TUPLE4-NEXT: entry:
4016 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x half>
4017 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4018 //
4019 TYPE(svfloat16) test_svreinterpret_f16_s32(TYPE(svint32) op) MODE_ATTR
4020 {
4021 return SVE_ACLE_FUNC(svreinterpret_f16,_s32)(op);
4022 }
4023
4024 // CHECK-LABEL: @test_svreinterpret_f16_s64(
4025 // CHECK-NEXT: entry:
4026 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x half>
4027 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4028 //
4029 // TUPLE2-LABEL: @test_svreinterpret_f16_s64(
4030 // TUPLE2-NEXT: entry:
4031 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x half>
4032 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4033 //
4034 // TUPLE3-LABEL: @test_svreinterpret_f16_s64(
4035 // TUPLE3-NEXT: entry:
4036 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x half>
4037 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4038 //
4039 // TUPLE4-LABEL: @test_svreinterpret_f16_s64(
4040 // TUPLE4-NEXT: entry:
4041 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x half>
4042 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4043 //
4044 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_s64u11__SVInt64_t(
4045 // CPP-CHECK-NEXT: entry:
4046 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x half>
4047 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4048 //
4049 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_s6411svint64x2_t(
4050 // CPP-TUPLE2-NEXT: entry:
4051 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x half>
4052 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4053 //
4054 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_s6411svint64x3_t(
4055 // CPP-TUPLE3-NEXT: entry:
4056 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x half>
4057 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4058 //
4059 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_s6411svint64x4_t(
4060 // CPP-TUPLE4-NEXT: entry:
4061 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x half>
4062 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4063 //
4064 TYPE(svfloat16) test_svreinterpret_f16_s64(TYPE(svint64) op) MODE_ATTR
4065 {
4066 return SVE_ACLE_FUNC(svreinterpret_f16,_s64)(op);
4067 }
4068
4069 // CHECK-LABEL: @test_svreinterpret_f16_u8(
4070 // CHECK-NEXT: entry:
4071 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x half>
4072 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4073 //
4074 // TUPLE2-LABEL: @test_svreinterpret_f16_u8(
4075 // TUPLE2-NEXT: entry:
4076 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x half>
4077 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4078 //
4079 // TUPLE3-LABEL: @test_svreinterpret_f16_u8(
4080 // TUPLE3-NEXT: entry:
4081 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x half>
4082 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4083 //
4084 // TUPLE4-LABEL: @test_svreinterpret_f16_u8(
4085 // TUPLE4-NEXT: entry:
4086 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x half>
4087 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4088 //
4089 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f16_u8u11__SVUint8_t(
4090 // CPP-CHECK-NEXT: entry:
4091 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 8 x half>
4092 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4093 //
4094 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f16_u811svuint8x2_t(
4095 // CPP-TUPLE2-NEXT: entry:
4096 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 16 x half>
4097 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4098 //
4099 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f16_u811svuint8x3_t(
4100 // CPP-TUPLE3-NEXT: entry:
4101 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 24 x half>
4102 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4103 //
4104 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f16_u811svuint8x4_t(
4105 // CPP-TUPLE4-NEXT: entry:
4106 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 32 x half>
4107 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4108 //
4109 TYPE(svfloat16) test_svreinterpret_f16_u8(TYPE(svuint8) op) MODE_ATTR
4110 {
4111 return SVE_ACLE_FUNC(svreinterpret_f16,_u8)(op);
4112 }
4113
4114 // CHECK-LABEL: @test_svreinterpret_f16_u16(
4115 // CHECK-NEXT: entry:
4116 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 8 x half>
4117 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4118 //
4119 // TUPLE2-LABEL: @test_svreinterpret_f16_u16(
4120 // TUPLE2-NEXT: entry:
4121 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 16 x half>
4122 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4123 //
4124 // TUPLE3-LABEL: @test_svreinterpret_f16_u16(
4125 // TUPLE3-NEXT: entry:
4126 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 24 x half>
4127 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4128 //
4129 // TUPLE4-LABEL: @test_svreinterpret_f16_u16(
4130 // TUPLE4-NEXT: entry:
4131 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 32 x half>
4132 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4133 //
4134 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_u16u12__SVUint16_t(
4135 // CPP-CHECK-NEXT: entry:
4136 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 8 x half>
4137 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4138 //
4139 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_u1612svuint16x2_t(
4140 // CPP-TUPLE2-NEXT: entry:
4141 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 16 x half>
4142 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4143 //
4144 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_u1612svuint16x3_t(
4145 // CPP-TUPLE3-NEXT: entry:
4146 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 24 x half>
4147 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4148 //
4149 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_u1612svuint16x4_t(
4150 // CPP-TUPLE4-NEXT: entry:
4151 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 32 x half>
4152 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4153 //
4154 TYPE(svfloat16) test_svreinterpret_f16_u16(TYPE(svuint16) op) MODE_ATTR
4155 {
4156 return SVE_ACLE_FUNC(svreinterpret_f16,_u16)(op);
4157 }
4158
4159 // CHECK-LABEL: @test_svreinterpret_f16_u32(
4160 // CHECK-NEXT: entry:
4161 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x half>
4162 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4163 //
4164 // TUPLE2-LABEL: @test_svreinterpret_f16_u32(
4165 // TUPLE2-NEXT: entry:
4166 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x half>
4167 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4168 //
4169 // TUPLE3-LABEL: @test_svreinterpret_f16_u32(
4170 // TUPLE3-NEXT: entry:
4171 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x half>
4172 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4173 //
4174 // TUPLE4-LABEL: @test_svreinterpret_f16_u32(
4175 // TUPLE4-NEXT: entry:
4176 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x half>
4177 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4178 //
4179 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_u32u12__SVUint32_t(
4180 // CPP-CHECK-NEXT: entry:
4181 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 8 x half>
4182 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4183 //
4184 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_u3212svuint32x2_t(
4185 // CPP-TUPLE2-NEXT: entry:
4186 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 16 x half>
4187 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4188 //
4189 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_u3212svuint32x3_t(
4190 // CPP-TUPLE3-NEXT: entry:
4191 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 24 x half>
4192 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4193 //
4194 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_u3212svuint32x4_t(
4195 // CPP-TUPLE4-NEXT: entry:
4196 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 32 x half>
4197 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4198 //
4199 TYPE(svfloat16) test_svreinterpret_f16_u32(TYPE(svuint32) op) MODE_ATTR
4200 {
4201 return SVE_ACLE_FUNC(svreinterpret_f16,_u32)(op);
4202 }
4203
4204 // CHECK-LABEL: @test_svreinterpret_f16_u64(
4205 // CHECK-NEXT: entry:
4206 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x half>
4207 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4208 //
4209 // TUPLE2-LABEL: @test_svreinterpret_f16_u64(
4210 // TUPLE2-NEXT: entry:
4211 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x half>
4212 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4213 //
4214 // TUPLE3-LABEL: @test_svreinterpret_f16_u64(
4215 // TUPLE3-NEXT: entry:
4216 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x half>
4217 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4218 //
4219 // TUPLE4-LABEL: @test_svreinterpret_f16_u64(
4220 // TUPLE4-NEXT: entry:
4221 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x half>
4222 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4223 //
4224 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_u64u12__SVUint64_t(
4225 // CPP-CHECK-NEXT: entry:
4226 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 8 x half>
4227 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4228 //
4229 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_u6412svuint64x2_t(
4230 // CPP-TUPLE2-NEXT: entry:
4231 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 16 x half>
4232 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4233 //
4234 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_u6412svuint64x3_t(
4235 // CPP-TUPLE3-NEXT: entry:
4236 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 24 x half>
4237 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4238 //
4239 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_u6412svuint64x4_t(
4240 // CPP-TUPLE4-NEXT: entry:
4241 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 32 x half>
4242 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4243 //
4244 TYPE(svfloat16) test_svreinterpret_f16_u64(TYPE(svuint64) op) MODE_ATTR
4245 {
4246 return SVE_ACLE_FUNC(svreinterpret_f16,_u64)(op);
4247 }
4248
4249 // CHECK-LABEL: @test_svreinterpret_f16_f16(
4250 // CHECK-NEXT: entry:
4251 // CHECK-NEXT: ret <vscale x 8 x half> [[OP:%.*]]
4252 //
4253 // TUPLE2-LABEL: @test_svreinterpret_f16_f16(
4254 // TUPLE2-NEXT: entry:
4255 // TUPLE2-NEXT: ret <vscale x 16 x half> [[OP:%.*]]
4256 //
4257 // TUPLE3-LABEL: @test_svreinterpret_f16_f16(
4258 // TUPLE3-NEXT: entry:
4259 // TUPLE3-NEXT: ret <vscale x 24 x half> [[OP:%.*]]
4260 //
4261 // TUPLE4-LABEL: @test_svreinterpret_f16_f16(
4262 // TUPLE4-NEXT: entry:
4263 // TUPLE4-NEXT: ret <vscale x 32 x half> [[OP:%.*]]
4264 //
4265 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_f16u13__SVFloat16_t(
4266 // CPP-CHECK-NEXT: entry:
4267 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[OP:%.*]]
4268 //
4269 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_f1613svfloat16x2_t(
4270 // CPP-TUPLE2-NEXT: entry:
4271 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[OP:%.*]]
4272 //
4273 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_f1613svfloat16x3_t(
4274 // CPP-TUPLE3-NEXT: entry:
4275 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[OP:%.*]]
4276 //
4277 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_f1613svfloat16x4_t(
4278 // CPP-TUPLE4-NEXT: entry:
4279 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[OP:%.*]]
4280 //
4281 TYPE(svfloat16) test_svreinterpret_f16_f16(TYPE(svfloat16) op) MODE_ATTR
4282 {
4283 return SVE_ACLE_FUNC(svreinterpret_f16,_f16)(op);
4284 }
4285
4286 // CHECK-LABEL: @test_svreinterpret_f16_f32(
4287 // CHECK-NEXT: entry:
4288 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x half>
4289 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4290 //
4291 // TUPLE2-LABEL: @test_svreinterpret_f16_f32(
4292 // TUPLE2-NEXT: entry:
4293 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x half>
4294 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4295 //
4296 // TUPLE3-LABEL: @test_svreinterpret_f16_f32(
4297 // TUPLE3-NEXT: entry:
4298 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x half>
4299 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4300 //
4301 // TUPLE4-LABEL: @test_svreinterpret_f16_f32(
4302 // TUPLE4-NEXT: entry:
4303 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x half>
4304 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4305 //
4306 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_f32u13__SVFloat32_t(
4307 // CPP-CHECK-NEXT: entry:
4308 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 8 x half>
4309 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4310 //
4311 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_f3213svfloat32x2_t(
4312 // CPP-TUPLE2-NEXT: entry:
4313 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 16 x half>
4314 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4315 //
4316 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_f3213svfloat32x3_t(
4317 // CPP-TUPLE3-NEXT: entry:
4318 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 24 x half>
4319 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4320 //
4321 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_f3213svfloat32x4_t(
4322 // CPP-TUPLE4-NEXT: entry:
4323 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 32 x half>
4324 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4325 //
4326 TYPE(svfloat16) test_svreinterpret_f16_f32(TYPE(svfloat32) op) MODE_ATTR
4327 {
4328 return SVE_ACLE_FUNC(svreinterpret_f16,_f32)(op);
4329 }
4330
4331 // CHECK-LABEL: @test_svreinterpret_f16_f64(
4332 // CHECK-NEXT: entry:
4333 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x half>
4334 // CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4335 //
4336 // TUPLE2-LABEL: @test_svreinterpret_f16_f64(
4337 // TUPLE2-NEXT: entry:
4338 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x half>
4339 // TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4340 //
4341 // TUPLE3-LABEL: @test_svreinterpret_f16_f64(
4342 // TUPLE3-NEXT: entry:
4343 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x half>
4344 // TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4345 //
4346 // TUPLE4-LABEL: @test_svreinterpret_f16_f64(
4347 // TUPLE4-NEXT: entry:
4348 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x half>
4349 // TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4350 //
4351 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f16_f64u13__SVFloat64_t(
4352 // CPP-CHECK-NEXT: entry:
4353 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 8 x half>
4354 // CPP-CHECK-NEXT: ret <vscale x 8 x half> [[TMP0]]
4355 //
4356 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f16_f6413svfloat64x2_t(
4357 // CPP-TUPLE2-NEXT: entry:
4358 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 16 x half>
4359 // CPP-TUPLE2-NEXT: ret <vscale x 16 x half> [[TMP0]]
4360 //
4361 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f16_f6413svfloat64x3_t(
4362 // CPP-TUPLE3-NEXT: entry:
4363 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 24 x half>
4364 // CPP-TUPLE3-NEXT: ret <vscale x 24 x half> [[TMP0]]
4365 //
4366 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f16_f6413svfloat64x4_t(
4367 // CPP-TUPLE4-NEXT: entry:
4368 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 32 x half>
4369 // CPP-TUPLE4-NEXT: ret <vscale x 32 x half> [[TMP0]]
4370 //
4371 TYPE(svfloat16) test_svreinterpret_f16_f64(TYPE(svfloat64) op) MODE_ATTR
4372 {
4373 return SVE_ACLE_FUNC(svreinterpret_f16,_f64)(op);
4374 }
4375
4376 // CHECK-LABEL: @test_svreinterpret_f32_s8(
4377 // CHECK-NEXT: entry:
4378 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x float>
4379 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4380 //
4381 // TUPLE2-LABEL: @test_svreinterpret_f32_s8(
4382 // TUPLE2-NEXT: entry:
4383 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x float>
4384 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4385 //
4386 // TUPLE3-LABEL: @test_svreinterpret_f32_s8(
4387 // TUPLE3-NEXT: entry:
4388 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x float>
4389 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4390 //
4391 // TUPLE4-LABEL: @test_svreinterpret_f32_s8(
4392 // TUPLE4-NEXT: entry:
4393 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x float>
4394 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4395 //
4396 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f32_s8u10__SVInt8_t(
4397 // CPP-CHECK-NEXT: entry:
4398 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x float>
4399 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4400 //
4401 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f32_s810svint8x2_t(
4402 // CPP-TUPLE2-NEXT: entry:
4403 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x float>
4404 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4405 //
4406 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f32_s810svint8x3_t(
4407 // CPP-TUPLE3-NEXT: entry:
4408 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x float>
4409 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4410 //
4411 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f32_s810svint8x4_t(
4412 // CPP-TUPLE4-NEXT: entry:
4413 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x float>
4414 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4415 //
4416 TYPE(svfloat32) test_svreinterpret_f32_s8(TYPE(svint8) op) MODE_ATTR
4417 {
4418 return SVE_ACLE_FUNC(svreinterpret_f32,_s8)(op);
4419 }
4420
4421 // CHECK-LABEL: @test_svreinterpret_f32_s16(
4422 // CHECK-NEXT: entry:
4423 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x float>
4424 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4425 //
4426 // TUPLE2-LABEL: @test_svreinterpret_f32_s16(
4427 // TUPLE2-NEXT: entry:
4428 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x float>
4429 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4430 //
4431 // TUPLE3-LABEL: @test_svreinterpret_f32_s16(
4432 // TUPLE3-NEXT: entry:
4433 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x float>
4434 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4435 //
4436 // TUPLE4-LABEL: @test_svreinterpret_f32_s16(
4437 // TUPLE4-NEXT: entry:
4438 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x float>
4439 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4440 //
4441 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_s16u11__SVInt16_t(
4442 // CPP-CHECK-NEXT: entry:
4443 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x float>
4444 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4445 //
4446 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_s1611svint16x2_t(
4447 // CPP-TUPLE2-NEXT: entry:
4448 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x float>
4449 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4450 //
4451 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_s1611svint16x3_t(
4452 // CPP-TUPLE3-NEXT: entry:
4453 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x float>
4454 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4455 //
4456 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_s1611svint16x4_t(
4457 // CPP-TUPLE4-NEXT: entry:
4458 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x float>
4459 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4460 //
4461 TYPE(svfloat32) test_svreinterpret_f32_s16(TYPE(svint16) op) MODE_ATTR
4462 {
4463 return SVE_ACLE_FUNC(svreinterpret_f32,_s16)(op);
4464 }
4465
4466 // CHECK-LABEL: @test_svreinterpret_f32_s32(
4467 // CHECK-NEXT: entry:
4468 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 4 x float>
4469 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4470 //
4471 // TUPLE2-LABEL: @test_svreinterpret_f32_s32(
4472 // TUPLE2-NEXT: entry:
4473 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 8 x float>
4474 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4475 //
4476 // TUPLE3-LABEL: @test_svreinterpret_f32_s32(
4477 // TUPLE3-NEXT: entry:
4478 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 12 x float>
4479 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4480 //
4481 // TUPLE4-LABEL: @test_svreinterpret_f32_s32(
4482 // TUPLE4-NEXT: entry:
4483 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 16 x float>
4484 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4485 //
4486 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_s32u11__SVInt32_t(
4487 // CPP-CHECK-NEXT: entry:
4488 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 4 x float>
4489 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4490 //
4491 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_s3211svint32x2_t(
4492 // CPP-TUPLE2-NEXT: entry:
4493 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 8 x float>
4494 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4495 //
4496 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_s3211svint32x3_t(
4497 // CPP-TUPLE3-NEXT: entry:
4498 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 12 x float>
4499 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4500 //
4501 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_s3211svint32x4_t(
4502 // CPP-TUPLE4-NEXT: entry:
4503 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 16 x float>
4504 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4505 //
4506 TYPE(svfloat32) test_svreinterpret_f32_s32(TYPE(svint32) op) MODE_ATTR
4507 {
4508 return SVE_ACLE_FUNC(svreinterpret_f32,_s32)(op);
4509 }
4510
4511 // CHECK-LABEL: @test_svreinterpret_f32_s64(
4512 // CHECK-NEXT: entry:
4513 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x float>
4514 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4515 //
4516 // TUPLE2-LABEL: @test_svreinterpret_f32_s64(
4517 // TUPLE2-NEXT: entry:
4518 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x float>
4519 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4520 //
4521 // TUPLE3-LABEL: @test_svreinterpret_f32_s64(
4522 // TUPLE3-NEXT: entry:
4523 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x float>
4524 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4525 //
4526 // TUPLE4-LABEL: @test_svreinterpret_f32_s64(
4527 // TUPLE4-NEXT: entry:
4528 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x float>
4529 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4530 //
4531 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_s64u11__SVInt64_t(
4532 // CPP-CHECK-NEXT: entry:
4533 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x float>
4534 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4535 //
4536 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_s6411svint64x2_t(
4537 // CPP-TUPLE2-NEXT: entry:
4538 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x float>
4539 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4540 //
4541 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_s6411svint64x3_t(
4542 // CPP-TUPLE3-NEXT: entry:
4543 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x float>
4544 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4545 //
4546 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_s6411svint64x4_t(
4547 // CPP-TUPLE4-NEXT: entry:
4548 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x float>
4549 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4550 //
4551 TYPE(svfloat32) test_svreinterpret_f32_s64(TYPE(svint64) op) MODE_ATTR
4552 {
4553 return SVE_ACLE_FUNC(svreinterpret_f32,_s64)(op);
4554 }
4555
4556 // CHECK-LABEL: @test_svreinterpret_f32_u8(
4557 // CHECK-NEXT: entry:
4558 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x float>
4559 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4560 //
4561 // TUPLE2-LABEL: @test_svreinterpret_f32_u8(
4562 // TUPLE2-NEXT: entry:
4563 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x float>
4564 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4565 //
4566 // TUPLE3-LABEL: @test_svreinterpret_f32_u8(
4567 // TUPLE3-NEXT: entry:
4568 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x float>
4569 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4570 //
4571 // TUPLE4-LABEL: @test_svreinterpret_f32_u8(
4572 // TUPLE4-NEXT: entry:
4573 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x float>
4574 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4575 //
4576 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f32_u8u11__SVUint8_t(
4577 // CPP-CHECK-NEXT: entry:
4578 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 4 x float>
4579 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4580 //
4581 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f32_u811svuint8x2_t(
4582 // CPP-TUPLE2-NEXT: entry:
4583 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 8 x float>
4584 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4585 //
4586 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f32_u811svuint8x3_t(
4587 // CPP-TUPLE3-NEXT: entry:
4588 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 12 x float>
4589 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4590 //
4591 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f32_u811svuint8x4_t(
4592 // CPP-TUPLE4-NEXT: entry:
4593 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 16 x float>
4594 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4595 //
4596 TYPE(svfloat32) test_svreinterpret_f32_u8(TYPE(svuint8) op) MODE_ATTR
4597 {
4598 return SVE_ACLE_FUNC(svreinterpret_f32,_u8)(op);
4599 }
4600
4601 // CHECK-LABEL: @test_svreinterpret_f32_u16(
4602 // CHECK-NEXT: entry:
4603 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x float>
4604 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4605 //
4606 // TUPLE2-LABEL: @test_svreinterpret_f32_u16(
4607 // TUPLE2-NEXT: entry:
4608 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x float>
4609 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4610 //
4611 // TUPLE3-LABEL: @test_svreinterpret_f32_u16(
4612 // TUPLE3-NEXT: entry:
4613 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x float>
4614 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4615 //
4616 // TUPLE4-LABEL: @test_svreinterpret_f32_u16(
4617 // TUPLE4-NEXT: entry:
4618 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x float>
4619 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4620 //
4621 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_u16u12__SVUint16_t(
4622 // CPP-CHECK-NEXT: entry:
4623 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 4 x float>
4624 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4625 //
4626 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_u1612svuint16x2_t(
4627 // CPP-TUPLE2-NEXT: entry:
4628 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 8 x float>
4629 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4630 //
4631 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_u1612svuint16x3_t(
4632 // CPP-TUPLE3-NEXT: entry:
4633 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 12 x float>
4634 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4635 //
4636 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_u1612svuint16x4_t(
4637 // CPP-TUPLE4-NEXT: entry:
4638 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 16 x float>
4639 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4640 //
4641 TYPE(svfloat32) test_svreinterpret_f32_u16(TYPE(svuint16) op) MODE_ATTR
4642 {
4643 return SVE_ACLE_FUNC(svreinterpret_f32,_u16)(op);
4644 }
4645
4646 // CHECK-LABEL: @test_svreinterpret_f32_u32(
4647 // CHECK-NEXT: entry:
4648 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 4 x float>
4649 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4650 //
4651 // TUPLE2-LABEL: @test_svreinterpret_f32_u32(
4652 // TUPLE2-NEXT: entry:
4653 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 8 x float>
4654 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4655 //
4656 // TUPLE3-LABEL: @test_svreinterpret_f32_u32(
4657 // TUPLE3-NEXT: entry:
4658 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 12 x float>
4659 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4660 //
4661 // TUPLE4-LABEL: @test_svreinterpret_f32_u32(
4662 // TUPLE4-NEXT: entry:
4663 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 16 x float>
4664 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4665 //
4666 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_u32u12__SVUint32_t(
4667 // CPP-CHECK-NEXT: entry:
4668 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 4 x float>
4669 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4670 //
4671 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_u3212svuint32x2_t(
4672 // CPP-TUPLE2-NEXT: entry:
4673 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 8 x float>
4674 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4675 //
4676 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_u3212svuint32x3_t(
4677 // CPP-TUPLE3-NEXT: entry:
4678 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 12 x float>
4679 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4680 //
4681 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_u3212svuint32x4_t(
4682 // CPP-TUPLE4-NEXT: entry:
4683 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 16 x float>
4684 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4685 //
4686 TYPE(svfloat32) test_svreinterpret_f32_u32(TYPE(svuint32) op) MODE_ATTR
4687 {
4688 return SVE_ACLE_FUNC(svreinterpret_f32,_u32)(op);
4689 }
4690
4691 // CHECK-LABEL: @test_svreinterpret_f32_u64(
4692 // CHECK-NEXT: entry:
4693 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x float>
4694 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4695 //
4696 // TUPLE2-LABEL: @test_svreinterpret_f32_u64(
4697 // TUPLE2-NEXT: entry:
4698 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x float>
4699 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4700 //
4701 // TUPLE3-LABEL: @test_svreinterpret_f32_u64(
4702 // TUPLE3-NEXT: entry:
4703 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x float>
4704 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4705 //
4706 // TUPLE4-LABEL: @test_svreinterpret_f32_u64(
4707 // TUPLE4-NEXT: entry:
4708 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x float>
4709 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4710 //
4711 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_u64u12__SVUint64_t(
4712 // CPP-CHECK-NEXT: entry:
4713 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 4 x float>
4714 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4715 //
4716 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_u6412svuint64x2_t(
4717 // CPP-TUPLE2-NEXT: entry:
4718 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 8 x float>
4719 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4720 //
4721 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_u6412svuint64x3_t(
4722 // CPP-TUPLE3-NEXT: entry:
4723 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 12 x float>
4724 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4725 //
4726 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_u6412svuint64x4_t(
4727 // CPP-TUPLE4-NEXT: entry:
4728 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 16 x float>
4729 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4730 //
4731 TYPE(svfloat32) test_svreinterpret_f32_u64(TYPE(svuint64) op) MODE_ATTR
4732 {
4733 return SVE_ACLE_FUNC(svreinterpret_f32,_u64)(op);
4734 }
4735
4736 // CHECK-LABEL: @test_svreinterpret_f32_f16(
4737 // CHECK-NEXT: entry:
4738 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x float>
4739 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4740 //
4741 // TUPLE2-LABEL: @test_svreinterpret_f32_f16(
4742 // TUPLE2-NEXT: entry:
4743 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x float>
4744 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4745 //
4746 // TUPLE3-LABEL: @test_svreinterpret_f32_f16(
4747 // TUPLE3-NEXT: entry:
4748 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x float>
4749 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4750 //
4751 // TUPLE4-LABEL: @test_svreinterpret_f32_f16(
4752 // TUPLE4-NEXT: entry:
4753 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x float>
4754 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4755 //
4756 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_f16u13__SVFloat16_t(
4757 // CPP-CHECK-NEXT: entry:
4758 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 4 x float>
4759 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4760 //
4761 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_f1613svfloat16x2_t(
4762 // CPP-TUPLE2-NEXT: entry:
4763 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 8 x float>
4764 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4765 //
4766 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_f1613svfloat16x3_t(
4767 // CPP-TUPLE3-NEXT: entry:
4768 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 12 x float>
4769 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4770 //
4771 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_f1613svfloat16x4_t(
4772 // CPP-TUPLE4-NEXT: entry:
4773 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 16 x float>
4774 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4775 //
4776 TYPE(svfloat32) test_svreinterpret_f32_f16(TYPE(svfloat16) op) MODE_ATTR
4777 {
4778 return SVE_ACLE_FUNC(svreinterpret_f32,_f16)(op);
4779 }
4780
4781 // CHECK-LABEL: @test_svreinterpret_f32_f32(
4782 // CHECK-NEXT: entry:
4783 // CHECK-NEXT: ret <vscale x 4 x float> [[OP:%.*]]
4784 //
4785 // TUPLE2-LABEL: @test_svreinterpret_f32_f32(
4786 // TUPLE2-NEXT: entry:
4787 // TUPLE2-NEXT: ret <vscale x 8 x float> [[OP:%.*]]
4788 //
4789 // TUPLE3-LABEL: @test_svreinterpret_f32_f32(
4790 // TUPLE3-NEXT: entry:
4791 // TUPLE3-NEXT: ret <vscale x 12 x float> [[OP:%.*]]
4792 //
4793 // TUPLE4-LABEL: @test_svreinterpret_f32_f32(
4794 // TUPLE4-NEXT: entry:
4795 // TUPLE4-NEXT: ret <vscale x 16 x float> [[OP:%.*]]
4796 //
4797 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_f32u13__SVFloat32_t(
4798 // CPP-CHECK-NEXT: entry:
4799 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[OP:%.*]]
4800 //
4801 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_f3213svfloat32x2_t(
4802 // CPP-TUPLE2-NEXT: entry:
4803 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[OP:%.*]]
4804 //
4805 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_f3213svfloat32x3_t(
4806 // CPP-TUPLE3-NEXT: entry:
4807 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[OP:%.*]]
4808 //
4809 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_f3213svfloat32x4_t(
4810 // CPP-TUPLE4-NEXT: entry:
4811 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[OP:%.*]]
4812 //
4813 TYPE(svfloat32) test_svreinterpret_f32_f32(TYPE(svfloat32) op) MODE_ATTR
4814 {
4815 return SVE_ACLE_FUNC(svreinterpret_f32,_f32)(op);
4816 }
4817
4818 // CHECK-LABEL: @test_svreinterpret_f32_f64(
4819 // CHECK-NEXT: entry:
4820 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x float>
4821 // CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4822 //
4823 // TUPLE2-LABEL: @test_svreinterpret_f32_f64(
4824 // TUPLE2-NEXT: entry:
4825 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x float>
4826 // TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4827 //
4828 // TUPLE3-LABEL: @test_svreinterpret_f32_f64(
4829 // TUPLE3-NEXT: entry:
4830 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x float>
4831 // TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4832 //
4833 // TUPLE4-LABEL: @test_svreinterpret_f32_f64(
4834 // TUPLE4-NEXT: entry:
4835 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x float>
4836 // TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4837 //
4838 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f32_f64u13__SVFloat64_t(
4839 // CPP-CHECK-NEXT: entry:
4840 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x double> [[OP:%.*]] to <vscale x 4 x float>
4841 // CPP-CHECK-NEXT: ret <vscale x 4 x float> [[TMP0]]
4842 //
4843 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f32_f6413svfloat64x2_t(
4844 // CPP-TUPLE2-NEXT: entry:
4845 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x double> [[OP:%.*]] to <vscale x 8 x float>
4846 // CPP-TUPLE2-NEXT: ret <vscale x 8 x float> [[TMP0]]
4847 //
4848 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f32_f6413svfloat64x3_t(
4849 // CPP-TUPLE3-NEXT: entry:
4850 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x double> [[OP:%.*]] to <vscale x 12 x float>
4851 // CPP-TUPLE3-NEXT: ret <vscale x 12 x float> [[TMP0]]
4852 //
4853 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f32_f6413svfloat64x4_t(
4854 // CPP-TUPLE4-NEXT: entry:
4855 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x double> [[OP:%.*]] to <vscale x 16 x float>
4856 // CPP-TUPLE4-NEXT: ret <vscale x 16 x float> [[TMP0]]
4857 //
4858 TYPE(svfloat32) test_svreinterpret_f32_f64(TYPE(svfloat64) op) MODE_ATTR
4859 {
4860 return SVE_ACLE_FUNC(svreinterpret_f32,_f64)(op);
4861 }
4862
4863 // CHECK-LABEL: @test_svreinterpret_f64_s8(
4864 // CHECK-NEXT: entry:
4865 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x double>
4866 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4867 //
4868 // TUPLE2-LABEL: @test_svreinterpret_f64_s8(
4869 // TUPLE2-NEXT: entry:
4870 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x double>
4871 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4872 //
4873 // TUPLE3-LABEL: @test_svreinterpret_f64_s8(
4874 // TUPLE3-NEXT: entry:
4875 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x double>
4876 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4877 //
4878 // TUPLE4-LABEL: @test_svreinterpret_f64_s8(
4879 // TUPLE4-NEXT: entry:
4880 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x double>
4881 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4882 //
4883 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f64_s8u10__SVInt8_t(
4884 // CPP-CHECK-NEXT: entry:
4885 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x double>
4886 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4887 //
4888 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f64_s810svint8x2_t(
4889 // CPP-TUPLE2-NEXT: entry:
4890 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x double>
4891 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4892 //
4893 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f64_s810svint8x3_t(
4894 // CPP-TUPLE3-NEXT: entry:
4895 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x double>
4896 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4897 //
4898 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f64_s810svint8x4_t(
4899 // CPP-TUPLE4-NEXT: entry:
4900 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x double>
4901 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4902 //
4903 TYPE(svfloat64) test_svreinterpret_f64_s8(TYPE(svint8) op) MODE_ATTR
4904 {
4905 return SVE_ACLE_FUNC(svreinterpret_f64,_s8)(op);
4906 }
4907
4908 // CHECK-LABEL: @test_svreinterpret_f64_s16(
4909 // CHECK-NEXT: entry:
4910 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x double>
4911 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4912 //
4913 // TUPLE2-LABEL: @test_svreinterpret_f64_s16(
4914 // TUPLE2-NEXT: entry:
4915 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x double>
4916 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4917 //
4918 // TUPLE3-LABEL: @test_svreinterpret_f64_s16(
4919 // TUPLE3-NEXT: entry:
4920 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x double>
4921 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4922 //
4923 // TUPLE4-LABEL: @test_svreinterpret_f64_s16(
4924 // TUPLE4-NEXT: entry:
4925 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x double>
4926 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4927 //
4928 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_s16u11__SVInt16_t(
4929 // CPP-CHECK-NEXT: entry:
4930 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x double>
4931 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4932 //
4933 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_s1611svint16x2_t(
4934 // CPP-TUPLE2-NEXT: entry:
4935 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x double>
4936 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4937 //
4938 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_s1611svint16x3_t(
4939 // CPP-TUPLE3-NEXT: entry:
4940 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x double>
4941 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4942 //
4943 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_s1611svint16x4_t(
4944 // CPP-TUPLE4-NEXT: entry:
4945 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x double>
4946 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4947 //
4948 TYPE(svfloat64) test_svreinterpret_f64_s16(TYPE(svint16) op) MODE_ATTR
4949 {
4950 return SVE_ACLE_FUNC(svreinterpret_f64,_s16)(op);
4951 }
4952
4953 // CHECK-LABEL: @test_svreinterpret_f64_s32(
4954 // CHECK-NEXT: entry:
4955 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x double>
4956 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4957 //
4958 // TUPLE2-LABEL: @test_svreinterpret_f64_s32(
4959 // TUPLE2-NEXT: entry:
4960 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x double>
4961 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4962 //
4963 // TUPLE3-LABEL: @test_svreinterpret_f64_s32(
4964 // TUPLE3-NEXT: entry:
4965 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x double>
4966 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4967 //
4968 // TUPLE4-LABEL: @test_svreinterpret_f64_s32(
4969 // TUPLE4-NEXT: entry:
4970 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x double>
4971 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4972 //
4973 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_s32u11__SVInt32_t(
4974 // CPP-CHECK-NEXT: entry:
4975 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x double>
4976 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
4977 //
4978 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_s3211svint32x2_t(
4979 // CPP-TUPLE2-NEXT: entry:
4980 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x double>
4981 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
4982 //
4983 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_s3211svint32x3_t(
4984 // CPP-TUPLE3-NEXT: entry:
4985 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x double>
4986 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
4987 //
4988 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_s3211svint32x4_t(
4989 // CPP-TUPLE4-NEXT: entry:
4990 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x double>
4991 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
4992 //
4993 TYPE(svfloat64) test_svreinterpret_f64_s32(TYPE(svint32) op) MODE_ATTR
4994 {
4995 return SVE_ACLE_FUNC(svreinterpret_f64,_s32)(op);
4996 }
4997
4998 // CHECK-LABEL: @test_svreinterpret_f64_s64(
4999 // CHECK-NEXT: entry:
5000 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 2 x double>
5001 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5002 //
5003 // TUPLE2-LABEL: @test_svreinterpret_f64_s64(
5004 // TUPLE2-NEXT: entry:
5005 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 4 x double>
5006 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5007 //
5008 // TUPLE3-LABEL: @test_svreinterpret_f64_s64(
5009 // TUPLE3-NEXT: entry:
5010 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 6 x double>
5011 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5012 //
5013 // TUPLE4-LABEL: @test_svreinterpret_f64_s64(
5014 // TUPLE4-NEXT: entry:
5015 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 8 x double>
5016 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5017 //
5018 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_s64u11__SVInt64_t(
5019 // CPP-CHECK-NEXT: entry:
5020 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 2 x double>
5021 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5022 //
5023 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_s6411svint64x2_t(
5024 // CPP-TUPLE2-NEXT: entry:
5025 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 4 x double>
5026 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5027 //
5028 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_s6411svint64x3_t(
5029 // CPP-TUPLE3-NEXT: entry:
5030 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 6 x double>
5031 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5032 //
5033 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_s6411svint64x4_t(
5034 // CPP-TUPLE4-NEXT: entry:
5035 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 8 x double>
5036 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5037 //
5038 TYPE(svfloat64) test_svreinterpret_f64_s64(TYPE(svint64) op) MODE_ATTR
5039 {
5040 return SVE_ACLE_FUNC(svreinterpret_f64,_s64)(op);
5041 }
5042
5043 // CHECK-LABEL: @test_svreinterpret_f64_u8(
5044 // CHECK-NEXT: entry:
5045 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x double>
5046 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5047 //
5048 // TUPLE2-LABEL: @test_svreinterpret_f64_u8(
5049 // TUPLE2-NEXT: entry:
5050 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x double>
5051 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5052 //
5053 // TUPLE3-LABEL: @test_svreinterpret_f64_u8(
5054 // TUPLE3-NEXT: entry:
5055 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x double>
5056 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5057 //
5058 // TUPLE4-LABEL: @test_svreinterpret_f64_u8(
5059 // TUPLE4-NEXT: entry:
5060 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x double>
5061 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5062 //
5063 // CPP-CHECK-LABEL: @_Z25test_svreinterpret_f64_u8u11__SVUint8_t(
5064 // CPP-CHECK-NEXT: entry:
5065 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i8> [[OP:%.*]] to <vscale x 2 x double>
5066 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5067 //
5068 // CPP-TUPLE2-LABEL: @_Z25test_svreinterpret_f64_u811svuint8x2_t(
5069 // CPP-TUPLE2-NEXT: entry:
5070 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i8> [[OP:%.*]] to <vscale x 4 x double>
5071 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5072 //
5073 // CPP-TUPLE3-LABEL: @_Z25test_svreinterpret_f64_u811svuint8x3_t(
5074 // CPP-TUPLE3-NEXT: entry:
5075 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 48 x i8> [[OP:%.*]] to <vscale x 6 x double>
5076 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5077 //
5078 // CPP-TUPLE4-LABEL: @_Z25test_svreinterpret_f64_u811svuint8x4_t(
5079 // CPP-TUPLE4-NEXT: entry:
5080 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 64 x i8> [[OP:%.*]] to <vscale x 8 x double>
5081 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5082 //
5083 TYPE(svfloat64) test_svreinterpret_f64_u8(TYPE(svuint8) op) MODE_ATTR
5084 {
5085 return SVE_ACLE_FUNC(svreinterpret_f64,_u8)(op);
5086 }
5087
5088 // CHECK-LABEL: @test_svreinterpret_f64_u16(
5089 // CHECK-NEXT: entry:
5090 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x double>
5091 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5092 //
5093 // TUPLE2-LABEL: @test_svreinterpret_f64_u16(
5094 // TUPLE2-NEXT: entry:
5095 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x double>
5096 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5097 //
5098 // TUPLE3-LABEL: @test_svreinterpret_f64_u16(
5099 // TUPLE3-NEXT: entry:
5100 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x double>
5101 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5102 //
5103 // TUPLE4-LABEL: @test_svreinterpret_f64_u16(
5104 // TUPLE4-NEXT: entry:
5105 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x double>
5106 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5107 //
5108 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_u16u12__SVUint16_t(
5109 // CPP-CHECK-NEXT: entry:
5110 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[OP:%.*]] to <vscale x 2 x double>
5111 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5112 //
5113 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_u1612svuint16x2_t(
5114 // CPP-TUPLE2-NEXT: entry:
5115 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[OP:%.*]] to <vscale x 4 x double>
5116 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5117 //
5118 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_u1612svuint16x3_t(
5119 // CPP-TUPLE3-NEXT: entry:
5120 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x i16> [[OP:%.*]] to <vscale x 6 x double>
5121 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5122 //
5123 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_u1612svuint16x4_t(
5124 // CPP-TUPLE4-NEXT: entry:
5125 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[OP:%.*]] to <vscale x 8 x double>
5126 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5127 //
5128 TYPE(svfloat64) test_svreinterpret_f64_u16(TYPE(svuint16) op) MODE_ATTR
5129 {
5130 return SVE_ACLE_FUNC(svreinterpret_f64,_u16)(op);
5131 }
5132
5133 // CHECK-LABEL: @test_svreinterpret_f64_u32(
5134 // CHECK-NEXT: entry:
5135 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x double>
5136 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5137 //
5138 // TUPLE2-LABEL: @test_svreinterpret_f64_u32(
5139 // TUPLE2-NEXT: entry:
5140 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x double>
5141 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5142 //
5143 // TUPLE3-LABEL: @test_svreinterpret_f64_u32(
5144 // TUPLE3-NEXT: entry:
5145 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x double>
5146 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5147 //
5148 // TUPLE4-LABEL: @test_svreinterpret_f64_u32(
5149 // TUPLE4-NEXT: entry:
5150 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x double>
5151 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5152 //
5153 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_u32u12__SVUint32_t(
5154 // CPP-CHECK-NEXT: entry:
5155 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i32> [[OP:%.*]] to <vscale x 2 x double>
5156 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5157 //
5158 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_u3212svuint32x2_t(
5159 // CPP-TUPLE2-NEXT: entry:
5160 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i32> [[OP:%.*]] to <vscale x 4 x double>
5161 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5162 //
5163 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_u3212svuint32x3_t(
5164 // CPP-TUPLE3-NEXT: entry:
5165 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x i32> [[OP:%.*]] to <vscale x 6 x double>
5166 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5167 //
5168 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_u3212svuint32x4_t(
5169 // CPP-TUPLE4-NEXT: entry:
5170 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x i32> [[OP:%.*]] to <vscale x 8 x double>
5171 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5172 //
5173 TYPE(svfloat64) test_svreinterpret_f64_u32(TYPE(svuint32) op) MODE_ATTR
5174 {
5175 return SVE_ACLE_FUNC(svreinterpret_f64,_u32)(op);
5176 }
5177
5178 // CHECK-LABEL: @test_svreinterpret_f64_u64(
5179 // CHECK-NEXT: entry:
5180 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 2 x double>
5181 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5182 //
5183 // TUPLE2-LABEL: @test_svreinterpret_f64_u64(
5184 // TUPLE2-NEXT: entry:
5185 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 4 x double>
5186 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5187 //
5188 // TUPLE3-LABEL: @test_svreinterpret_f64_u64(
5189 // TUPLE3-NEXT: entry:
5190 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 6 x double>
5191 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5192 //
5193 // TUPLE4-LABEL: @test_svreinterpret_f64_u64(
5194 // TUPLE4-NEXT: entry:
5195 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 8 x double>
5196 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5197 //
5198 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_u64u12__SVUint64_t(
5199 // CPP-CHECK-NEXT: entry:
5200 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 2 x i64> [[OP:%.*]] to <vscale x 2 x double>
5201 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5202 //
5203 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_u6412svuint64x2_t(
5204 // CPP-TUPLE2-NEXT: entry:
5205 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x i64> [[OP:%.*]] to <vscale x 4 x double>
5206 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5207 //
5208 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_u6412svuint64x3_t(
5209 // CPP-TUPLE3-NEXT: entry:
5210 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 6 x i64> [[OP:%.*]] to <vscale x 6 x double>
5211 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5212 //
5213 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_u6412svuint64x4_t(
5214 // CPP-TUPLE4-NEXT: entry:
5215 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x i64> [[OP:%.*]] to <vscale x 8 x double>
5216 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5217 //
5218 TYPE(svfloat64) test_svreinterpret_f64_u64(TYPE(svuint64) op) MODE_ATTR
5219 {
5220 return SVE_ACLE_FUNC(svreinterpret_f64,_u64)(op);
5221 }
5222
5223 // CHECK-LABEL: @test_svreinterpret_f64_f16(
5224 // CHECK-NEXT: entry:
5225 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x double>
5226 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5227 //
5228 // TUPLE2-LABEL: @test_svreinterpret_f64_f16(
5229 // TUPLE2-NEXT: entry:
5230 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x double>
5231 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5232 //
5233 // TUPLE3-LABEL: @test_svreinterpret_f64_f16(
5234 // TUPLE3-NEXT: entry:
5235 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x double>
5236 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5237 //
5238 // TUPLE4-LABEL: @test_svreinterpret_f64_f16(
5239 // TUPLE4-NEXT: entry:
5240 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x double>
5241 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5242 //
5243 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_f16u13__SVFloat16_t(
5244 // CPP-CHECK-NEXT: entry:
5245 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x half> [[OP:%.*]] to <vscale x 2 x double>
5246 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5247 //
5248 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_f1613svfloat16x2_t(
5249 // CPP-TUPLE2-NEXT: entry:
5250 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x half> [[OP:%.*]] to <vscale x 4 x double>
5251 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5252 //
5253 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_f1613svfloat16x3_t(
5254 // CPP-TUPLE3-NEXT: entry:
5255 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 24 x half> [[OP:%.*]] to <vscale x 6 x double>
5256 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5257 //
5258 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_f1613svfloat16x4_t(
5259 // CPP-TUPLE4-NEXT: entry:
5260 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 32 x half> [[OP:%.*]] to <vscale x 8 x double>
5261 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5262 //
5263 TYPE(svfloat64) test_svreinterpret_f64_f16(TYPE(svfloat16) op) MODE_ATTR
5264 {
5265 return SVE_ACLE_FUNC(svreinterpret_f64,_f16)(op);
5266 }
5267
5268 // CHECK-LABEL: @test_svreinterpret_f64_f32(
5269 // CHECK-NEXT: entry:
5270 // CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x double>
5271 // CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5272 //
5273 // TUPLE2-LABEL: @test_svreinterpret_f64_f32(
5274 // TUPLE2-NEXT: entry:
5275 // TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x double>
5276 // TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5277 //
5278 // TUPLE3-LABEL: @test_svreinterpret_f64_f32(
5279 // TUPLE3-NEXT: entry:
5280 // TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x double>
5281 // TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5282 //
5283 // TUPLE4-LABEL: @test_svreinterpret_f64_f32(
5284 // TUPLE4-NEXT: entry:
5285 // TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x double>
5286 // TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5287 //
5288 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_f32u13__SVFloat32_t(
5289 // CPP-CHECK-NEXT: entry:
5290 // CPP-CHECK-NEXT: [[TMP0:%.*]] = bitcast <vscale x 4 x float> [[OP:%.*]] to <vscale x 2 x double>
5291 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[TMP0]]
5292 //
5293 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_f3213svfloat32x2_t(
5294 // CPP-TUPLE2-NEXT: entry:
5295 // CPP-TUPLE2-NEXT: [[TMP0:%.*]] = bitcast <vscale x 8 x float> [[OP:%.*]] to <vscale x 4 x double>
5296 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[TMP0]]
5297 //
5298 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_f3213svfloat32x3_t(
5299 // CPP-TUPLE3-NEXT: entry:
5300 // CPP-TUPLE3-NEXT: [[TMP0:%.*]] = bitcast <vscale x 12 x float> [[OP:%.*]] to <vscale x 6 x double>
5301 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[TMP0]]
5302 //
5303 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_f3213svfloat32x4_t(
5304 // CPP-TUPLE4-NEXT: entry:
5305 // CPP-TUPLE4-NEXT: [[TMP0:%.*]] = bitcast <vscale x 16 x float> [[OP:%.*]] to <vscale x 8 x double>
5306 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[TMP0]]
5307 //
5308 TYPE(svfloat64) test_svreinterpret_f64_f32(TYPE(svfloat32) op) MODE_ATTR
5309 {
5310 return SVE_ACLE_FUNC(svreinterpret_f64,_f32)(op);
5311 }
5312
5313 // CHECK-LABEL: @test_svreinterpret_f64_f64(
5314 // CHECK-NEXT: entry:
5315 // CHECK-NEXT: ret <vscale x 2 x double> [[OP:%.*]]
5316 //
5317 // TUPLE2-LABEL: @test_svreinterpret_f64_f64(
5318 // TUPLE2-NEXT: entry:
5319 // TUPLE2-NEXT: ret <vscale x 4 x double> [[OP:%.*]]
5320 //
5321 // TUPLE3-LABEL: @test_svreinterpret_f64_f64(
5322 // TUPLE3-NEXT: entry:
5323 // TUPLE3-NEXT: ret <vscale x 6 x double> [[OP:%.*]]
5324 //
5325 // TUPLE4-LABEL: @test_svreinterpret_f64_f64(
5326 // TUPLE4-NEXT: entry:
5327 // TUPLE4-NEXT: ret <vscale x 8 x double> [[OP:%.*]]
5328 //
5329 // CPP-CHECK-LABEL: @_Z26test_svreinterpret_f64_f64u13__SVFloat64_t(
5330 // CPP-CHECK-NEXT: entry:
5331 // CPP-CHECK-NEXT: ret <vscale x 2 x double> [[OP:%.*]]
5332 //
5333 // CPP-TUPLE2-LABEL: @_Z26test_svreinterpret_f64_f6413svfloat64x2_t(
5334 // CPP-TUPLE2-NEXT: entry:
5335 // CPP-TUPLE2-NEXT: ret <vscale x 4 x double> [[OP:%.*]]
5336 //
5337 // CPP-TUPLE3-LABEL: @_Z26test_svreinterpret_f64_f6413svfloat64x3_t(
5338 // CPP-TUPLE3-NEXT: entry:
5339 // CPP-TUPLE3-NEXT: ret <vscale x 6 x double> [[OP:%.*]]
5340 //
5341 // CPP-TUPLE4-LABEL: @_Z26test_svreinterpret_f64_f6413svfloat64x4_t(
5342 // CPP-TUPLE4-NEXT: entry:
5343 // CPP-TUPLE4-NEXT: ret <vscale x 8 x double> [[OP:%.*]]
5344 //
5345 TYPE(svfloat64) test_svreinterpret_f64_f64(TYPE(svfloat64) op) MODE_ATTR
5346 {
5347 return SVE_ACLE_FUNC(svreinterpret_f64,_f64)(op);
5348 }