Debian Codegraph @

src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c

raw symbols SCIP
1 // Auto-generated file. Do not edit!
2 // Template: src/f16-igemm/neonfp16arith-ld64.c.in
3 // Generator: tools/xngen
4 //
5 // Copyright 2019 Google LLC
6 //
7 // This source code is licensed under the BSD-style license found in the
8 // LICENSE file in the root directory of this source tree.
9
10
11 #include <assert.h>
12
13 #include <arm_neon.h>
14
15 #include "xnnpack/igemm.h"
16 #include "xnnpack/intrinsics-polyfill.h"
17
18
19 void xnn_f16_igemm_minmax_ukernel_6x16__neonfp16arith_ld64(
20 size_t mr,
21 size_t nc,
22 size_t kc,
23 size_t ks,
24 const xnn_float16** restrict a,
25 const xnn_float16* restrict w,
26 xnn_float16* restrict c,
27 size_t cm_stride,
28 size_t cn_stride,
29 size_t a_offset,
30 const xnn_float16* zero,
31 const union xnn_f16_minmax_params params[restrict XNN_MIN_ELEMENTS(1)])
32 {
33 assert(mr != 0);
34 assert(mr <= 6);
35 assert(nc != 0);
36 assert(kc != 0);
37 assert(kc % sizeof(uint16_t) == 0);
38 assert(ks != 0);
39 assert(ks % (6 * sizeof(void*)) == 0);
40 assert(a_offset % sizeof(uint16_t) == 0);
41 assert(a != NULL);
42 assert(w != NULL);
43 assert(c != NULL);
44
45 uint16_t* c0 = (uint16_t*) c;
46 uint16_t* c1 = (uint16_t*) ((uintptr_t) c0 + cm_stride);
47 if XNN_UNPREDICTABLE(mr < 2) {
48 c1 = c0;
49 }
50 uint16_t* c2 = (uint16_t*) ((uintptr_t) c1 + cm_stride);
51 if XNN_UNPREDICTABLE(mr <= 2) {
52 c2 = c1;
53 }
54 uint16_t* c3 = (uint16_t*) ((uintptr_t) c2 + cm_stride);
55 if XNN_UNPREDICTABLE(mr < 4) {
56 c3 = c2;
57 }
58 uint16_t* c4 = (uint16_t*) ((uintptr_t) c3 + cm_stride);
59 if XNN_UNPREDICTABLE(mr <= 4) {
60 c4 = c3;
61 }
62 uint16_t* c5 = (uint16_t*) ((uintptr_t) c4 + cm_stride);
63 if XNN_UNPREDICTABLE(mr != 6) {
64 c5 = c4;
65 }
66
67 do {
68 float16x8_t vacc0x0 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
69 float16x8_t vacc0x1 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
70 float16x8_t vacc1x0 = vacc0x0;
71 float16x8_t vacc1x1 = vacc0x1;
72 float16x8_t vacc2x0 = vacc0x0;
73 float16x8_t vacc2x1 = vacc0x1;
74 float16x8_t vacc3x0 = vacc0x0;
75 float16x8_t vacc3x1 = vacc0x1;
76 float16x8_t vacc4x0 = vacc0x0;
77 float16x8_t vacc4x1 = vacc0x1;
78 float16x8_t vacc5x0 = vacc0x0;
79 float16x8_t vacc5x1 = vacc0x1;
80
81 size_t p = ks;
82 do {
83 const uint16_t* restrict a0 = (const uint16_t*) a[0];
84 assert(a0 != NULL);
85 if XNN_UNPREDICTABLE(a0 != (const uint16_t*) zero) {
86 a0 = (const uint16_t*) ((uintptr_t) a0 + a_offset);
87 }
88 const uint16_t* restrict a1 = (const uint16_t*) a[1];
89 assert(a1 != NULL);
90 if XNN_UNPREDICTABLE(a1 != (const uint16_t*) zero) {
91 a1 = (const uint16_t*) ((uintptr_t) a1 + a_offset);
92 }
93 const uint16_t* restrict a2 = (const uint16_t*) a[2];
94 assert(a2 != NULL);
95 if XNN_UNPREDICTABLE(a2 != (const uint16_t*) zero) {
96 a2 = (const uint16_t*) ((uintptr_t) a2 + a_offset);
97 }
98 const uint16_t* restrict a3 = (const uint16_t*) a[3];
99 assert(a3 != NULL);
100 if XNN_UNPREDICTABLE(a3 != (const uint16_t*) zero) {
101 a3 = (const uint16_t*) ((uintptr_t) a3 + a_offset);
102 }
103 const uint16_t* restrict a4 = (const uint16_t*) a[4];
104 assert(a4 != NULL);
105 if XNN_UNPREDICTABLE(a4 != (const uint16_t*) zero) {
106 a4 = (const uint16_t*) ((uintptr_t) a4 + a_offset);
107 }
108 const uint16_t* restrict a5 = (const uint16_t*) a[5];
109 assert(a5 != NULL);
110 if XNN_UNPREDICTABLE(a5 != (const uint16_t*) zero) {
111 a5 = (const uint16_t*) ((uintptr_t) a5 + a_offset);
112 }
113 a += 6;
114
115 size_t k = kc;
116 for (; k >= 4 * sizeof(uint16_t); k -= 4 * sizeof(uint16_t)) {
117 const float16x4_t va0 = vreinterpret_f16_u16(vld1_u16(a0)); a0 += 4;
118 const float16x4_t va1 = vreinterpret_f16_u16(vld1_u16(a1)); a1 += 4;
119 const float16x4_t va2 = vreinterpret_f16_u16(vld1_u16(a2)); a2 += 4;
120 const float16x4_t va3 = vreinterpret_f16_u16(vld1_u16(a3)); a3 += 4;
121 const float16x4_t va4 = vreinterpret_f16_u16(vld1_u16(a4)); a4 += 4;
122 const float16x4_t va5 = vreinterpret_f16_u16(vld1_u16(a5)); a5 += 4;
123
124 const float16x8_t vb0c0 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
125 const float16x8_t vb1c0 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
126
127 #if XNN_ARCH_ARM64
128 vacc0x0 = vfmaq_lane_f16(vacc0x0, vb0c0, va0, 0);
129 vacc1x0 = vfmaq_lane_f16(vacc1x0, vb0c0, va1, 0);
130 vacc2x0 = vfmaq_lane_f16(vacc2x0, vb0c0, va2, 0);
131 vacc3x0 = vfmaq_lane_f16(vacc3x0, vb0c0, va3, 0);
132 vacc4x0 = vfmaq_lane_f16(vacc4x0, vb0c0, va4, 0);
133 vacc5x0 = vfmaq_lane_f16(vacc5x0, vb0c0, va5, 0);
134 vacc0x1 = vfmaq_lane_f16(vacc0x1, vb1c0, va0, 0);
135 vacc1x1 = vfmaq_lane_f16(vacc1x1, vb1c0, va1, 0);
136 vacc2x1 = vfmaq_lane_f16(vacc2x1, vb1c0, va2, 0);
137 vacc3x1 = vfmaq_lane_f16(vacc3x1, vb1c0, va3, 0);
138 vacc4x1 = vfmaq_lane_f16(vacc4x1, vb1c0, va4, 0);
139 vacc5x1 = vfmaq_lane_f16(vacc5x1, vb1c0, va5, 0);
140 #else
141 vacc0x0 = vmlaq_lane_f16(vacc0x0, vb0c0, va0, 0);
142 vacc1x0 = vmlaq_lane_f16(vacc1x0, vb0c0, va1, 0);
143 vacc2x0 = vmlaq_lane_f16(vacc2x0, vb0c0, va2, 0);
144 vacc3x0 = vmlaq_lane_f16(vacc3x0, vb0c0, va3, 0);
145 vacc4x0 = vmlaq_lane_f16(vacc4x0, vb0c0, va4, 0);
146 vacc5x0 = vmlaq_lane_f16(vacc5x0, vb0c0, va5, 0);
147 vacc0x1 = vmlaq_lane_f16(vacc0x1, vb1c0, va0, 0);
148 vacc1x1 = vmlaq_lane_f16(vacc1x1, vb1c0, va1, 0);
149 vacc2x1 = vmlaq_lane_f16(vacc2x1, vb1c0, va2, 0);
150 vacc3x1 = vmlaq_lane_f16(vacc3x1, vb1c0, va3, 0);
151 vacc4x1 = vmlaq_lane_f16(vacc4x1, vb1c0, va4, 0);
152 vacc5x1 = vmlaq_lane_f16(vacc5x1, vb1c0, va5, 0);
153 #endif
154 const float16x8_t vb0c1 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
155 const float16x8_t vb1c1 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
156
157 #if XNN_ARCH_ARM64
158 vacc0x0 = vfmaq_lane_f16(vacc0x0, vb0c1, va0, 1);
159 vacc1x0 = vfmaq_lane_f16(vacc1x0, vb0c1, va1, 1);
160 vacc2x0 = vfmaq_lane_f16(vacc2x0, vb0c1, va2, 1);
161 vacc3x0 = vfmaq_lane_f16(vacc3x0, vb0c1, va3, 1);
162 vacc4x0 = vfmaq_lane_f16(vacc4x0, vb0c1, va4, 1);
163 vacc5x0 = vfmaq_lane_f16(vacc5x0, vb0c1, va5, 1);
164 vacc0x1 = vfmaq_lane_f16(vacc0x1, vb1c1, va0, 1);
165 vacc1x1 = vfmaq_lane_f16(vacc1x1, vb1c1, va1, 1);
166 vacc2x1 = vfmaq_lane_f16(vacc2x1, vb1c1, va2, 1);
167 vacc3x1 = vfmaq_lane_f16(vacc3x1, vb1c1, va3, 1);
168 vacc4x1 = vfmaq_lane_f16(vacc4x1, vb1c1, va4, 1);
169 vacc5x1 = vfmaq_lane_f16(vacc5x1, vb1c1, va5, 1);
170 #else
171 vacc0x0 = vmlaq_lane_f16(vacc0x0, vb0c1, va0, 1);
172 vacc1x0 = vmlaq_lane_f16(vacc1x0, vb0c1, va1, 1);
173 vacc2x0 = vmlaq_lane_f16(vacc2x0, vb0c1, va2, 1);
174 vacc3x0 = vmlaq_lane_f16(vacc3x0, vb0c1, va3, 1);
175 vacc4x0 = vmlaq_lane_f16(vacc4x0, vb0c1, va4, 1);
176 vacc5x0 = vmlaq_lane_f16(vacc5x0, vb0c1, va5, 1);
177 vacc0x1 = vmlaq_lane_f16(vacc0x1, vb1c1, va0, 1);
178 vacc1x1 = vmlaq_lane_f16(vacc1x1, vb1c1, va1, 1);
179 vacc2x1 = vmlaq_lane_f16(vacc2x1, vb1c1, va2, 1);
180 vacc3x1 = vmlaq_lane_f16(vacc3x1, vb1c1, va3, 1);
181 vacc4x1 = vmlaq_lane_f16(vacc4x1, vb1c1, va4, 1);
182 vacc5x1 = vmlaq_lane_f16(vacc5x1, vb1c1, va5, 1);
183 #endif
184 const float16x8_t vb0c2 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
185 const float16x8_t vb1c2 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
186
187 #if XNN_ARCH_ARM64
188 vacc0x0 = vfmaq_lane_f16(vacc0x0, vb0c2, va0, 2);
189 vacc1x0 = vfmaq_lane_f16(vacc1x0, vb0c2, va1, 2);
190 vacc2x0 = vfmaq_lane_f16(vacc2x0, vb0c2, va2, 2);
191 vacc3x0 = vfmaq_lane_f16(vacc3x0, vb0c2, va3, 2);
192 vacc4x0 = vfmaq_lane_f16(vacc4x0, vb0c2, va4, 2);
193 vacc5x0 = vfmaq_lane_f16(vacc5x0, vb0c2, va5, 2);
194 vacc0x1 = vfmaq_lane_f16(vacc0x1, vb1c2, va0, 2);
195 vacc1x1 = vfmaq_lane_f16(vacc1x1, vb1c2, va1, 2);
196 vacc2x1 = vfmaq_lane_f16(vacc2x1, vb1c2, va2, 2);
197 vacc3x1 = vfmaq_lane_f16(vacc3x1, vb1c2, va3, 2);
198 vacc4x1 = vfmaq_lane_f16(vacc4x1, vb1c2, va4, 2);
199 vacc5x1 = vfmaq_lane_f16(vacc5x1, vb1c2, va5, 2);
200 #else
201 vacc0x0 = vmlaq_lane_f16(vacc0x0, vb0c2, va0, 2);
202 vacc1x0 = vmlaq_lane_f16(vacc1x0, vb0c2, va1, 2);
203 vacc2x0 = vmlaq_lane_f16(vacc2x0, vb0c2, va2, 2);
204 vacc3x0 = vmlaq_lane_f16(vacc3x0, vb0c2, va3, 2);
205 vacc4x0 = vmlaq_lane_f16(vacc4x0, vb0c2, va4, 2);
206 vacc5x0 = vmlaq_lane_f16(vacc5x0, vb0c2, va5, 2);
207 vacc0x1 = vmlaq_lane_f16(vacc0x1, vb1c2, va0, 2);
208 vacc1x1 = vmlaq_lane_f16(vacc1x1, vb1c2, va1, 2);
209 vacc2x1 = vmlaq_lane_f16(vacc2x1, vb1c2, va2, 2);
210 vacc3x1 = vmlaq_lane_f16(vacc3x1, vb1c2, va3, 2);
211 vacc4x1 = vmlaq_lane_f16(vacc4x1, vb1c2, va4, 2);
212 vacc5x1 = vmlaq_lane_f16(vacc5x1, vb1c2, va5, 2);
213 #endif
214 const float16x8_t vb0c3 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
215 const float16x8_t vb1c3 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
216
217 #if XNN_ARCH_ARM64
218 vacc0x0 = vfmaq_lane_f16(vacc0x0, vb0c3, va0, 3);
219 vacc1x0 = vfmaq_lane_f16(vacc1x0, vb0c3, va1, 3);
220 vacc2x0 = vfmaq_lane_f16(vacc2x0, vb0c3, va2, 3);
221 vacc3x0 = vfmaq_lane_f16(vacc3x0, vb0c3, va3, 3);
222 vacc4x0 = vfmaq_lane_f16(vacc4x0, vb0c3, va4, 3);
223 vacc5x0 = vfmaq_lane_f16(vacc5x0, vb0c3, va5, 3);
224 vacc0x1 = vfmaq_lane_f16(vacc0x1, vb1c3, va0, 3);
225 vacc1x1 = vfmaq_lane_f16(vacc1x1, vb1c3, va1, 3);
226 vacc2x1 = vfmaq_lane_f16(vacc2x1, vb1c3, va2, 3);
227 vacc3x1 = vfmaq_lane_f16(vacc3x1, vb1c3, va3, 3);
228 vacc4x1 = vfmaq_lane_f16(vacc4x1, vb1c3, va4, 3);
229 vacc5x1 = vfmaq_lane_f16(vacc5x1, vb1c3, va5, 3);
230 #else
231 vacc0x0 = vmlaq_lane_f16(vacc0x0, vb0c3, va0, 3);
232 vacc1x0 = vmlaq_lane_f16(vacc1x0, vb0c3, va1, 3);
233 vacc2x0 = vmlaq_lane_f16(vacc2x0, vb0c3, va2, 3);
234 vacc3x0 = vmlaq_lane_f16(vacc3x0, vb0c3, va3, 3);
235 vacc4x0 = vmlaq_lane_f16(vacc4x0, vb0c3, va4, 3);
236 vacc5x0 = vmlaq_lane_f16(vacc5x0, vb0c3, va5, 3);
237 vacc0x1 = vmlaq_lane_f16(vacc0x1, vb1c3, va0, 3);
238 vacc1x1 = vmlaq_lane_f16(vacc1x1, vb1c3, va1, 3);
239 vacc2x1 = vmlaq_lane_f16(vacc2x1, vb1c3, va2, 3);
240 vacc3x1 = vmlaq_lane_f16(vacc3x1, vb1c3, va3, 3);
241 vacc4x1 = vmlaq_lane_f16(vacc4x1, vb1c3, va4, 3);
242 vacc5x1 = vmlaq_lane_f16(vacc5x1, vb1c3, va5, 3);
243 #endif
244 }
245 if XNN_UNLIKELY(k != 0) {
246 do {
247 const float16x8_t va0 = vreinterpretq_f16_u16(vld1q_dup_u16(a0)); a0 += 1;
248 const float16x8_t va1 = vreinterpretq_f16_u16(vld1q_dup_u16(a1)); a1 += 1;
249 const float16x8_t va2 = vreinterpretq_f16_u16(vld1q_dup_u16(a2)); a2 += 1;
250 const float16x8_t va3 = vreinterpretq_f16_u16(vld1q_dup_u16(a3)); a3 += 1;
251 const float16x8_t va4 = vreinterpretq_f16_u16(vld1q_dup_u16(a4)); a4 += 1;
252 const float16x8_t va5 = vreinterpretq_f16_u16(vld1q_dup_u16(a5)); a5 += 1;
253
254 const float16x8_t vb0 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
255 const float16x8_t vb1 = vreinterpretq_f16_u16(vld1q_u16((const uint16_t*) w)); w = (const xnn_float16*) w + 8;
256
257 vacc0x0 = vfmaq_f16(vacc0x0, va0, vb0);
258 vacc1x0 = vfmaq_f16(vacc1x0, va1, vb0);
259 vacc2x0 = vfmaq_f16(vacc2x0, va2, vb0);
260 vacc3x0 = vfmaq_f16(vacc3x0, va3, vb0);
261 vacc4x0 = vfmaq_f16(vacc4x0, va4, vb0);
262 vacc5x0 = vfmaq_f16(vacc5x0, va5, vb0);
263 vacc0x1 = vfmaq_f16(vacc0x1, va0, vb1);
264 vacc1x1 = vfmaq_f16(vacc1x1, va1, vb1);
265 vacc2x1 = vfmaq_f16(vacc2x1, va2, vb1);
266 vacc3x1 = vfmaq_f16(vacc3x1, va3, vb1);
267 vacc4x1 = vfmaq_f16(vacc4x1, va4, vb1);
268 vacc5x1 = vfmaq_f16(vacc5x1, va5, vb1);
269
270 k -= sizeof(uint16_t);
271 } while (k != 0);
272 }
273 p -= 6 * sizeof(void*);
274 } while (p != 0);
275
276
277 const float16x8_t vmin = vreinterpretq_f16_u16(vld1q_dup_u16((const uint16_t*) &params->scalar.min));
278 vacc0x0 = vmaxq_f16(vacc0x0, vmin);
279 vacc1x0 = vmaxq_f16(vacc1x0, vmin);
280 vacc2x0 = vmaxq_f16(vacc2x0, vmin);
281 vacc3x0 = vmaxq_f16(vacc3x0, vmin);
282 vacc4x0 = vmaxq_f16(vacc4x0, vmin);
283 vacc5x0 = vmaxq_f16(vacc5x0, vmin);
284 vacc0x1 = vmaxq_f16(vacc0x1, vmin);
285 vacc1x1 = vmaxq_f16(vacc1x1, vmin);
286 vacc2x1 = vmaxq_f16(vacc2x1, vmin);
287 vacc3x1 = vmaxq_f16(vacc3x1, vmin);
288 vacc4x1 = vmaxq_f16(vacc4x1, vmin);
289 vacc5x1 = vmaxq_f16(vacc5x1, vmin);
290
291 const float16x8_t vmax = vreinterpretq_f16_u16(vld1q_dup_u16((const uint16_t*) &params->scalar.max));
292 vacc0x0 = vminq_f16(vacc0x0, vmax);
293 vacc1x0 = vminq_f16(vacc1x0, vmax);
294 vacc2x0 = vminq_f16(vacc2x0, vmax);
295 vacc3x0 = vminq_f16(vacc3x0, vmax);
296 vacc4x0 = vminq_f16(vacc4x0, vmax);
297 vacc5x0 = vminq_f16(vacc5x0, vmax);
298 vacc0x1 = vminq_f16(vacc0x1, vmax);
299 vacc1x1 = vminq_f16(vacc1x1, vmax);
300 vacc2x1 = vminq_f16(vacc2x1, vmax);
301 vacc3x1 = vminq_f16(vacc3x1, vmax);
302 vacc4x1 = vminq_f16(vacc4x1, vmax);
303 vacc5x1 = vminq_f16(vacc5x1, vmax);
304
305 if XNN_LIKELY(nc >= 16) {
306 vst1q_u16(c5, vreinterpretq_u16_f16(vacc5x0));
307 vst1q_u16(c5 + 8, vreinterpretq_u16_f16(vacc5x1));
308 c5 = (uint16_t*) ((uintptr_t) c5 + cn_stride);
309 vst1q_u16(c4, vreinterpretq_u16_f16(vacc4x0));
310 vst1q_u16(c4 + 8, vreinterpretq_u16_f16(vacc4x1));
311 c4 = (uint16_t*) ((uintptr_t) c4 + cn_stride);
312 vst1q_u16(c3, vreinterpretq_u16_f16(vacc3x0));
313 vst1q_u16(c3 + 8, vreinterpretq_u16_f16(vacc3x1));
314 c3 = (uint16_t*) ((uintptr_t) c3 + cn_stride);
315 vst1q_u16(c2, vreinterpretq_u16_f16(vacc2x0));
316 vst1q_u16(c2 + 8, vreinterpretq_u16_f16(vacc2x1));
317 c2 = (uint16_t*) ((uintptr_t) c2 + cn_stride);
318 vst1q_u16(c1, vreinterpretq_u16_f16(vacc1x0));
319 vst1q_u16(c1 + 8, vreinterpretq_u16_f16(vacc1x1));
320 c1 = (uint16_t*) ((uintptr_t) c1 + cn_stride);
321 vst1q_u16(c0, vreinterpretq_u16_f16(vacc0x0));
322 vst1q_u16(c0 + 8, vreinterpretq_u16_f16(vacc0x1));
323 c0 = (uint16_t*) ((uintptr_t) c0 + cn_stride);
324
325 a = (const xnn_float16**restrict) ((uintptr_t) a - ks);
326 nc -= 16;
327 } else {
328 if (nc & 8) {
329 vst1q_u16(c5, vreinterpretq_u16_f16(vacc5x0)); c5 += 8;
330 vst1q_u16(c4, vreinterpretq_u16_f16(vacc4x0)); c4 += 8;
331 vst1q_u16(c3, vreinterpretq_u16_f16(vacc3x0)); c3 += 8;
332 vst1q_u16(c2, vreinterpretq_u16_f16(vacc2x0)); c2 += 8;
333 vst1q_u16(c1, vreinterpretq_u16_f16(vacc1x0)); c1 += 8;
334 vst1q_u16(c0, vreinterpretq_u16_f16(vacc0x0)); c0 += 8;
335
336 vacc5x0 = vacc5x1;
337 vacc4x0 = vacc4x1;
338 vacc3x0 = vacc3x1;
339 vacc2x0 = vacc2x1;
340 vacc1x0 = vacc1x1;
341 vacc0x0 = vacc0x1;
342 }
343 float16x4_t vacc5 = vget_low_f16(vacc5x0);
344 float16x4_t vacc4 = vget_low_f16(vacc4x0);
345 float16x4_t vacc3 = vget_low_f16(vacc3x0);
346 float16x4_t vacc2 = vget_low_f16(vacc2x0);
347 float16x4_t vacc1 = vget_low_f16(vacc1x0);
348 float16x4_t vacc0 = vget_low_f16(vacc0x0);
349 if (nc & 4) {
350 vst1_u16(c5, vreinterpret_u16_f16(vacc5)); c5 += 4;
351 vst1_u16(c4, vreinterpret_u16_f16(vacc4)); c4 += 4;
352 vst1_u16(c3, vreinterpret_u16_f16(vacc3)); c3 += 4;
353 vst1_u16(c2, vreinterpret_u16_f16(vacc2)); c2 += 4;
354 vst1_u16(c1, vreinterpret_u16_f16(vacc1)); c1 += 4;
355 vst1_u16(c0, vreinterpret_u16_f16(vacc0)); c0 += 4;
356
357 vacc5 = vget_high_f16(vacc5x0);
358 vacc4 = vget_high_f16(vacc4x0);
359 vacc3 = vget_high_f16(vacc3x0);
360 vacc2 = vget_high_f16(vacc2x0);
361 vacc1 = vget_high_f16(vacc1x0);
362 vacc0 = vget_high_f16(vacc0x0);
363 }
364 if (nc & 2) {
365 vst1_lane_u32((void*) c5, vreinterpret_u32_f16(vacc5), 0); c5 += 2;
366 vst1_lane_u32((void*) c4, vreinterpret_u32_f16(vacc4), 0); c4 += 2;
367 vst1_lane_u32((void*) c3, vreinterpret_u32_f16(vacc3), 0); c3 += 2;
368 vst1_lane_u32((void*) c2, vreinterpret_u32_f16(vacc2), 0); c2 += 2;
369 vst1_lane_u32((void*) c1, vreinterpret_u32_f16(vacc1), 0); c1 += 2;
370 vst1_lane_u32((void*) c0, vreinterpret_u32_f16(vacc0), 0); c0 += 2;
371
372 vacc5 = vext_f16(vacc5, vacc5, 2);
373 vacc4 = vext_f16(vacc4, vacc4, 2);
374 vacc3 = vext_f16(vacc3, vacc3, 2);
375 vacc2 = vext_f16(vacc2, vacc2, 2);
376 vacc1 = vext_f16(vacc1, vacc1, 2);
377 vacc0 = vext_f16(vacc0, vacc0, 2);
378 }
379 if (nc & 1) {
380 vst1_lane_u16(c5, vreinterpret_u16_f16(vacc5), 0);
381 vst1_lane_u16(c4, vreinterpret_u16_f16(vacc4), 0);
382 vst1_lane_u16(c3, vreinterpret_u16_f16(vacc3), 0);
383 vst1_lane_u16(c2, vreinterpret_u16_f16(vacc2), 0);
384 vst1_lane_u16(c1, vreinterpret_u16_f16(vacc1), 0);
385 vst1_lane_u16(c0, vreinterpret_u16_f16(vacc0), 0);
386 }
387
388 nc = 0;
389 }
390 } while (nc != 0);
391 }