1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // REQUIRES: aarch64-registered-target
4 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
5 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -S -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK
6 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
7 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -S -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK
11 #ifdef SVE_OVERLOADED_FORMS
12 // A simple used,unused... macro, long enough to represent any SVE builtin.
13 #define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3
15 #define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
18 // CHECK-LABEL: @test_sveortb_s8(
20 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[OP3:%.*]])
21 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
23 // CPP-CHECK-LABEL: @_Z15test_sveortb_s8u10__SVInt8_tS_S_(
24 // CPP-CHECK-NEXT: entry:
25 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[OP3:%.*]])
26 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
28 svint8_t
test_sveortb_s8(svint8_t op1
, svint8_t op2
, svint8_t op3
)
30 return SVE_ACLE_FUNC(sveortb
,_s8
,,)(op1
, op2
, op3
);
33 // CHECK-LABEL: @test_sveortb_s16(
35 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[OP3:%.*]])
36 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
38 // CPP-CHECK-LABEL: @_Z16test_sveortb_s16u11__SVInt16_tS_S_(
39 // CPP-CHECK-NEXT: entry:
40 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[OP3:%.*]])
41 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
43 svint16_t
test_sveortb_s16(svint16_t op1
, svint16_t op2
, svint16_t op3
)
45 return SVE_ACLE_FUNC(sveortb
,_s16
,,)(op1
, op2
, op3
);
48 // CHECK-LABEL: @test_sveortb_s32(
50 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[OP3:%.*]])
51 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
53 // CPP-CHECK-LABEL: @_Z16test_sveortb_s32u11__SVInt32_tS_S_(
54 // CPP-CHECK-NEXT: entry:
55 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[OP3:%.*]])
56 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
58 svint32_t
test_sveortb_s32(svint32_t op1
, svint32_t op2
, svint32_t op3
)
60 return SVE_ACLE_FUNC(sveortb
,_s32
,,)(op1
, op2
, op3
);
63 // CHECK-LABEL: @test_sveortb_s64(
65 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[OP3:%.*]])
66 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
68 // CPP-CHECK-LABEL: @_Z16test_sveortb_s64u11__SVInt64_tS_S_(
69 // CPP-CHECK-NEXT: entry:
70 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[OP3:%.*]])
71 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
73 svint64_t
test_sveortb_s64(svint64_t op1
, svint64_t op2
, svint64_t op3
)
75 return SVE_ACLE_FUNC(sveortb
,_s64
,,)(op1
, op2
, op3
);
78 // CHECK-LABEL: @test_sveortb_u8(
80 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[OP3:%.*]])
81 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
83 // CPP-CHECK-LABEL: @_Z15test_sveortb_u8u11__SVUint8_tS_S_(
84 // CPP-CHECK-NEXT: entry:
85 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[OP3:%.*]])
86 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
88 svuint8_t
test_sveortb_u8(svuint8_t op1
, svuint8_t op2
, svuint8_t op3
)
90 return SVE_ACLE_FUNC(sveortb
,_u8
,,)(op1
, op2
, op3
);
93 // CHECK-LABEL: @test_sveortb_u16(
95 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[OP3:%.*]])
96 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
98 // CPP-CHECK-LABEL: @_Z16test_sveortb_u16u12__SVUint16_tS_S_(
99 // CPP-CHECK-NEXT: entry:
100 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[OP3:%.*]])
101 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
103 svuint16_t
test_sveortb_u16(svuint16_t op1
, svuint16_t op2
, svuint16_t op3
)
105 return SVE_ACLE_FUNC(sveortb
,_u16
,,)(op1
, op2
, op3
);
108 // CHECK-LABEL: @test_sveortb_u32(
109 // CHECK-NEXT: entry:
110 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[OP3:%.*]])
111 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
113 // CPP-CHECK-LABEL: @_Z16test_sveortb_u32u12__SVUint32_tS_S_(
114 // CPP-CHECK-NEXT: entry:
115 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[OP3:%.*]])
116 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
118 svuint32_t
test_sveortb_u32(svuint32_t op1
, svuint32_t op2
, svuint32_t op3
)
120 return SVE_ACLE_FUNC(sveortb
,_u32
,,)(op1
, op2
, op3
);
123 // CHECK-LABEL: @test_sveortb_u64(
124 // CHECK-NEXT: entry:
125 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[OP3:%.*]])
126 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
128 // CPP-CHECK-LABEL: @_Z16test_sveortb_u64u12__SVUint64_tS_S_(
129 // CPP-CHECK-NEXT: entry:
130 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[OP3:%.*]])
131 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
133 svuint64_t
test_sveortb_u64(svuint64_t op1
, svuint64_t op2
, svuint64_t op3
)
135 return SVE_ACLE_FUNC(sveortb
,_u64
,,)(op1
, op2
, op3
);
138 // CHECK-LABEL: @test_sveortb_n_s8(
139 // CHECK-NEXT: entry:
140 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 16 x i8> poison, i8 [[OP3:%.*]], i64 0
141 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 16 x i8> [[DOTSPLATINSERT]], <vscale x 16 x i8> poison, <vscale x 16 x i32> zeroinitializer
142 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[DOTSPLAT]])
143 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
145 // CPP-CHECK-LABEL: @_Z17test_sveortb_n_s8u10__SVInt8_tS_a(
146 // CPP-CHECK-NEXT: entry:
147 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 16 x i8> poison, i8 [[OP3:%.*]], i64 0
148 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 16 x i8> [[DOTSPLATINSERT]], <vscale x 16 x i8> poison, <vscale x 16 x i32> zeroinitializer
149 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[DOTSPLAT]])
150 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
152 svint8_t
test_sveortb_n_s8(svint8_t op1
, svint8_t op2
, int8_t op3
)
154 return SVE_ACLE_FUNC(sveortb
,_n_s8
,,)(op1
, op2
, op3
);
157 // CHECK-LABEL: @test_sveortb_n_s16(
158 // CHECK-NEXT: entry:
159 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 8 x i16> poison, i16 [[OP3:%.*]], i64 0
160 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 8 x i16> [[DOTSPLATINSERT]], <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
161 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[DOTSPLAT]])
162 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
164 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_s16u11__SVInt16_tS_s(
165 // CPP-CHECK-NEXT: entry:
166 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 8 x i16> poison, i16 [[OP3:%.*]], i64 0
167 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 8 x i16> [[DOTSPLATINSERT]], <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
168 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[DOTSPLAT]])
169 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
171 svint16_t
test_sveortb_n_s16(svint16_t op1
, svint16_t op2
, int16_t op3
)
173 return SVE_ACLE_FUNC(sveortb
,_n_s16
,,)(op1
, op2
, op3
);
176 // CHECK-LABEL: @test_sveortb_n_s32(
177 // CHECK-NEXT: entry:
178 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 4 x i32> poison, i32 [[OP3:%.*]], i64 0
179 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 4 x i32> [[DOTSPLATINSERT]], <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer
180 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[DOTSPLAT]])
181 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
183 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_s32u11__SVInt32_tS_i(
184 // CPP-CHECK-NEXT: entry:
185 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 4 x i32> poison, i32 [[OP3:%.*]], i64 0
186 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 4 x i32> [[DOTSPLATINSERT]], <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer
187 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[DOTSPLAT]])
188 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
190 svint32_t
test_sveortb_n_s32(svint32_t op1
, svint32_t op2
, int32_t op3
)
192 return SVE_ACLE_FUNC(sveortb
,_n_s32
,,)(op1
, op2
, op3
);
195 // CHECK-LABEL: @test_sveortb_n_s64(
196 // CHECK-NEXT: entry:
197 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 2 x i64> poison, i64 [[OP3:%.*]], i64 0
198 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 2 x i64> [[DOTSPLATINSERT]], <vscale x 2 x i64> poison, <vscale x 2 x i32> zeroinitializer
199 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[DOTSPLAT]])
200 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
202 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_s64u11__SVInt64_tS_l(
203 // CPP-CHECK-NEXT: entry:
204 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 2 x i64> poison, i64 [[OP3:%.*]], i64 0
205 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 2 x i64> [[DOTSPLATINSERT]], <vscale x 2 x i64> poison, <vscale x 2 x i32> zeroinitializer
206 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[DOTSPLAT]])
207 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
209 svint64_t
test_sveortb_n_s64(svint64_t op1
, svint64_t op2
, int64_t op3
)
211 return SVE_ACLE_FUNC(sveortb
,_n_s64
,,)(op1
, op2
, op3
);
214 // CHECK-LABEL: @test_sveortb_n_u8(
215 // CHECK-NEXT: entry:
216 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 16 x i8> poison, i8 [[OP3:%.*]], i64 0
217 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 16 x i8> [[DOTSPLATINSERT]], <vscale x 16 x i8> poison, <vscale x 16 x i32> zeroinitializer
218 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[DOTSPLAT]])
219 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
221 // CPP-CHECK-LABEL: @_Z17test_sveortb_n_u8u11__SVUint8_tS_h(
222 // CPP-CHECK-NEXT: entry:
223 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 16 x i8> poison, i8 [[OP3:%.*]], i64 0
224 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 16 x i8> [[DOTSPLATINSERT]], <vscale x 16 x i8> poison, <vscale x 16 x i32> zeroinitializer
225 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 16 x i8> @llvm.aarch64.sve.eortb.nxv16i8(<vscale x 16 x i8> [[OP1:%.*]], <vscale x 16 x i8> [[OP2:%.*]], <vscale x 16 x i8> [[DOTSPLAT]])
226 // CPP-CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
228 svuint8_t
test_sveortb_n_u8(svuint8_t op1
, svuint8_t op2
, uint8_t op3
)
230 return SVE_ACLE_FUNC(sveortb
,_n_u8
,,)(op1
, op2
, op3
);
233 // CHECK-LABEL: @test_sveortb_n_u16(
234 // CHECK-NEXT: entry:
235 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 8 x i16> poison, i16 [[OP3:%.*]], i64 0
236 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 8 x i16> [[DOTSPLATINSERT]], <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
237 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[DOTSPLAT]])
238 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
240 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_u16u12__SVUint16_tS_t(
241 // CPP-CHECK-NEXT: entry:
242 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 8 x i16> poison, i16 [[OP3:%.*]], i64 0
243 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 8 x i16> [[DOTSPLATINSERT]], <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
244 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i16> @llvm.aarch64.sve.eortb.nxv8i16(<vscale x 8 x i16> [[OP1:%.*]], <vscale x 8 x i16> [[OP2:%.*]], <vscale x 8 x i16> [[DOTSPLAT]])
245 // CPP-CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
247 svuint16_t
test_sveortb_n_u16(svuint16_t op1
, svuint16_t op2
, uint16_t op3
)
249 return SVE_ACLE_FUNC(sveortb
,_n_u16
,,)(op1
, op2
, op3
);
252 // CHECK-LABEL: @test_sveortb_n_u32(
253 // CHECK-NEXT: entry:
254 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 4 x i32> poison, i32 [[OP3:%.*]], i64 0
255 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 4 x i32> [[DOTSPLATINSERT]], <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer
256 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[DOTSPLAT]])
257 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
259 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_u32u12__SVUint32_tS_j(
260 // CPP-CHECK-NEXT: entry:
261 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 4 x i32> poison, i32 [[OP3:%.*]], i64 0
262 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 4 x i32> [[DOTSPLATINSERT]], <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer
263 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i32> @llvm.aarch64.sve.eortb.nxv4i32(<vscale x 4 x i32> [[OP1:%.*]], <vscale x 4 x i32> [[OP2:%.*]], <vscale x 4 x i32> [[DOTSPLAT]])
264 // CPP-CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
266 svuint32_t
test_sveortb_n_u32(svuint32_t op1
, svuint32_t op2
, uint32_t op3
)
268 return SVE_ACLE_FUNC(sveortb
,_n_u32
,,)(op1
, op2
, op3
);
271 // CHECK-LABEL: @test_sveortb_n_u64(
272 // CHECK-NEXT: entry:
273 // CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 2 x i64> poison, i64 [[OP3:%.*]], i64 0
274 // CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 2 x i64> [[DOTSPLATINSERT]], <vscale x 2 x i64> poison, <vscale x 2 x i32> zeroinitializer
275 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[DOTSPLAT]])
276 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
278 // CPP-CHECK-LABEL: @_Z18test_sveortb_n_u64u12__SVUint64_tS_m(
279 // CPP-CHECK-NEXT: entry:
280 // CPP-CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <vscale x 2 x i64> poison, i64 [[OP3:%.*]], i64 0
281 // CPP-CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <vscale x 2 x i64> [[DOTSPLATINSERT]], <vscale x 2 x i64> poison, <vscale x 2 x i32> zeroinitializer
282 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i64> @llvm.aarch64.sve.eortb.nxv2i64(<vscale x 2 x i64> [[OP1:%.*]], <vscale x 2 x i64> [[OP2:%.*]], <vscale x 2 x i64> [[DOTSPLAT]])
283 // CPP-CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
285 svuint64_t
test_sveortb_n_u64(svuint64_t op1
, svuint64_t op2
, uint64_t op3
)
287 return SVE_ACLE_FUNC(sveortb
,_n_u64
,,)(op1
, op2
, op3
);