aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/arm_conv/depthwise/kernels/sve_u8q_packed_to_nhwc_5x5_s1_with_multiplier_output4x2_dot_depthfirst/generic.cpp
blob: 9149db7a0a59ea10c9c0fe6b0f94158849a9b2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
/*
 * Copyright (c) 2021, 2023-2024 Arm Limited.
 *
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */


#include "arm_gemm.hpp"
#include <cstddef>
#include <cstdint>

#if defined(ARM_COMPUTE_ENABLE_SVE)

namespace arm_conv {
namespace depthwise {

void sve_u8q_packed_to_nhwc_5x5_s1_with_multiplier_output4x2_dot_depthfirst_impl(
  const uint8_t *const *const inptrs,
  uint8_t *const *const outptrs,
  const void *params,
  unsigned int n_output_channels,
  const arm_gemm::Requantize32& qp
)
{
  __asm__ __volatile__(
    "mov x20, #0x6\n"
    "ldr x27, [%x[inptrs], #0x18]\n"
    "ldr x26, [%x[inptrs], #0x20]\n"
    "mov z30.b, #0x1\n"
    "ldr x25, [%x[inptrs], #0x10]\n"
    "ldr x24, [%x[inptrs], #0x8]\n"
    "mov z14.s, #0x0\n"
    "mov z27.s, #0x0\n"
    "ldr x23, [%x[inptrs], #0x28]\n"
    "ldr x22, [%x[inptrs], #0x30]\n"
    "mov z11.s, #0x0\n"
    "mov z22.s, #0x0\n"
    "whilelt p0.b, XZR, x20\n"
    "ldr x21, [%x[inptrs], #0x38]\n"
    "ldr x20, [%x[inptrs], #0x0]\n"
    "mov z28.s, #0x0\n"
    "mov z25.s, #0x0\n"
    "mov z21.s, #0x1\n"
    "ptrue p2.b\n"
    "lsl x10, %x[n_channels], #0x2\n"
    "mov z24.s, #0x0\n"
    "mov z23.s, #0x0\n"
    "mov x9, #0x0\n"
    "mov x28, #0x0\n"
    "ld1b { z3.b }, p0/Z, [x27]\n"
    "ld1b { z4.b }, p0/Z, [x26]\n"
    "mov z31.s, #0x0\n"
    "mov z29.s, #0x0\n"
    "ld1b { z2.b }, p0/Z, [x25]\n"
    "ld1b { z1.b }, p0/Z, [x24]\n"
    "mov z20.s, #0x0\n"
    "mov z17.s, #0x0\n"
    "ld1b { z5.b }, p0/Z, [x23]\n"
    "ld1b { z6.b }, p0/Z, [x22]\n"
    "mov z18.s, #0x0\n"
    "mov z26.s, #0x0\n"
    "mov z16.d, z3.d\n"
    "mov z13.d, z4.d\n"
    "ld1b { z7.b }, p0/Z, [x21]\n"
    "ld1b { z0.b }, p0/Z, [x20]\n"
    "mov z12.d, z2.d\n"
    "mov z19.d, z1.d\n"
    "ld1rw { z15.s }, p2/Z, [%x[qp], %[offsetof_Requantize32_b_offset]]\n"
    "whilelt p0.b, x9, x10\n"
    "ext z16.b, z16.b, z16.b, #0x1\n"
    "ext z13.b, z13.b, z13.b, #0x1\n"
    "ldp x27, x26, [%x[outptrs], #0x0]\n"
    "ldp x25, x24, [%x[outptrs], #0x10]\n"
    "ext z12.b, z12.b, z12.b, #0x1\n"
    "mov z8.d, z5.d\n"
    "ldp x23, x22, [%x[outptrs], #0x20]\n"
    "ldp x21, x20, [%x[outptrs], #0x30]\n"
    "mov z10.d, z6.d\n"
    "mov z9.d, z7.d\n"
    "neg z15.s, p2/M, z15.s\n"
    "zip1 z3.d, z3.d, z16.d\n"
    "zip1 z4.d, z4.d, z13.d\n"
    "ld1w { z13.s }, p0/Z, [%x[params]]\n"
    "ld1rw { z16.s }, p2/Z, [%x[qp], %[offsetof_Requantize32_c_offset]]\n"
    "ext z19.b, z19.b, z19.b, #0x1\n"
    "zip1 z2.d, z2.d, z12.d\n"
    "ld1rw { z12.s }, p2/Z, [%x[qp], %[offsetof_Requantize32_minval]]\n"
    "ext z8.b, z8.b, z8.b, #0x1\n"
    "ext z10.b, z10.b, z10.b, #0x1\n"
    "mov z3.q, z3.q[0]\n"
    "mov z4.q, z4.q[0]\n"
    "ext z9.b, z9.b, z9.b, #0x1\n"
    "zip1 z1.d, z1.d, z19.d\n"
    "ld1rw { z19.s }, p2/Z, [%x[qp], %[offsetof_Requantize32_maxval]]\n"
    "udot z14.s, z30.b, z3.b[0]\n"
    "udot z27.s, z30.b, z3.b[2]\n"
    "udot z11.s, z30.b, z4.b[0]\n"
    "mov z2.q, z2.q[0]\n"
    "udot z22.s, z30.b, z4.b[2]\n"
    "zip1 z5.d, z5.d, z8.d\n"
    "ld1b { z8.b }, p0/Z, [%x[params], #1, MUL VL]\n"
    "zip1 z6.d, z6.d, z10.d\n"
    "mov z10.d, z0.d\n"
    "udot z28.s, z30.b, z2.b[0]\n"
    "zip1 z7.d, z7.d, z9.d\n"
    "udot z25.s, z30.b, z2.b[2]\n"
    "udot z14.s, z21.b, z3.b[1]\n"
    "ld1b { z9.b }, p0/Z, [%x[params], #2, MUL VL]\n"
    "ext z10.b, z10.b, z10.b, #0x1\n"
    "mov z1.q, z1.q[0]\n"
    "udot z27.s, z21.b, z3.b[3]\n"
    "mov z5.q, z5.q[0]\n"
    "mov z6.q, z6.q[0]\n"
    "udot z11.s, z21.b, z4.b[1]\n"
    "mov z7.q, z7.q[0]\n"
    "udot z22.s, z21.b, z4.b[3]\n"
    "udot z24.s, z30.b, z1.b[0]\n"
    "zip1 z0.d, z0.d, z10.d\n"
    "udot z23.s, z30.b, z1.b[2]\n"
    "udot z31.s, z30.b, z5.b[0]\n"
    "ld1b { z10.b }, p0/Z, [%x[params], #3, MUL VL]\n"
    "udot z29.s, z30.b, z5.b[2]\n"
    "udot z20.s, z30.b, z6.b[0]\n"
    "udot z17.s, z30.b, z6.b[2]\n"
    "udot z18.s, z30.b, z7.b[0]\n"
    "add z14.s, z14.s, z11.s\n"
    "ld1b { z11.b }, p0/Z, [%x[params], #4, MUL VL]\n"
    "udot z26.s, z30.b, z7.b[2]\n"
    "mov z0.q, z0.q[0]\n"
    "udot z28.s, z21.b, z2.b[1]\n"
    "addvl %x[params], %x[params], #5\n"
    "udot z25.s, z21.b, z2.b[3]\n"
    "add z22.s, z27.s, z22.s\n"
    "udot z24.s, z21.b, z1.b[1]\n"
    "mov z27.s, #0x0\n"
    "udot z23.s, z21.b, z1.b[3]\n"
    "udot z31.s, z21.b, z5.b[1]\n"
    "udot z29.s, z21.b, z5.b[3]\n"
    "udot z20.s, z21.b, z6.b[1]\n"
    "udot z27.s, z30.b, z0.b[0]\n"
    "udot z17.s, z21.b, z6.b[3]\n"
    "add z28.s, z28.s, z14.s\n"
    "udot z18.s, z21.b, z7.b[1]\n"
    "udot z26.s, z21.b, z7.b[3]\n"
    "add z25.s, z25.s, z22.s\n"
    "add z24.s, z24.s, z28.s\n"
    "add z20.s, z31.s, z20.s\n"
    "udot z27.s, z21.b, z0.b[1]\n"
    "add z23.s, z23.s, z25.s\n"
    "add z17.s, z29.s, z17.s\n"
    "add z18.s, z18.s, z14.s\n"
    "mov z14.s, #0x0\n"
    "add z22.s, z26.s, z22.s\n"
    "add z26.s, z31.s, z24.s\n"
    "udot z14.s, z30.b, z0.b[2]\n"
    "add z24.s, z24.s, z27.s\n"
    "add z27.s, z29.s, z23.s\n"
    "add z28.s, z20.s, z28.s\n"
    "add z29.s, z17.s, z25.s\n"
    "add z30.s, z20.s, z18.s\n"
    "add z31.s, z17.s, z22.s\n"
    "mul z26.s, p2/M, z26.s, z15.s\n"
    "udot z14.s, z21.b, z0.b[3]\n"
    "mul z24.s, p2/M, z24.s, z15.s\n"
    "mul z27.s, p2/M, z27.s, z15.s\n"
    "mul z28.s, p2/M, z28.s, z15.s\n"
    "mul z29.s, p2/M, z29.s, z15.s\n"
    "mul z30.s, p2/M, z30.s, z15.s\n"
    "mul z31.s, p2/M, z31.s, z15.s\n"
    "add z25.s, z23.s, z14.s\n"
    "zip1 z21.s, z24.s, z26.s\n"
    "add z24.s, z24.s, z13.s\n"
    "add z26.s, z26.s, z13.s\n"
    "mul z25.s, p2/M, z25.s, z15.s\n"
    "zip1 z22.s, z28.s, z30.s\n"
    "add z28.s, z28.s, z13.s\n"
    "zip1 z18.s, z29.s, z31.s\n"
    "add z29.s, z29.s, z13.s\n"
    "zip1 z14.s, z25.s, z27.s\n"
    "add z25.s, z25.s, z13.s\n"
    "add z27.s, z27.s, z13.s\n"
    "add z30.s, z30.s, z13.s\n"
    "zip1 z23.s, z22.s, z18.s\n"
    "add z31.s, z31.s, z13.s\n"
    "zip1 z22.s, z21.s, z14.s\n"
    "1:"  // Loop
    "udot z24.s, z8.b, z0.b[0]\n"
    "udot z25.s, z8.b, z0.b[2]\n"
    "ld1w { z20.s }, p2/Z, [%x[params], #6, MUL VL]\n"
    "ld1w { z13.s }, p2/Z, [%x[params], #7, MUL VL]\n"
    "udot z26.s, z8.b, z1.b[0]\n"
    "udot z27.s, z8.b, z1.b[2]\n"
    "incb x9\n"
    "whilelt p1.s, x28, %x[n_channels]\n"
    "udot z28.s, z8.b, z2.b[0]\n"
    "udot z29.s, z8.b, z2.b[2]\n"
    "udot z30.s, z8.b, z3.b[0]\n"
    "udot z31.s, z8.b, z3.b[2]\n"
    "ld1b { z15.b }, p2/Z, [%x[params]]\n"
    "udot z24.s, z9.b, z0.b[1]\n"
    "udot z25.s, z9.b, z0.b[3]\n"
    "whilelt p0.b, x9, x10\n"
    "udot z26.s, z9.b, z1.b[1]\n"
    "udot z27.s, z9.b, z1.b[3]\n"
    "udot z28.s, z9.b, z2.b[1]\n"
    "udot z29.s, z9.b, z2.b[3]\n"
    "udot z30.s, z9.b, z3.b[1]\n"
    "udot z31.s, z9.b, z3.b[3]\n"
    "ld1b { z8.b }, p2/Z, [%x[params], #1, MUL VL]\n"
    "udot z24.s, z10.b, z1.b[0]\n"
    "udot z25.s, z10.b, z1.b[2]\n"
    "udot z26.s, z10.b, z2.b[0]\n"
    "udot z27.s, z10.b, z2.b[2]\n"
    "udot z28.s, z10.b, z3.b[0]\n"
    "udot z29.s, z10.b, z3.b[2]\n"
    "udot z30.s, z10.b, z4.b[0]\n"
    "udot z31.s, z10.b, z4.b[2]\n"
    "ld1b { z21.b }, p2/Z, [%x[params], #2, MUL VL]\n"
    "udot z24.s, z11.b, z1.b[1]\n"
    "udot z25.s, z11.b, z1.b[3]\n"
    "udot z26.s, z11.b, z2.b[1]\n"
    "udot z27.s, z11.b, z2.b[3]\n"
    "udot z28.s, z11.b, z3.b[1]\n"
    "udot z29.s, z11.b, z3.b[3]\n"
    "udot z30.s, z11.b, z4.b[1]\n"
    "udot z31.s, z11.b, z4.b[3]\n"
    "ld1b { z18.b }, p2/Z, [%x[params], #3, MUL VL]\n"
    "udot z24.s, z15.b, z2.b[0]\n"
    "udot z25.s, z15.b, z2.b[2]\n"
    "udot z26.s, z15.b, z3.b[0]\n"
    "udot z27.s, z15.b, z3.b[2]\n"
    "udot z28.s, z15.b, z4.b[0]\n"
    "udot z29.s, z15.b, z4.b[2]\n"
    "udot z30.s, z15.b, z5.b[0]\n"
    "udot z31.s, z15.b, z5.b[2]\n"
    "ld1b { z17.b }, p2/Z, [%x[params], #4, MUL VL]\n"
    "udot z24.s, z8.b, z2.b[1]\n"
    "udot z25.s, z8.b, z2.b[3]\n"
    "udot z26.s, z8.b, z3.b[1]\n"
    "udot z27.s, z8.b, z3.b[3]\n"
    "udot z28.s, z8.b, z4.b[1]\n"
    "udot z29.s, z8.b, z4.b[3]\n"
    "udot z30.s, z8.b, z5.b[1]\n"
    "udot z31.s, z8.b, z5.b[3]\n"
    "ld1b { z9.b }, p2/Z, [%x[params], #5, MUL VL]\n"
    "addvl %x[params], %x[params], #16\n"
    "udot z24.s, z21.b, z3.b[0]\n"
    "udot z25.s, z21.b, z3.b[2]\n"
    "udot z26.s, z21.b, z4.b[0]\n"
    "udot z27.s, z21.b, z4.b[2]\n"
    "udot z28.s, z21.b, z5.b[0]\n"
    "udot z29.s, z21.b, z5.b[2]\n"
    "ld1w { z14.s }, p0/Z, [%x[params], #-8, MUL VL]\n"
    "udot z30.s, z21.b, z6.b[0]\n"
    "udot z31.s, z21.b, z6.b[2]\n"
    "ld1b { z10.b }, p0/Z, [%x[params], #-5, MUL VL]\n"
    "udot z24.s, z18.b, z3.b[1]\n"
    "udot z25.s, z18.b, z3.b[3]\n"
    "udot z26.s, z18.b, z4.b[1]\n"
    "udot z27.s, z18.b, z4.b[3]\n"
    "udot z28.s, z18.b, z5.b[1]\n"
    "udot z29.s, z18.b, z5.b[3]\n"
    "udot z30.s, z18.b, z6.b[1]\n"
    "udot z31.s, z18.b, z6.b[3]\n"
    "ld1b { z11.b }, p0/Z, [%x[params], #-4, MUL VL]\n"
    "udot z24.s, z17.b, z4.b[0]\n"
    "udot z25.s, z17.b, z4.b[2]\n"
    "udot z26.s, z17.b, z5.b[0]\n"
    "udot z27.s, z17.b, z5.b[2]\n"
    "udot z28.s, z17.b, z6.b[0]\n"
    "udot z29.s, z17.b, z6.b[2]\n"
    "udot z30.s, z17.b, z7.b[0]\n"
    "udot z31.s, z17.b, z7.b[2]\n"
    "ld1b { z8.b }, p0/Z, [%x[params], #-7, MUL VL]\n"
    "udot z24.s, z9.b, z4.b[1]\n"
    "udot z25.s, z9.b, z4.b[3]\n"
    "udot z26.s, z9.b, z5.b[1]\n"
    "udot z27.s, z9.b, z5.b[3]\n"
    "udot z28.s, z9.b, z6.b[1]\n"
    "udot z29.s, z9.b, z6.b[3]\n"
    "udot z30.s, z9.b, z7.b[1]\n"
    "udot z31.s, z9.b, z7.b[3]\n"
    "ld1b { z9.b }, p0/Z, [%x[params], #-6, MUL VL]\n"
    "addvl %x[params], %x[params], #-3\n"
    ".inst 0x04b47718  // sqrdmulh z24.s, z24.s, z20.s\n"
    ".inst 0x04b47739  // sqrdmulh z25.s, z25.s, z20.s\n"
    ".inst 0x04b4775a  // sqrdmulh z26.s, z26.s, z20.s\n"
    ".inst 0x04b4777b  // sqrdmulh z27.s, z27.s, z20.s\n"
    ".inst 0x04b4779c  // sqrdmulh z28.s, z28.s, z20.s\n"
    ".inst 0x04b477bd  // sqrdmulh z29.s, z29.s, z20.s\n"
    "and z17.d, z24.d, z13.d\n"
    "and z18.d, z25.d, z13.d\n"
    "and z15.d, z26.d, z13.d\n"
    "and z21.d, z27.d, z13.d\n"
    ".inst 0x04b477de  // sqrdmulh z30.s, z30.s, z20.s\n"
    ".inst 0x04b477ff  // sqrdmulh z31.s, z31.s, z20.s\n"
    "asr z17.s, z17.s, #0x1f\n"
    "asr z18.s, z18.s, #0x1f\n"
    "asr z15.s, z15.s, #0x1f\n"
    "asr z21.s, z21.s, #0x1f\n"
    "sqadd z24.s, z24.s, z17.s\n"
    "and z20.d, z28.d, z13.d\n"
    "sqadd z25.s, z25.s, z18.s\n"
    "and z18.d, z29.d, z13.d\n"
    "sqadd z26.s, z26.s, z15.s\n"
    "sqadd z27.s, z27.s, z21.s\n"
    "and z17.d, z30.d, z13.d\n"
    "and z15.d, z31.d, z13.d\n"
    ".inst 0x448289b8  // srshl z24.s, p2/M, z24.s, z13.s\n"
    "asr z20.s, z20.s, #0x1f\n"
    "asr z18.s, z18.s, #0x1f\n"
    ".inst 0x448289b9  // srshl z25.s, p2/M, z25.s, z13.s\n"
    ".inst 0x448289ba  // srshl z26.s, p2/M, z26.s, z13.s\n"
    ".inst 0x448289bb  // srshl z27.s, p2/M, z27.s, z13.s\n"
    "asr z17.s, z17.s, #0x1f\n"
    "asr z15.s, z15.s, #0x1f\n"
    "add z24.s, z24.s, z16.s\n"
    "sqadd z28.s, z28.s, z20.s\n"
    "sqadd z29.s, z29.s, z18.s\n"
    "add z25.s, z25.s, z16.s\n"
    "sqadd z30.s, z30.s, z17.s\n"
    "sqadd z31.s, z31.s, z15.s\n"
    ".inst 0x448289bc  // srshl z28.s, p2/M, z28.s, z13.s\n"
    "add z26.s, z26.s, z16.s\n"
    "add z27.s, z27.s, z16.s\n"
    "smin z24.s, p2/M, z24.s, z19.s\n"
    ".inst 0x448289bd  // srshl z29.s, p2/M, z29.s, z13.s\n"
    "smin z25.s, p2/M, z25.s, z19.s\n"
    ".inst 0x448289be  // srshl z30.s, p2/M, z30.s, z13.s\n"
    ".inst 0x448289bf  // srshl z31.s, p2/M, z31.s, z13.s\n"
    "add z28.s, z28.s, z16.s\n"
    "add z29.s, z29.s, z16.s\n"
    "smin z26.s, p2/M, z26.s, z19.s\n"
    "smin z27.s, p2/M, z27.s, z19.s\n"
    "smax z24.s, p2/M, z24.s, z12.s\n"
    "add z30.s, z30.s, z16.s\n"
    "smax z25.s, p2/M, z25.s, z12.s\n"
    "add z31.s, z31.s, z16.s\n"
    "smin z28.s, p2/M, z28.s, z19.s\n"
    "smin z29.s, p2/M, z29.s, z19.s\n"
    "smax z26.s, p2/M, z26.s, z12.s\n"
    "smin z30.s, p2/M, z30.s, z19.s\n"
    "smax z27.s, p2/M, z27.s, z12.s\n"
    "st1b { z24.s }, p1, [x27, x28]\n"
    "mov z24.s, z22.s[0]\n"
    "smin z31.s, p2/M, z31.s, z19.s\n"
    "smax z28.s, p2/M, z28.s, z12.s\n"
    "st1b { z25.s }, p1, [x26, x28]\n"
    "mov z25.s, z22.s[1]\n"
    "smax z29.s, p2/M, z29.s, z12.s\n"
    "st1b { z26.s }, p1, [x25, x28]\n"
    "mov z26.s, z22.s[2]\n"
    "add z24.s, z24.s, z14.s\n"
    "smax z30.s, p2/M, z30.s, z12.s\n"
    "st1b { z27.s }, p1, [x24, x28]\n"
    "mov z27.s, z22.s[3]\n"
    "add z25.s, z25.s, z14.s\n"
    "smax z31.s, p2/M, z31.s, z12.s\n"
    "st1b { z28.s }, p1, [x23, x28]\n"
    "mov z28.s, z23.s[0]\n"
    "add z26.s, z26.s, z14.s\n"
    "st1b { z29.s }, p1, [x22, x28]\n"
    "mov z29.s, z23.s[1]\n"
    "add z27.s, z27.s, z14.s\n"
    "st1b { z30.s }, p1, [x21, x28]\n"
    "mov z30.s, z23.s[2]\n"
    "add z28.s, z28.s, z14.s\n"
    "st1b { z31.s }, p1, [x20, x28]\n"
    "mov z31.s, z23.s[3]\n"
    "incw x28\n"
    "add z29.s, z29.s, z14.s\n"
    "add z30.s, z30.s, z14.s\n"
    "add z31.s, z31.s, z14.s\n"
    "b.any 1b\n"
    : [params] "+&r" (params)
    : [inptrs] "r" (inptrs), [n_channels] "r" (n_output_channels), [offsetof_Requantize32_b_offset] "I" (offsetof(arm_gemm::Requantize32, b_offset)), [offsetof_Requantize32_c_offset] "I" (offsetof(arm_gemm::Requantize32, c_offset)), [offsetof_Requantize32_maxval] "I" (offsetof(arm_gemm::Requantize32, maxval)), [offsetof_Requantize32_minval] "I" (offsetof(arm_gemm::Requantize32, minval)), [outptrs] "r" (outptrs), [qp] "r" (&qp)
    : "cc", "memory", "p0", "p1", "p2", "x9", "x10", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "z0", "z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8", "z9", "z10", "z11", "z12", "z13", "z14", "z15", "z16", "z17", "z18", "z19", "z20", "z21", "z22", "z23", "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31"
  );
}

}  // namespace depthwise
}  // namespace arm_conv

#endif  // defined(ARM_COMPUTE_ENABLE_SVE)