| 1 |
// Auto-generated file. Do not edit! |
| 2 |
// Template: src/qs8-igemm/c4-neondot.c.in |
| 3 |
// Generator: tools/xngen |
| 4 |
// |
| 5 |
// Copyright 2020 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 |
#include <assert.h> |
| 11 |
|
| 12 |
#include <arm_neon.h> |
| 13 |
|
| 14 |
#include "xnnpack/igemm.h" |
| 15 |
#include "xnnpack/math.h" |
| 16 |
|
| 17 |
|
| 18 |
void xnn_qd8_f16_qc8w_igemm_minmax_ukernel_8x32c4__neondotfp16arith( |
| 19 |
size_t mr, |
| 20 |
size_t nc, |
| 21 |
size_t kc, |
| 22 |
size_t ks, |
| 23 |
const int8_t** restrict a, |
| 24 |
const void* restrict w, |
| 25 |
xnn_float16* restrict c, |
| 26 |
size_t cm_stride, |
| 27 |
size_t cn_stride, |
| 28 |
size_t a_offset, |
| 29 |
const int8_t* zero, |
| 30 |
const int8_t* zero_data, |
| 31 |
const union xnn_f16_minmax_params params[restrict XNN_MIN_ELEMENTS(1)], |
| 32 |
const struct xnn_qd8_quantization_params quantization_params[restrict XNN_MIN_ELEMENTS(1)]) XNN_OOB_READS |
| 33 |
{ |
| 34 |
assert(mr != 0); |
| 35 |
assert(mr <= 8); |
| 36 |
assert(nc != 0); |
| 37 |
assert(kc != 0); |
| 38 |
assert(ks != 0); |
| 39 |
assert(ks % (8 * sizeof(void*)) == 0); |
| 40 |
assert(a_offset % sizeof(int8_t) == 0); |
| 41 |
assert(a != NULL); |
| 42 |
assert(w != NULL); |
| 43 |
assert(c != NULL); |
| 44 |
|
| 45 |
kc = round_up_po2(kc, 4 * sizeof(int8_t)); |
| 46 |
uint16_t* c0 = (uint16_t*) c; |
| 47 |
uint16_t* c1 = (uint16_t*) ((uintptr_t) c0 + cm_stride); |
| 48 |
if XNN_UNPREDICTABLE(mr < 2) { |
| 49 |
c1 = c0; |
| 50 |
} |
| 51 |
uint16_t* c2 = (uint16_t*) ((uintptr_t) c1 + cm_stride); |
| 52 |
if XNN_UNPREDICTABLE(mr <= 2) { |
| 53 |
c2 = c1; |
| 54 |
} |
| 55 |
uint16_t* c3 = (uint16_t*) ((uintptr_t) c2 + cm_stride); |
| 56 |
if XNN_UNPREDICTABLE(mr < 4) { |
| 57 |
c3 = c2; |
| 58 |
} |
| 59 |
uint16_t* c4 = (uint16_t*) ((uintptr_t) c3 + cm_stride); |
| 60 |
if XNN_UNPREDICTABLE(mr <= 4) { |
| 61 |
c4 = c3; |
| 62 |
} |
| 63 |
uint16_t* c5 = (uint16_t*) ((uintptr_t) c4 + cm_stride); |
| 64 |
if XNN_UNPREDICTABLE(mr < 6) { |
| 65 |
c5 = c4; |
| 66 |
} |
| 67 |
uint16_t* c6 = (uint16_t*) ((uintptr_t) c5 + cm_stride); |
| 68 |
if XNN_UNPREDICTABLE(mr <= 6) { |
| 69 |
c6 = c5; |
| 70 |
} |
| 71 |
uint16_t* c7 = (uint16_t*) ((uintptr_t) c6 + cm_stride); |
| 72 |
if XNN_UNPREDICTABLE(mr != 8) { |
| 73 |
c7 = c6; |
| 74 |
} |
| 75 |
|
| 76 |
do { |
| 77 |
const int32x4_t vinput_zero_point = vld1q_dup_s32(&quantization_params->zero_point); |
| 78 |
const int32x4_t vksum0123 = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 79 |
int32x4_t vacc0x0123 = vmulq_s32(vksum0123, vinput_zero_point); |
| 80 |
const int32x4_t vksum4567 = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 81 |
int32x4_t vacc0x4567 = vmulq_s32(vksum4567, vinput_zero_point); |
| 82 |
const int32x4_t vksum89AB = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 83 |
int32x4_t vacc0x89AB = vmulq_s32(vksum89AB, vinput_zero_point); |
| 84 |
const int32x4_t vksumCDEF = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 85 |
int32x4_t vacc0xCDEF = vmulq_s32(vksumCDEF, vinput_zero_point); |
| 86 |
const int32x4_t vksumGHIJ = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 87 |
int32x4_t vacc0xGHIJ = vmulq_s32(vksumGHIJ, vinput_zero_point); |
| 88 |
const int32x4_t vksumKLMN = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 89 |
int32x4_t vacc0xKLMN = vmulq_s32(vksumKLMN, vinput_zero_point); |
| 90 |
const int32x4_t vksumOPQR = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 91 |
int32x4_t vacc0xOPQR = vmulq_s32(vksumOPQR, vinput_zero_point); |
| 92 |
const int32x4_t vksumSTUV = vld1q_s32(w); w = (const int32_t*) w + 4; |
| 93 |
int32x4_t vacc0xSTUV = vmulq_s32(vksumSTUV, vinput_zero_point); |
| 94 |
int32x4_t vacc1x0123 = vacc0x0123; |
| 95 |
int32x4_t vacc1x4567 = vacc0x4567; |
| 96 |
int32x4_t vacc1x89AB = vacc0x89AB; |
| 97 |
int32x4_t vacc1xCDEF = vacc0xCDEF; |
| 98 |
int32x4_t vacc1xGHIJ = vacc0xGHIJ; |
| 99 |
int32x4_t vacc1xKLMN = vacc0xKLMN; |
| 100 |
int32x4_t vacc1xOPQR = vacc0xOPQR; |
| 101 |
int32x4_t vacc1xSTUV = vacc0xSTUV; |
| 102 |
int32x4_t vacc2x0123 = vacc0x0123; |
| 103 |
int32x4_t vacc2x4567 = vacc0x4567; |
| 104 |
int32x4_t vacc2x89AB = vacc0x89AB; |
| 105 |
int32x4_t vacc2xCDEF = vacc0xCDEF; |
| 106 |
int32x4_t vacc2xGHIJ = vacc0xGHIJ; |
| 107 |
int32x4_t vacc2xKLMN = vacc0xKLMN; |
| 108 |
int32x4_t vacc2xOPQR = vacc0xOPQR; |
| 109 |
int32x4_t vacc2xSTUV = vacc0xSTUV; |
| 110 |
int32x4_t vacc3x0123 = vacc0x0123; |
| 111 |
int32x4_t vacc3x4567 = vacc0x4567; |
| 112 |
int32x4_t vacc3x89AB = vacc0x89AB; |
| 113 |
int32x4_t vacc3xCDEF = vacc0xCDEF; |
| 114 |
int32x4_t vacc3xGHIJ = vacc0xGHIJ; |
| 115 |
int32x4_t vacc3xKLMN = vacc0xKLMN; |
| 116 |
int32x4_t vacc3xOPQR = vacc0xOPQR; |
| 117 |
int32x4_t vacc3xSTUV = vacc0xSTUV; |
| 118 |
int32x4_t vacc4x0123 = vacc0x0123; |
| 119 |
int32x4_t vacc4x4567 = vacc0x4567; |
| 120 |
int32x4_t vacc4x89AB = vacc0x89AB; |
| 121 |
int32x4_t vacc4xCDEF = vacc0xCDEF; |
| 122 |
int32x4_t vacc4xGHIJ = vacc0xGHIJ; |
| 123 |
int32x4_t vacc4xKLMN = vacc0xKLMN; |
| 124 |
int32x4_t vacc4xOPQR = vacc0xOPQR; |
| 125 |
int32x4_t vacc4xSTUV = vacc0xSTUV; |
| 126 |
int32x4_t vacc5x0123 = vacc0x0123; |
| 127 |
int32x4_t vacc5x4567 = vacc0x4567; |
| 128 |
int32x4_t vacc5x89AB = vacc0x89AB; |
| 129 |
int32x4_t vacc5xCDEF = vacc0xCDEF; |
| 130 |
int32x4_t vacc5xGHIJ = vacc0xGHIJ; |
| 131 |
int32x4_t vacc5xKLMN = vacc0xKLMN; |
| 132 |
int32x4_t vacc5xOPQR = vacc0xOPQR; |
| 133 |
int32x4_t vacc5xSTUV = vacc0xSTUV; |
| 134 |
int32x4_t vacc6x0123 = vacc0x0123; |
| 135 |
int32x4_t vacc6x4567 = vacc0x4567; |
| 136 |
int32x4_t vacc6x89AB = vacc0x89AB; |
| 137 |
int32x4_t vacc6xCDEF = vacc0xCDEF; |
| 138 |
int32x4_t vacc6xGHIJ = vacc0xGHIJ; |
| 139 |
int32x4_t vacc6xKLMN = vacc0xKLMN; |
| 140 |
int32x4_t vacc6xOPQR = vacc0xOPQR; |
| 141 |
int32x4_t vacc6xSTUV = vacc0xSTUV; |
| 142 |
int32x4_t vacc7x0123 = vacc0x0123; |
| 143 |
int32x4_t vacc7x4567 = vacc0x4567; |
| 144 |
int32x4_t vacc7x89AB = vacc0x89AB; |
| 145 |
int32x4_t vacc7xCDEF = vacc0xCDEF; |
| 146 |
int32x4_t vacc7xGHIJ = vacc0xGHIJ; |
| 147 |
int32x4_t vacc7xKLMN = vacc0xKLMN; |
| 148 |
int32x4_t vacc7xOPQR = vacc0xOPQR; |
| 149 |
int32x4_t vacc7xSTUV = vacc0xSTUV; |
| 150 |
|
| 151 |
size_t p = ks; |
| 152 |
do { |
| 153 |
const int8_t* restrict a0 = a[0]; |
| 154 |
if XNN_UNPREDICTABLE(a0 != zero) { |
| 155 |
a0 = (const int8_t*) ((uintptr_t) a0 + a_offset); |
| 156 |
} else { |
| 157 |
a0 = zero_data; |
| 158 |
} |
| 159 |
const int8_t* restrict a1 = a[1]; |
| 160 |
if XNN_UNPREDICTABLE(a1 != zero) { |
| 161 |
a1 = (const int8_t*) ((uintptr_t) a1 + a_offset); |
| 162 |
} else { |
| 163 |
a1 = zero_data; |
| 164 |
} |
| 165 |
const int8_t* restrict a2 = a[2]; |
| 166 |
if XNN_UNPREDICTABLE(a2 != zero) { |
| 167 |
a2 = (const int8_t*) ((uintptr_t) a2 + a_offset); |
| 168 |
} else { |
| 169 |
a2 = zero_data; |
| 170 |
} |
| 171 |
const int8_t* restrict a3 = a[3]; |
| 172 |
if XNN_UNPREDICTABLE(a3 != zero) { |
| 173 |
a3 = (const int8_t*) ((uintptr_t) a3 + a_offset); |
| 174 |
} else { |
| 175 |
a3 = zero_data; |
| 176 |
} |
| 177 |
const int8_t* restrict a4 = a[4]; |
| 178 |
if XNN_UNPREDICTABLE(a4 != zero) { |
| 179 |
a4 = (const int8_t*) ((uintptr_t) a4 + a_offset); |
| 180 |
} else { |
| 181 |
a4 = zero_data; |
| 182 |
} |
| 183 |
const int8_t* restrict a5 = a[5]; |
| 184 |
if XNN_UNPREDICTABLE(a5 != zero) { |
| 185 |
a5 = (const int8_t*) ((uintptr_t) a5 + a_offset); |
| 186 |
} else { |
| 187 |
a5 = zero_data; |
| 188 |
} |
| 189 |
const int8_t* restrict a6 = a[6]; |
| 190 |
if XNN_UNPREDICTABLE(a6 != zero) { |
| 191 |
a6 = (const int8_t*) ((uintptr_t) a6 + a_offset); |
| 192 |
} else { |
| 193 |
a6 = zero_data; |
| 194 |
} |
| 195 |
const int8_t* restrict a7 = a[7]; |
| 196 |
if XNN_UNPREDICTABLE(a7 != zero) { |
| 197 |
a7 = (const int8_t*) ((uintptr_t) a7 + a_offset); |
| 198 |
} else { |
| 199 |
a7 = zero_data; |
| 200 |
} |
| 201 |
a += 8; |
| 202 |
|
| 203 |
// Inner accumulation loop along the 32 columns. |
| 204 |
size_t k = kc; |
| 205 |
// 2x partial unrolled loop to load 8 bytes at a time. |
| 206 |
while (k >= 8 * sizeof(int8_t)) { |
| 207 |
// Load a 8x8 block of activations. |
| 208 |
const int8x8_t va0x01234567 = vld1_s8(a0); a0 += 8; |
| 209 |
const int8x8_t va1x01234567 = vld1_s8(a1); a1 += 8; |
| 210 |
const int8x8_t va2x01234567 = vld1_s8(a2); a2 += 8; |
| 211 |
const int8x8_t va3x01234567 = vld1_s8(a3); a3 += 8; |
| 212 |
const int8x8_t va4x01234567 = vld1_s8(a4); a4 += 8; |
| 213 |
const int8x8_t va5x01234567 = vld1_s8(a5); a5 += 8; |
| 214 |
const int8x8_t va6x01234567 = vld1_s8(a6); a6 += 8; |
| 215 |
const int8x8_t va7x01234567 = vld1_s8(a7); a7 += 8; |
| 216 |
|
| 217 |
// Load a 8x32 block of weights. |
| 218 |
const int8x16_t vb0123x0123 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 219 |
const int8x16_t vb0123x4567 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 220 |
const int8x16_t vb0123x89AB = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 221 |
const int8x16_t vb0123xCDEF = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 222 |
const int8x16_t vb0123xGHIJ = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 223 |
const int8x16_t vb0123xKLMN = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 224 |
const int8x16_t vb0123xOPQR = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 225 |
const int8x16_t vb0123xSTUV = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 226 |
const int8x16_t vb4567x0123 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 227 |
const int8x16_t vb4567x4567 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 228 |
const int8x16_t vb4567x89AB = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 229 |
const int8x16_t vb4567xCDEF = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 230 |
const int8x16_t vb4567xGHIJ = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 231 |
const int8x16_t vb4567xKLMN = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 232 |
const int8x16_t vb4567xOPQR = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 233 |
const int8x16_t vb4567xSTUV = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 234 |
|
| 235 |
// Multiply-accumulate: 8x8 * 8x32 --> 8x32. |
| 236 |
vacc0x0123 = vdotq_lane_s32(vacc0x0123, vb0123x0123, va0x01234567, 0); |
| 237 |
vacc0x4567 = vdotq_lane_s32(vacc0x4567, vb0123x4567, va0x01234567, 0); |
| 238 |
vacc0x89AB = vdotq_lane_s32(vacc0x89AB, vb0123x89AB, va0x01234567, 0); |
| 239 |
vacc0xCDEF = vdotq_lane_s32(vacc0xCDEF, vb0123xCDEF, va0x01234567, 0); |
| 240 |
vacc0xGHIJ = vdotq_lane_s32(vacc0xGHIJ, vb0123xGHIJ, va0x01234567, 0); |
| 241 |
vacc0xKLMN = vdotq_lane_s32(vacc0xKLMN, vb0123xKLMN, va0x01234567, 0); |
| 242 |
vacc0xOPQR = vdotq_lane_s32(vacc0xOPQR, vb0123xOPQR, va0x01234567, 0); |
| 243 |
vacc0xSTUV = vdotq_lane_s32(vacc0xSTUV, vb0123xSTUV, va0x01234567, 0); |
| 244 |
vacc1x0123 = vdotq_lane_s32(vacc1x0123, vb0123x0123, va1x01234567, 0); |
| 245 |
vacc1x4567 = vdotq_lane_s32(vacc1x4567, vb0123x4567, va1x01234567, 0); |
| 246 |
vacc1x89AB = vdotq_lane_s32(vacc1x89AB, vb0123x89AB, va1x01234567, 0); |
| 247 |
vacc1xCDEF = vdotq_lane_s32(vacc1xCDEF, vb0123xCDEF, va1x01234567, 0); |
| 248 |
vacc1xGHIJ = vdotq_lane_s32(vacc1xGHIJ, vb0123xGHIJ, va1x01234567, 0); |
| 249 |
vacc1xKLMN = vdotq_lane_s32(vacc1xKLMN, vb0123xKLMN, va1x01234567, 0); |
| 250 |
vacc1xOPQR = vdotq_lane_s32(vacc1xOPQR, vb0123xOPQR, va1x01234567, 0); |
| 251 |
vacc1xSTUV = vdotq_lane_s32(vacc1xSTUV, vb0123xSTUV, va1x01234567, 0); |
| 252 |
vacc2x0123 = vdotq_lane_s32(vacc2x0123, vb0123x0123, va2x01234567, 0); |
| 253 |
vacc2x4567 = vdotq_lane_s32(vacc2x4567, vb0123x4567, va2x01234567, 0); |
| 254 |
vacc2x89AB = vdotq_lane_s32(vacc2x89AB, vb0123x89AB, va2x01234567, 0); |
| 255 |
vacc2xCDEF = vdotq_lane_s32(vacc2xCDEF, vb0123xCDEF, va2x01234567, 0); |
| 256 |
vacc2xGHIJ = vdotq_lane_s32(vacc2xGHIJ, vb0123xGHIJ, va2x01234567, 0); |
| 257 |
vacc2xKLMN = vdotq_lane_s32(vacc2xKLMN, vb0123xKLMN, va2x01234567, 0); |
| 258 |
vacc2xOPQR = vdotq_lane_s32(vacc2xOPQR, vb0123xOPQR, va2x01234567, 0); |
| 259 |
vacc2xSTUV = vdotq_lane_s32(vacc2xSTUV, vb0123xSTUV, va2x01234567, 0); |
| 260 |
vacc3x0123 = vdotq_lane_s32(vacc3x0123, vb0123x0123, va3x01234567, 0); |
| 261 |
vacc3x4567 = vdotq_lane_s32(vacc3x4567, vb0123x4567, va3x01234567, 0); |
| 262 |
vacc3x89AB = vdotq_lane_s32(vacc3x89AB, vb0123x89AB, va3x01234567, 0); |
| 263 |
vacc3xCDEF = vdotq_lane_s32(vacc3xCDEF, vb0123xCDEF, va3x01234567, 0); |
| 264 |
vacc3xGHIJ = vdotq_lane_s32(vacc3xGHIJ, vb0123xGHIJ, va3x01234567, 0); |
| 265 |
vacc3xKLMN = vdotq_lane_s32(vacc3xKLMN, vb0123xKLMN, va3x01234567, 0); |
| 266 |
vacc3xOPQR = vdotq_lane_s32(vacc3xOPQR, vb0123xOPQR, va3x01234567, 0); |
| 267 |
vacc3xSTUV = vdotq_lane_s32(vacc3xSTUV, vb0123xSTUV, va3x01234567, 0); |
| 268 |
vacc4x0123 = vdotq_lane_s32(vacc4x0123, vb0123x0123, va4x01234567, 0); |
| 269 |
vacc4x4567 = vdotq_lane_s32(vacc4x4567, vb0123x4567, va4x01234567, 0); |
| 270 |
vacc4x89AB = vdotq_lane_s32(vacc4x89AB, vb0123x89AB, va4x01234567, 0); |
| 271 |
vacc4xCDEF = vdotq_lane_s32(vacc4xCDEF, vb0123xCDEF, va4x01234567, 0); |
| 272 |
vacc4xGHIJ = vdotq_lane_s32(vacc4xGHIJ, vb0123xGHIJ, va4x01234567, 0); |
| 273 |
vacc4xKLMN = vdotq_lane_s32(vacc4xKLMN, vb0123xKLMN, va4x01234567, 0); |
| 274 |
vacc4xOPQR = vdotq_lane_s32(vacc4xOPQR, vb0123xOPQR, va4x01234567, 0); |
| 275 |
vacc4xSTUV = vdotq_lane_s32(vacc4xSTUV, vb0123xSTUV, va4x01234567, 0); |
| 276 |
vacc5x0123 = vdotq_lane_s32(vacc5x0123, vb0123x0123, va5x01234567, 0); |
| 277 |
vacc5x4567 = vdotq_lane_s32(vacc5x4567, vb0123x4567, va5x01234567, 0); |
| 278 |
vacc5x89AB = vdotq_lane_s32(vacc5x89AB, vb0123x89AB, va5x01234567, 0); |
| 279 |
vacc5xCDEF = vdotq_lane_s32(vacc5xCDEF, vb0123xCDEF, va5x01234567, 0); |
| 280 |
vacc5xGHIJ = vdotq_lane_s32(vacc5xGHIJ, vb0123xGHIJ, va5x01234567, 0); |
| 281 |
vacc5xKLMN = vdotq_lane_s32(vacc5xKLMN, vb0123xKLMN, va5x01234567, 0); |
| 282 |
vacc5xOPQR = vdotq_lane_s32(vacc5xOPQR, vb0123xOPQR, va5x01234567, 0); |
| 283 |
vacc5xSTUV = vdotq_lane_s32(vacc5xSTUV, vb0123xSTUV, va5x01234567, 0); |
| 284 |
vacc6x0123 = vdotq_lane_s32(vacc6x0123, vb0123x0123, va6x01234567, 0); |
| 285 |
vacc6x4567 = vdotq_lane_s32(vacc6x4567, vb0123x4567, va6x01234567, 0); |
| 286 |
vacc6x89AB = vdotq_lane_s32(vacc6x89AB, vb0123x89AB, va6x01234567, 0); |
| 287 |
vacc6xCDEF = vdotq_lane_s32(vacc6xCDEF, vb0123xCDEF, va6x01234567, 0); |
| 288 |
vacc6xGHIJ = vdotq_lane_s32(vacc6xGHIJ, vb0123xGHIJ, va6x01234567, 0); |
| 289 |
vacc6xKLMN = vdotq_lane_s32(vacc6xKLMN, vb0123xKLMN, va6x01234567, 0); |
| 290 |
vacc6xOPQR = vdotq_lane_s32(vacc6xOPQR, vb0123xOPQR, va6x01234567, 0); |
| 291 |
vacc6xSTUV = vdotq_lane_s32(vacc6xSTUV, vb0123xSTUV, va6x01234567, 0); |
| 292 |
vacc7x0123 = vdotq_lane_s32(vacc7x0123, vb0123x0123, va7x01234567, 0); |
| 293 |
vacc7x4567 = vdotq_lane_s32(vacc7x4567, vb0123x4567, va7x01234567, 0); |
| 294 |
vacc7x89AB = vdotq_lane_s32(vacc7x89AB, vb0123x89AB, va7x01234567, 0); |
| 295 |
vacc7xCDEF = vdotq_lane_s32(vacc7xCDEF, vb0123xCDEF, va7x01234567, 0); |
| 296 |
vacc7xGHIJ = vdotq_lane_s32(vacc7xGHIJ, vb0123xGHIJ, va7x01234567, 0); |
| 297 |
vacc7xKLMN = vdotq_lane_s32(vacc7xKLMN, vb0123xKLMN, va7x01234567, 0); |
| 298 |
vacc7xOPQR = vdotq_lane_s32(vacc7xOPQR, vb0123xOPQR, va7x01234567, 0); |
| 299 |
vacc7xSTUV = vdotq_lane_s32(vacc7xSTUV, vb0123xSTUV, va7x01234567, 0); |
| 300 |
vacc0x0123 = vdotq_lane_s32(vacc0x0123, vb4567x0123, va0x01234567, 1); |
| 301 |
vacc0x4567 = vdotq_lane_s32(vacc0x4567, vb4567x4567, va0x01234567, 1); |
| 302 |
vacc0x89AB = vdotq_lane_s32(vacc0x89AB, vb4567x89AB, va0x01234567, 1); |
| 303 |
vacc0xCDEF = vdotq_lane_s32(vacc0xCDEF, vb4567xCDEF, va0x01234567, 1); |
| 304 |
vacc0xGHIJ = vdotq_lane_s32(vacc0xGHIJ, vb4567xGHIJ, va0x01234567, 1); |
| 305 |
vacc0xKLMN = vdotq_lane_s32(vacc0xKLMN, vb4567xKLMN, va0x01234567, 1); |
| 306 |
vacc0xOPQR = vdotq_lane_s32(vacc0xOPQR, vb4567xOPQR, va0x01234567, 1); |
| 307 |
vacc0xSTUV = vdotq_lane_s32(vacc0xSTUV, vb4567xSTUV, va0x01234567, 1); |
| 308 |
vacc1x0123 = vdotq_lane_s32(vacc1x0123, vb4567x0123, va1x01234567, 1); |
| 309 |
vacc1x4567 = vdotq_lane_s32(vacc1x4567, vb4567x4567, va1x01234567, 1); |
| 310 |
vacc1x89AB = vdotq_lane_s32(vacc1x89AB, vb4567x89AB, va1x01234567, 1); |
| 311 |
vacc1xCDEF = vdotq_lane_s32(vacc1xCDEF, vb4567xCDEF, va1x01234567, 1); |
| 312 |
vacc1xGHIJ = vdotq_lane_s32(vacc1xGHIJ, vb4567xGHIJ, va1x01234567, 1); |
| 313 |
vacc1xKLMN = vdotq_lane_s32(vacc1xKLMN, vb4567xKLMN, va1x01234567, 1); |
| 314 |
vacc1xOPQR = vdotq_lane_s32(vacc1xOPQR, vb4567xOPQR, va1x01234567, 1); |
| 315 |
vacc1xSTUV = vdotq_lane_s32(vacc1xSTUV, vb4567xSTUV, va1x01234567, 1); |
| 316 |
vacc2x0123 = vdotq_lane_s32(vacc2x0123, vb4567x0123, va2x01234567, 1); |
| 317 |
vacc2x4567 = vdotq_lane_s32(vacc2x4567, vb4567x4567, va2x01234567, 1); |
| 318 |
vacc2x89AB = vdotq_lane_s32(vacc2x89AB, vb4567x89AB, va2x01234567, 1); |
| 319 |
vacc2xCDEF = vdotq_lane_s32(vacc2xCDEF, vb4567xCDEF, va2x01234567, 1); |
| 320 |
vacc2xGHIJ = vdotq_lane_s32(vacc2xGHIJ, vb4567xGHIJ, va2x01234567, 1); |
| 321 |
vacc2xKLMN = vdotq_lane_s32(vacc2xKLMN, vb4567xKLMN, va2x01234567, 1); |
| 322 |
vacc2xOPQR = vdotq_lane_s32(vacc2xOPQR, vb4567xOPQR, va2x01234567, 1); |
| 323 |
vacc2xSTUV = vdotq_lane_s32(vacc2xSTUV, vb4567xSTUV, va2x01234567, 1); |
| 324 |
vacc3x0123 = vdotq_lane_s32(vacc3x0123, vb4567x0123, va3x01234567, 1); |
| 325 |
vacc3x4567 = vdotq_lane_s32(vacc3x4567, vb4567x4567, va3x01234567, 1); |
| 326 |
vacc3x89AB = vdotq_lane_s32(vacc3x89AB, vb4567x89AB, va3x01234567, 1); |
| 327 |
vacc3xCDEF = vdotq_lane_s32(vacc3xCDEF, vb4567xCDEF, va3x01234567, 1); |
| 328 |
vacc3xGHIJ = vdotq_lane_s32(vacc3xGHIJ, vb4567xGHIJ, va3x01234567, 1); |
| 329 |
vacc3xKLMN = vdotq_lane_s32(vacc3xKLMN, vb4567xKLMN, va3x01234567, 1); |
| 330 |
vacc3xOPQR = vdotq_lane_s32(vacc3xOPQR, vb4567xOPQR, va3x01234567, 1); |
| 331 |
vacc3xSTUV = vdotq_lane_s32(vacc3xSTUV, vb4567xSTUV, va3x01234567, 1); |
| 332 |
vacc4x0123 = vdotq_lane_s32(vacc4x0123, vb4567x0123, va4x01234567, 1); |
| 333 |
vacc4x4567 = vdotq_lane_s32(vacc4x4567, vb4567x4567, va4x01234567, 1); |
| 334 |
vacc4x89AB = vdotq_lane_s32(vacc4x89AB, vb4567x89AB, va4x01234567, 1); |
| 335 |
vacc4xCDEF = vdotq_lane_s32(vacc4xCDEF, vb4567xCDEF, va4x01234567, 1); |
| 336 |
vacc4xGHIJ = vdotq_lane_s32(vacc4xGHIJ, vb4567xGHIJ, va4x01234567, 1); |
| 337 |
vacc4xKLMN = vdotq_lane_s32(vacc4xKLMN, vb4567xKLMN, va4x01234567, 1); |
| 338 |
vacc4xOPQR = vdotq_lane_s32(vacc4xOPQR, vb4567xOPQR, va4x01234567, 1); |
| 339 |
vacc4xSTUV = vdotq_lane_s32(vacc4xSTUV, vb4567xSTUV, va4x01234567, 1); |
| 340 |
vacc5x0123 = vdotq_lane_s32(vacc5x0123, vb4567x0123, va5x01234567, 1); |
| 341 |
vacc5x4567 = vdotq_lane_s32(vacc5x4567, vb4567x4567, va5x01234567, 1); |
| 342 |
vacc5x89AB = vdotq_lane_s32(vacc5x89AB, vb4567x89AB, va5x01234567, 1); |
| 343 |
vacc5xCDEF = vdotq_lane_s32(vacc5xCDEF, vb4567xCDEF, va5x01234567, 1); |
| 344 |
vacc5xGHIJ = vdotq_lane_s32(vacc5xGHIJ, vb4567xGHIJ, va5x01234567, 1); |
| 345 |
vacc5xKLMN = vdotq_lane_s32(vacc5xKLMN, vb4567xKLMN, va5x01234567, 1); |
| 346 |
vacc5xOPQR = vdotq_lane_s32(vacc5xOPQR, vb4567xOPQR, va5x01234567, 1); |
| 347 |
vacc5xSTUV = vdotq_lane_s32(vacc5xSTUV, vb4567xSTUV, va5x01234567, 1); |
| 348 |
vacc6x0123 = vdotq_lane_s32(vacc6x0123, vb4567x0123, va6x01234567, 1); |
| 349 |
vacc6x4567 = vdotq_lane_s32(vacc6x4567, vb4567x4567, va6x01234567, 1); |
| 350 |
vacc6x89AB = vdotq_lane_s32(vacc6x89AB, vb4567x89AB, va6x01234567, 1); |
| 351 |
vacc6xCDEF = vdotq_lane_s32(vacc6xCDEF, vb4567xCDEF, va6x01234567, 1); |
| 352 |
vacc6xGHIJ = vdotq_lane_s32(vacc6xGHIJ, vb4567xGHIJ, va6x01234567, 1); |
| 353 |
vacc6xKLMN = vdotq_lane_s32(vacc6xKLMN, vb4567xKLMN, va6x01234567, 1); |
| 354 |
vacc6xOPQR = vdotq_lane_s32(vacc6xOPQR, vb4567xOPQR, va6x01234567, 1); |
| 355 |
vacc6xSTUV = vdotq_lane_s32(vacc6xSTUV, vb4567xSTUV, va6x01234567, 1); |
| 356 |
vacc7x0123 = vdotq_lane_s32(vacc7x0123, vb4567x0123, va7x01234567, 1); |
| 357 |
vacc7x4567 = vdotq_lane_s32(vacc7x4567, vb4567x4567, va7x01234567, 1); |
| 358 |
vacc7x89AB = vdotq_lane_s32(vacc7x89AB, vb4567x89AB, va7x01234567, 1); |
| 359 |
vacc7xCDEF = vdotq_lane_s32(vacc7xCDEF, vb4567xCDEF, va7x01234567, 1); |
| 360 |
vacc7xGHIJ = vdotq_lane_s32(vacc7xGHIJ, vb4567xGHIJ, va7x01234567, 1); |
| 361 |
vacc7xKLMN = vdotq_lane_s32(vacc7xKLMN, vb4567xKLMN, va7x01234567, 1); |
| 362 |
vacc7xOPQR = vdotq_lane_s32(vacc7xOPQR, vb4567xOPQR, va7x01234567, 1); |
| 363 |
vacc7xSTUV = vdotq_lane_s32(vacc7xSTUV, vb4567xSTUV, va7x01234567, 1); |
| 364 |
|
| 365 |
k -= 8 * sizeof(int8_t); |
| 366 |
} |
| 367 |
// Handle up to 4 final positions of `k` |
| 368 |
if XNN_UNLIKELY(k != 0) { |
| 369 |
// Load a 8x4 block of activations. |
| 370 |
const int8x8_t va0x01234567 = vld1_s8(a0); |
| 371 |
const int8x8_t va1x01234567 = vld1_s8(a1); |
| 372 |
const int8x8_t va2x01234567 = vld1_s8(a2); |
| 373 |
const int8x8_t va3x01234567 = vld1_s8(a3); |
| 374 |
const int8x8_t va4x01234567 = vld1_s8(a4); |
| 375 |
const int8x8_t va5x01234567 = vld1_s8(a5); |
| 376 |
const int8x8_t va6x01234567 = vld1_s8(a6); |
| 377 |
const int8x8_t va7x01234567 = vld1_s8(a7); |
| 378 |
|
| 379 |
// Load a 4x32 block of weights. |
| 380 |
const int8x16_t vb0123x0123 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 381 |
const int8x16_t vb0123x4567 = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 382 |
const int8x16_t vb0123x89AB = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 383 |
const int8x16_t vb0123xCDEF = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 384 |
const int8x16_t vb0123xGHIJ = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 385 |
const int8x16_t vb0123xKLMN = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 386 |
const int8x16_t vb0123xOPQR = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 387 |
const int8x16_t vb0123xSTUV = vld1q_s8(w); w = (const int8_t*) w + 16; |
| 388 |
|
| 389 |
// Multiply-accumulate: 8x4 * 4x32 --> 8x32. |
| 390 |
vacc0x0123 = vdotq_lane_s32(vacc0x0123, vb0123x0123, va0x01234567, 0); |
| 391 |
vacc0x4567 = vdotq_lane_s32(vacc0x4567, vb0123x4567, va0x01234567, 0); |
| 392 |
vacc0x89AB = vdotq_lane_s32(vacc0x89AB, vb0123x89AB, va0x01234567, 0); |
| 393 |
vacc0xCDEF = vdotq_lane_s32(vacc0xCDEF, vb0123xCDEF, va0x01234567, 0); |
| 394 |
vacc0xGHIJ = vdotq_lane_s32(vacc0xGHIJ, vb0123xGHIJ, va0x01234567, 0); |
| 395 |
vacc0xKLMN = vdotq_lane_s32(vacc0xKLMN, vb0123xKLMN, va0x01234567, 0); |
| 396 |
vacc0xOPQR = vdotq_lane_s32(vacc0xOPQR, vb0123xOPQR, va0x01234567, 0); |
| 397 |
vacc0xSTUV = vdotq_lane_s32(vacc0xSTUV, vb0123xSTUV, va0x01234567, 0); |
| 398 |
vacc1x0123 = vdotq_lane_s32(vacc1x0123, vb0123x0123, va1x01234567, 0); |
| 399 |
vacc1x4567 = vdotq_lane_s32(vacc1x4567, vb0123x4567, va1x01234567, 0); |
| 400 |
vacc1x89AB = vdotq_lane_s32(vacc1x89AB, vb0123x89AB, va1x01234567, 0); |
| 401 |
vacc1xCDEF = vdotq_lane_s32(vacc1xCDEF, vb0123xCDEF, va1x01234567, 0); |
| 402 |
vacc1xGHIJ = vdotq_lane_s32(vacc1xGHIJ, vb0123xGHIJ, va1x01234567, 0); |
| 403 |
vacc1xKLMN = vdotq_lane_s32(vacc1xKLMN, vb0123xKLMN, va1x01234567, 0); |
| 404 |
vacc1xOPQR = vdotq_lane_s32(vacc1xOPQR, vb0123xOPQR, va1x01234567, 0); |
| 405 |
vacc1xSTUV = vdotq_lane_s32(vacc1xSTUV, vb0123xSTUV, va1x01234567, 0); |
| 406 |
vacc2x0123 = vdotq_lane_s32(vacc2x0123, vb0123x0123, va2x01234567, 0); |
| 407 |
vacc2x4567 = vdotq_lane_s32(vacc2x4567, vb0123x4567, va2x01234567, 0); |
| 408 |
vacc2x89AB = vdotq_lane_s32(vacc2x89AB, vb0123x89AB, va2x01234567, 0); |
| 409 |
vacc2xCDEF = vdotq_lane_s32(vacc2xCDEF, vb0123xCDEF, va2x01234567, 0); |
| 410 |
vacc2xGHIJ = vdotq_lane_s32(vacc2xGHIJ, vb0123xGHIJ, va2x01234567, 0); |
| 411 |
vacc2xKLMN = vdotq_lane_s32(vacc2xKLMN, vb0123xKLMN, va2x01234567, 0); |
| 412 |
vacc2xOPQR = vdotq_lane_s32(vacc2xOPQR, vb0123xOPQR, va2x01234567, 0); |
| 413 |
vacc2xSTUV = vdotq_lane_s32(vacc2xSTUV, vb0123xSTUV, va2x01234567, 0); |
| 414 |
vacc3x0123 = vdotq_lane_s32(vacc3x0123, vb0123x0123, va3x01234567, 0); |
| 415 |
vacc3x4567 = vdotq_lane_s32(vacc3x4567, vb0123x4567, va3x01234567, 0); |
| 416 |
vacc3x89AB = vdotq_lane_s32(vacc3x89AB, vb0123x89AB, va3x01234567, 0); |
| 417 |
vacc3xCDEF = vdotq_lane_s32(vacc3xCDEF, vb0123xCDEF, va3x01234567, 0); |
| 418 |
vacc3xGHIJ = vdotq_lane_s32(vacc3xGHIJ, vb0123xGHIJ, va3x01234567, 0); |
| 419 |
vacc3xKLMN = vdotq_lane_s32(vacc3xKLMN, vb0123xKLMN, va3x01234567, 0); |
| 420 |
vacc3xOPQR = vdotq_lane_s32(vacc3xOPQR, vb0123xOPQR, va3x01234567, 0); |
| 421 |
vacc3xSTUV = vdotq_lane_s32(vacc3xSTUV, vb0123xSTUV, va3x01234567, 0); |
| 422 |
vacc4x0123 = vdotq_lane_s32(vacc4x0123, vb0123x0123, va4x01234567, 0); |
| 423 |
vacc4x4567 = vdotq_lane_s32(vacc4x4567, vb0123x4567, va4x01234567, 0); |
| 424 |
vacc4x89AB = vdotq_lane_s32(vacc4x89AB, vb0123x89AB, va4x01234567, 0); |
| 425 |
vacc4xCDEF = vdotq_lane_s32(vacc4xCDEF, vb0123xCDEF, va4x01234567, 0); |
| 426 |
vacc4xGHIJ = vdotq_lane_s32(vacc4xGHIJ, vb0123xGHIJ, va4x01234567, 0); |
| 427 |
vacc4xKLMN = vdotq_lane_s32(vacc4xKLMN, vb0123xKLMN, va4x01234567, 0); |
| 428 |
vacc4xOPQR = vdotq_lane_s32(vacc4xOPQR, vb0123xOPQR, va4x01234567, 0); |
| 429 |
vacc4xSTUV = vdotq_lane_s32(vacc4xSTUV, vb0123xSTUV, va4x01234567, 0); |
| 430 |
vacc5x0123 = vdotq_lane_s32(vacc5x0123, vb0123x0123, va5x01234567, 0); |
| 431 |
vacc5x4567 = vdotq_lane_s32(vacc5x4567, vb0123x4567, va5x01234567, 0); |
| 432 |
vacc5x89AB = vdotq_lane_s32(vacc5x89AB, vb0123x89AB, va5x01234567, 0); |
| 433 |
vacc5xCDEF = vdotq_lane_s32(vacc5xCDEF, vb0123xCDEF, va5x01234567, 0); |
| 434 |
vacc5xGHIJ = vdotq_lane_s32(vacc5xGHIJ, vb0123xGHIJ, va5x01234567, 0); |
| 435 |
vacc5xKLMN = vdotq_lane_s32(vacc5xKLMN, vb0123xKLMN, va5x01234567, 0); |
| 436 |
vacc5xOPQR = vdotq_lane_s32(vacc5xOPQR, vb0123xOPQR, va5x01234567, 0); |
| 437 |
vacc5xSTUV = vdotq_lane_s32(vacc5xSTUV, vb0123xSTUV, va5x01234567, 0); |
| 438 |
vacc6x0123 = vdotq_lane_s32(vacc6x0123, vb0123x0123, va6x01234567, 0); |
| 439 |
vacc6x4567 = vdotq_lane_s32(vacc6x4567, vb0123x4567, va6x01234567, 0); |
| 440 |
vacc6x89AB = vdotq_lane_s32(vacc6x89AB, vb0123x89AB, va6x01234567, 0); |
| 441 |
vacc6xCDEF = vdotq_lane_s32(vacc6xCDEF, vb0123xCDEF, va6x01234567, 0); |
| 442 |
vacc6xGHIJ = vdotq_lane_s32(vacc6xGHIJ, vb0123xGHIJ, va6x01234567, 0); |
| 443 |
vacc6xKLMN = vdotq_lane_s32(vacc6xKLMN, vb0123xKLMN, va6x01234567, 0); |
| 444 |
vacc6xOPQR = vdotq_lane_s32(vacc6xOPQR, vb0123xOPQR, va6x01234567, 0); |
| 445 |
vacc6xSTUV = vdotq_lane_s32(vacc6xSTUV, vb0123xSTUV, va6x01234567, 0); |
| 446 |
vacc7x0123 = vdotq_lane_s32(vacc7x0123, vb0123x0123, va7x01234567, 0); |
| 447 |
vacc7x4567 = vdotq_lane_s32(vacc7x4567, vb0123x4567, va7x01234567, 0); |
| 448 |
vacc7x89AB = vdotq_lane_s32(vacc7x89AB, vb0123x89AB, va7x01234567, 0); |
| 449 |
vacc7xCDEF = vdotq_lane_s32(vacc7xCDEF, vb0123xCDEF, va7x01234567, 0); |
| 450 |
vacc7xGHIJ = vdotq_lane_s32(vacc7xGHIJ, vb0123xGHIJ, va7x01234567, 0); |
| 451 |
vacc7xKLMN = vdotq_lane_s32(vacc7xKLMN, vb0123xKLMN, va7x01234567, 0); |
| 452 |
vacc7xOPQR = vdotq_lane_s32(vacc7xOPQR, vb0123xOPQR, va7x01234567, 0); |
| 453 |
vacc7xSTUV = vdotq_lane_s32(vacc7xSTUV, vb0123xSTUV, va7x01234567, 0); |
| 454 |
} |
| 455 |
p -= 8 * sizeof(void*); |
| 456 |
} while (p != 0); |
| 457 |
|
| 458 |
float32x4_t vout0x0123 = vcvtq_f32_s32(vacc0x0123); |
| 459 |
float32x4_t vout0x4567 = vcvtq_f32_s32(vacc0x4567); |
| 460 |
float32x4_t vout0x89AB = vcvtq_f32_s32(vacc0x89AB); |
| 461 |
float32x4_t vout0xCDEF = vcvtq_f32_s32(vacc0xCDEF); |
| 462 |
float32x4_t vout0xGHIJ = vcvtq_f32_s32(vacc0xGHIJ); |
| 463 |
float32x4_t vout0xKLMN = vcvtq_f32_s32(vacc0xKLMN); |
| 464 |
float32x4_t vout0xOPQR = vcvtq_f32_s32(vacc0xOPQR); |
| 465 |
float32x4_t vout0xSTUV = vcvtq_f32_s32(vacc0xSTUV); |
| 466 |
float32x4_t vout1x0123 = vcvtq_f32_s32(vacc1x0123); |
| 467 |
float32x4_t vout1x4567 = vcvtq_f32_s32(vacc1x4567); |
| 468 |
float32x4_t vout1x89AB = vcvtq_f32_s32(vacc1x89AB); |
| 469 |
float32x4_t vout1xCDEF = vcvtq_f32_s32(vacc1xCDEF); |
| 470 |
float32x4_t vout1xGHIJ = vcvtq_f32_s32(vacc1xGHIJ); |
| 471 |
float32x4_t vout1xKLMN = vcvtq_f32_s32(vacc1xKLMN); |
| 472 |
float32x4_t vout1xOPQR = vcvtq_f32_s32(vacc1xOPQR); |
| 473 |
float32x4_t vout1xSTUV = vcvtq_f32_s32(vacc1xSTUV); |
| 474 |
float32x4_t vout2x0123 = vcvtq_f32_s32(vacc2x0123); |
| 475 |
float32x4_t vout2x4567 = vcvtq_f32_s32(vacc2x4567); |
| 476 |
float32x4_t vout2x89AB = vcvtq_f32_s32(vacc2x89AB); |
| 477 |
float32x4_t vout2xCDEF = vcvtq_f32_s32(vacc2xCDEF); |
| 478 |
float32x4_t vout2xGHIJ = vcvtq_f32_s32(vacc2xGHIJ); |
| 479 |
float32x4_t vout2xKLMN = vcvtq_f32_s32(vacc2xKLMN); |
| 480 |
float32x4_t vout2xOPQR = vcvtq_f32_s32(vacc2xOPQR); |
| 481 |
float32x4_t vout2xSTUV = vcvtq_f32_s32(vacc2xSTUV); |
| 482 |
float32x4_t vout3x0123 = vcvtq_f32_s32(vacc3x0123); |
| 483 |
float32x4_t vout3x4567 = vcvtq_f32_s32(vacc3x4567); |
| 484 |
float32x4_t vout3x89AB = vcvtq_f32_s32(vacc3x89AB); |
| 485 |
float32x4_t vout3xCDEF = vcvtq_f32_s32(vacc3xCDEF); |
| 486 |
float32x4_t vout3xGHIJ = vcvtq_f32_s32(vacc3xGHIJ); |
| 487 |
float32x4_t vout3xKLMN = vcvtq_f32_s32(vacc3xKLMN); |
| 488 |
float32x4_t vout3xOPQR = vcvtq_f32_s32(vacc3xOPQR); |
| 489 |
float32x4_t vout3xSTUV = vcvtq_f32_s32(vacc3xSTUV); |
| 490 |
float32x4_t vout4x0123 = vcvtq_f32_s32(vacc4x0123); |
| 491 |
float32x4_t vout4x4567 = vcvtq_f32_s32(vacc4x4567); |
| 492 |
float32x4_t vout4x89AB = vcvtq_f32_s32(vacc4x89AB); |
| 493 |
float32x4_t vout4xCDEF = vcvtq_f32_s32(vacc4xCDEF); |
| 494 |
float32x4_t vout4xGHIJ = vcvtq_f32_s32(vacc4xGHIJ); |
| 495 |
float32x4_t vout4xKLMN = vcvtq_f32_s32(vacc4xKLMN); |
| 496 |
float32x4_t vout4xOPQR = vcvtq_f32_s32(vacc4xOPQR); |
| 497 |
float32x4_t vout4xSTUV = vcvtq_f32_s32(vacc4xSTUV); |
| 498 |
float32x4_t vout5x0123 = vcvtq_f32_s32(vacc5x0123); |
| 499 |
float32x4_t vout5x4567 = vcvtq_f32_s32(vacc5x4567); |
| 500 |
float32x4_t vout5x89AB = vcvtq_f32_s32(vacc5x89AB); |
| 501 |
float32x4_t vout5xCDEF = vcvtq_f32_s32(vacc5xCDEF); |
| 502 |
float32x4_t vout5xGHIJ = vcvtq_f32_s32(vacc5xGHIJ); |
| 503 |
float32x4_t vout5xKLMN = vcvtq_f32_s32(vacc5xKLMN); |
| 504 |
float32x4_t vout5xOPQR = vcvtq_f32_s32(vacc5xOPQR); |
| 505 |
float32x4_t vout5xSTUV = vcvtq_f32_s32(vacc5xSTUV); |
| 506 |
float32x4_t vout6x0123 = vcvtq_f32_s32(vacc6x0123); |
| 507 |
float32x4_t vout6x4567 = vcvtq_f32_s32(vacc6x4567); |
| 508 |
float32x4_t vout6x89AB = vcvtq_f32_s32(vacc6x89AB); |
| 509 |
float32x4_t vout6xCDEF = vcvtq_f32_s32(vacc6xCDEF); |
| 510 |
float32x4_t vout6xGHIJ = vcvtq_f32_s32(vacc6xGHIJ); |
| 511 |
float32x4_t vout6xKLMN = vcvtq_f32_s32(vacc6xKLMN); |
| 512 |
float32x4_t vout6xOPQR = vcvtq_f32_s32(vacc6xOPQR); |
| 513 |
float32x4_t vout6xSTUV = vcvtq_f32_s32(vacc6xSTUV); |
| 514 |
float32x4_t vout7x0123 = vcvtq_f32_s32(vacc7x0123); |
| 515 |
float32x4_t vout7x4567 = vcvtq_f32_s32(vacc7x4567); |
| 516 |
float32x4_t vout7x89AB = vcvtq_f32_s32(vacc7x89AB); |
| 517 |
float32x4_t vout7xCDEF = vcvtq_f32_s32(vacc7xCDEF); |
| 518 |
float32x4_t vout7xGHIJ = vcvtq_f32_s32(vacc7xGHIJ); |
| 519 |
float32x4_t vout7xKLMN = vcvtq_f32_s32(vacc7xKLMN); |
| 520 |
float32x4_t vout7xOPQR = vcvtq_f32_s32(vacc7xOPQR); |
| 521 |
float32x4_t vout7xSTUV = vcvtq_f32_s32(vacc7xSTUV); |
| 522 |
const float32x4_t vinput_scale = vld1q_dup_f32(&quantization_params->inv_scale); |
| 523 |
vout0x0123 = vmulq_f32(vout0x0123, vinput_scale); |
| 524 |
vout0x4567 = vmulq_f32(vout0x4567, vinput_scale); |
| 525 |
vout0x89AB = vmulq_f32(vout0x89AB, vinput_scale); |
| 526 |
vout0xCDEF = vmulq_f32(vout0xCDEF, vinput_scale); |
| 527 |
vout0xGHIJ = vmulq_f32(vout0xGHIJ, vinput_scale); |
| 528 |
vout0xKLMN = vmulq_f32(vout0xKLMN, vinput_scale); |
| 529 |
vout0xOPQR = vmulq_f32(vout0xOPQR, vinput_scale); |
| 530 |
vout0xSTUV = vmulq_f32(vout0xSTUV, vinput_scale); |
| 531 |
vout1x0123 = vmulq_f32(vout1x0123, vinput_scale); |
| 532 |
vout1x4567 = vmulq_f32(vout1x4567, vinput_scale); |
| 533 |
vout1x89AB = vmulq_f32(vout1x89AB, vinput_scale); |
| 534 |
vout1xCDEF = vmulq_f32(vout1xCDEF, vinput_scale); |
| 535 |
vout1xGHIJ = vmulq_f32(vout1xGHIJ, vinput_scale); |
| 536 |
vout1xKLMN = vmulq_f32(vout1xKLMN, vinput_scale); |
| 537 |
vout1xOPQR = vmulq_f32(vout1xOPQR, vinput_scale); |
| 538 |
vout1xSTUV = vmulq_f32(vout1xSTUV, vinput_scale); |
| 539 |
vout2x0123 = vmulq_f32(vout2x0123, vinput_scale); |
| 540 |
vout2x4567 = vmulq_f32(vout2x4567, vinput_scale); |
| 541 |
vout2x89AB = vmulq_f32(vout2x89AB, vinput_scale); |
| 542 |
vout2xCDEF = vmulq_f32(vout2xCDEF, vinput_scale); |
| 543 |
vout2xGHIJ = vmulq_f32(vout2xGHIJ, vinput_scale); |
| 544 |
vout2xKLMN = vmulq_f32(vout2xKLMN, vinput_scale); |
| 545 |
vout2xOPQR = vmulq_f32(vout2xOPQR, vinput_scale); |
| 546 |
vout2xSTUV = vmulq_f32(vout2xSTUV, vinput_scale); |
| 547 |
vout3x0123 = vmulq_f32(vout3x0123, vinput_scale); |
| 548 |
vout3x4567 = vmulq_f32(vout3x4567, vinput_scale); |
| 549 |
vout3x89AB = vmulq_f32(vout3x89AB, vinput_scale); |
| 550 |
vout3xCDEF = vmulq_f32(vout3xCDEF, vinput_scale); |
| 551 |
vout3xGHIJ = vmulq_f32(vout3xGHIJ, vinput_scale); |
| 552 |
vout3xKLMN = vmulq_f32(vout3xKLMN, vinput_scale); |
| 553 |
vout3xOPQR = vmulq_f32(vout3xOPQR, vinput_scale); |
| 554 |
vout3xSTUV = vmulq_f32(vout3xSTUV, vinput_scale); |
| 555 |
vout4x0123 = vmulq_f32(vout4x0123, vinput_scale); |
| 556 |
vout4x4567 = vmulq_f32(vout4x4567, vinput_scale); |
| 557 |
vout4x89AB = vmulq_f32(vout4x89AB, vinput_scale); |
| 558 |
vout4xCDEF = vmulq_f32(vout4xCDEF, vinput_scale); |
| 559 |
vout4xGHIJ = vmulq_f32(vout4xGHIJ, vinput_scale); |
| 560 |
vout4xKLMN = vmulq_f32(vout4xKLMN, vinput_scale); |
| 561 |
vout4xOPQR = vmulq_f32(vout4xOPQR, vinput_scale); |
| 562 |
vout4xSTUV = vmulq_f32(vout4xSTUV, vinput_scale); |
| 563 |
vout5x0123 = vmulq_f32(vout5x0123, vinput_scale); |
| 564 |
vout5x4567 = vmulq_f32(vout5x4567, vinput_scale); |
| 565 |
vout5x89AB = vmulq_f32(vout5x89AB, vinput_scale); |
| 566 |
vout5xCDEF = vmulq_f32(vout5xCDEF, vinput_scale); |
| 567 |
vout5xGHIJ = vmulq_f32(vout5xGHIJ, vinput_scale); |
| 568 |
vout5xKLMN = vmulq_f32(vout5xKLMN, vinput_scale); |
| 569 |
vout5xOPQR = vmulq_f32(vout5xOPQR, vinput_scale); |
| 570 |
vout5xSTUV = vmulq_f32(vout5xSTUV, vinput_scale); |
| 571 |
vout6x0123 = vmulq_f32(vout6x0123, vinput_scale); |
| 572 |
vout6x4567 = vmulq_f32(vout6x4567, vinput_scale); |
| 573 |
vout6x89AB = vmulq_f32(vout6x89AB, vinput_scale); |
| 574 |
vout6xCDEF = vmulq_f32(vout6xCDEF, vinput_scale); |
| 575 |
vout6xGHIJ = vmulq_f32(vout6xGHIJ, vinput_scale); |
| 576 |
vout6xKLMN = vmulq_f32(vout6xKLMN, vinput_scale); |
| 577 |
vout6xOPQR = vmulq_f32(vout6xOPQR, vinput_scale); |
| 578 |
vout6xSTUV = vmulq_f32(vout6xSTUV, vinput_scale); |
| 579 |
vout7x0123 = vmulq_f32(vout7x0123, vinput_scale); |
| 580 |
vout7x4567 = vmulq_f32(vout7x4567, vinput_scale); |
| 581 |
vout7x89AB = vmulq_f32(vout7x89AB, vinput_scale); |
| 582 |
vout7xCDEF = vmulq_f32(vout7xCDEF, vinput_scale); |
| 583 |
vout7xGHIJ = vmulq_f32(vout7xGHIJ, vinput_scale); |
| 584 |
vout7xKLMN = vmulq_f32(vout7xKLMN, vinput_scale); |
| 585 |
vout7xOPQR = vmulq_f32(vout7xOPQR, vinput_scale); |
| 586 |
vout7xSTUV = vmulq_f32(vout7xSTUV, vinput_scale); |
| 587 |
|
| 588 |
const float32x4_t vfilter_output_scale0123 = vld1q_f32(w); w = (const float*) w + 4; |
| 589 |
const float32x4_t vfilter_output_scale4567 = vld1q_f32(w); w = (const float*) w + 4; |
| 590 |
const float32x4_t vfilter_output_scale89AB = vld1q_f32(w); w = (const float*) w + 4; |
| 591 |
const float32x4_t vfilter_output_scaleCDEF = vld1q_f32(w); w = (const float*) w + 4; |
| 592 |
const float32x4_t vfilter_output_scaleGHIJ = vld1q_f32(w); w = (const float*) w + 4; |
| 593 |
const float32x4_t vfilter_output_scaleKLMN = vld1q_f32(w); w = (const float*) w + 4; |
| 594 |
const float32x4_t vfilter_output_scaleOPQR = vld1q_f32(w); w = (const float*) w + 4; |
| 595 |
const float32x4_t vfilter_output_scaleSTUV = vld1q_f32(w); w = (const float*) w + 4; |
| 596 |
|
| 597 |
const float32x4_t vbias0123 = vld1q_f32(w); w = (const float*) w + 4; |
| 598 |
#if XNN_ARCH_ARM64 |
| 599 |
vout0x0123 = vfmaq_f32(vbias0123, vout0x0123, vfilter_output_scale0123); |
| 600 |
vout1x0123 = vfmaq_f32(vbias0123, vout1x0123, vfilter_output_scale0123); |
| 601 |
vout2x0123 = vfmaq_f32(vbias0123, vout2x0123, vfilter_output_scale0123); |
| 602 |
vout3x0123 = vfmaq_f32(vbias0123, vout3x0123, vfilter_output_scale0123); |
| 603 |
vout4x0123 = vfmaq_f32(vbias0123, vout4x0123, vfilter_output_scale0123); |
| 604 |
vout5x0123 = vfmaq_f32(vbias0123, vout5x0123, vfilter_output_scale0123); |
| 605 |
vout6x0123 = vfmaq_f32(vbias0123, vout6x0123, vfilter_output_scale0123); |
| 606 |
vout7x0123 = vfmaq_f32(vbias0123, vout7x0123, vfilter_output_scale0123); |
| 607 |
#else |
| 608 |
vout0x0123 = vmlaq_f32(vbias0123, vout0x0123, vfilter_output_scale0123); |
| 609 |
vout1x0123 = vmlaq_f32(vbias0123, vout1x0123, vfilter_output_scale0123); |
| 610 |
vout2x0123 = vmlaq_f32(vbias0123, vout2x0123, vfilter_output_scale0123); |
| 611 |
vout3x0123 = vmlaq_f32(vbias0123, vout3x0123, vfilter_output_scale0123); |
| 612 |
vout4x0123 = vmlaq_f32(vbias0123, vout4x0123, vfilter_output_scale0123); |
| 613 |
vout5x0123 = vmlaq_f32(vbias0123, vout5x0123, vfilter_output_scale0123); |
| 614 |
vout6x0123 = vmlaq_f32(vbias0123, vout6x0123, vfilter_output_scale0123); |
| 615 |
vout7x0123 = vmlaq_f32(vbias0123, vout7x0123, vfilter_output_scale0123); |
| 616 |
#endif |
| 617 |
const float32x4_t vbias4567 = vld1q_f32(w); w = (const float*) w + 4; |
| 618 |
#if XNN_ARCH_ARM64 |
| 619 |
vout0x4567 = vfmaq_f32(vbias4567, vout0x4567, vfilter_output_scale4567); |
| 620 |
vout1x4567 = vfmaq_f32(vbias4567, vout1x4567, vfilter_output_scale4567); |
| 621 |
vout2x4567 = vfmaq_f32(vbias4567, vout2x4567, vfilter_output_scale4567); |
| 622 |
vout3x4567 = vfmaq_f32(vbias4567, vout3x4567, vfilter_output_scale4567); |
| 623 |
vout4x4567 = vfmaq_f32(vbias4567, vout4x4567, vfilter_output_scale4567); |
| 624 |
vout5x4567 = vfmaq_f32(vbias4567, vout5x4567, vfilter_output_scale4567); |
| 625 |
vout6x4567 = vfmaq_f32(vbias4567, vout6x4567, vfilter_output_scale4567); |
| 626 |
vout7x4567 = vfmaq_f32(vbias4567, vout7x4567, vfilter_output_scale4567); |
| 627 |
#else |
| 628 |
vout0x4567 = vmlaq_f32(vbias4567, vout0x4567, vfilter_output_scale4567); |
| 629 |
vout1x4567 = vmlaq_f32(vbias4567, vout1x4567, vfilter_output_scale4567); |
| 630 |
vout2x4567 = vmlaq_f32(vbias4567, vout2x4567, vfilter_output_scale4567); |
| 631 |
vout3x4567 = vmlaq_f32(vbias4567, vout3x4567, vfilter_output_scale4567); |
| 632 |
vout4x4567 = vmlaq_f32(vbias4567, vout4x4567, vfilter_output_scale4567); |
| 633 |
vout5x4567 = vmlaq_f32(vbias4567, vout5x4567, vfilter_output_scale4567); |
| 634 |
vout6x4567 = vmlaq_f32(vbias4567, vout6x4567, vfilter_output_scale4567); |
| 635 |
vout7x4567 = vmlaq_f32(vbias4567, vout7x4567, vfilter_output_scale4567); |
| 636 |
#endif |
| 637 |
const float32x4_t vbias89AB = vld1q_f32(w); w = (const float*) w + 4; |
| 638 |
#if XNN_ARCH_ARM64 |
| 639 |
vout0x89AB = vfmaq_f32(vbias89AB, vout0x89AB, vfilter_output_scale89AB); |
| 640 |
vout1x89AB = vfmaq_f32(vbias89AB, vout1x89AB, vfilter_output_scale89AB); |
| 641 |
vout2x89AB = vfmaq_f32(vbias89AB, vout2x89AB, vfilter_output_scale89AB); |
| 642 |
vout3x89AB = vfmaq_f32(vbias89AB, vout3x89AB, vfilter_output_scale89AB); |
| 643 |
vout4x89AB = vfmaq_f32(vbias89AB, vout4x89AB, vfilter_output_scale89AB); |
| 644 |
vout5x89AB = vfmaq_f32(vbias89AB, vout5x89AB, vfilter_output_scale89AB); |
| 645 |
vout6x89AB = vfmaq_f32(vbias89AB, vout6x89AB, vfilter_output_scale89AB); |
| 646 |
vout7x89AB = vfmaq_f32(vbias89AB, vout7x89AB, vfilter_output_scale89AB); |
| 647 |
#else |
| 648 |
vout0x89AB = vmlaq_f32(vbias89AB, vout0x89AB, vfilter_output_scale89AB); |
| 649 |
vout1x89AB = vmlaq_f32(vbias89AB, vout1x89AB, vfilter_output_scale89AB); |
| 650 |
vout2x89AB = vmlaq_f32(vbias89AB, vout2x89AB, vfilter_output_scale89AB); |
| 651 |
vout3x89AB = vmlaq_f32(vbias89AB, vout3x89AB, vfilter_output_scale89AB); |
| 652 |
vout4x89AB = vmlaq_f32(vbias89AB, vout4x89AB, vfilter_output_scale89AB); |
| 653 |
vout5x89AB = vmlaq_f32(vbias89AB, vout5x89AB, vfilter_output_scale89AB); |
| 654 |
vout6x89AB = vmlaq_f32(vbias89AB, vout6x89AB, vfilter_output_scale89AB); |
| 655 |
vout7x89AB = vmlaq_f32(vbias89AB, vout7x89AB, vfilter_output_scale89AB); |
| 656 |
#endif |
| 657 |
const float32x4_t vbiasCDEF = vld1q_f32(w); w = (const float*) w + 4; |
| 658 |
#if XNN_ARCH_ARM64 |
| 659 |
vout0xCDEF = vfmaq_f32(vbiasCDEF, vout0xCDEF, vfilter_output_scaleCDEF); |
| 660 |
vout1xCDEF = vfmaq_f32(vbiasCDEF, vout1xCDEF, vfilter_output_scaleCDEF); |
| 661 |
vout2xCDEF = vfmaq_f32(vbiasCDEF, vout2xCDEF, vfilter_output_scaleCDEF); |
| 662 |
vout3xCDEF = vfmaq_f32(vbiasCDEF, vout3xCDEF, vfilter_output_scaleCDEF); |
| 663 |
vout4xCDEF = vfmaq_f32(vbiasCDEF, vout4xCDEF, vfilter_output_scaleCDEF); |
| 664 |
vout5xCDEF = vfmaq_f32(vbiasCDEF, vout5xCDEF, vfilter_output_scaleCDEF); |
| 665 |
vout6xCDEF = vfmaq_f32(vbiasCDEF, vout6xCDEF, vfilter_output_scaleCDEF); |
| 666 |
vout7xCDEF = vfmaq_f32(vbiasCDEF, vout7xCDEF, vfilter_output_scaleCDEF); |
| 667 |
#else |
| 668 |
vout0xCDEF = vmlaq_f32(vbiasCDEF, vout0xCDEF, vfilter_output_scaleCDEF); |
| 669 |
vout1xCDEF = vmlaq_f32(vbiasCDEF, vout1xCDEF, vfilter_output_scaleCDEF); |
| 670 |
vout2xCDEF = vmlaq_f32(vbiasCDEF, vout2xCDEF, vfilter_output_scaleCDEF); |
| 671 |
vout3xCDEF = vmlaq_f32(vbiasCDEF, vout3xCDEF, vfilter_output_scaleCDEF); |
| 672 |
vout4xCDEF = vmlaq_f32(vbiasCDEF, vout4xCDEF, vfilter_output_scaleCDEF); |
| 673 |
vout5xCDEF = vmlaq_f32(vbiasCDEF, vout5xCDEF, vfilter_output_scaleCDEF); |
| 674 |
vout6xCDEF = vmlaq_f32(vbiasCDEF, vout6xCDEF, vfilter_output_scaleCDEF); |
| 675 |
vout7xCDEF = vmlaq_f32(vbiasCDEF, vout7xCDEF, vfilter_output_scaleCDEF); |
| 676 |
#endif |
| 677 |
const float32x4_t vbiasGHIJ = vld1q_f32(w); w = (const float*) w + 4; |
| 678 |
#if XNN_ARCH_ARM64 |
| 679 |
vout0xGHIJ = vfmaq_f32(vbiasGHIJ, vout0xGHIJ, vfilter_output_scaleGHIJ); |
| 680 |
vout1xGHIJ = vfmaq_f32(vbiasGHIJ, vout1xGHIJ, vfilter_output_scaleGHIJ); |
| 681 |
vout2xGHIJ = vfmaq_f32(vbiasGHIJ, vout2xGHIJ, vfilter_output_scaleGHIJ); |
| 682 |
vout3xGHIJ = vfmaq_f32(vbiasGHIJ, vout3xGHIJ, vfilter_output_scaleGHIJ); |
| 683 |
vout4xGHIJ = vfmaq_f32(vbiasGHIJ, vout4xGHIJ, vfilter_output_scaleGHIJ); |
| 684 |
vout5xGHIJ = vfmaq_f32(vbiasGHIJ, vout5xGHIJ, vfilter_output_scaleGHIJ); |
| 685 |
vout6xGHIJ = vfmaq_f32(vbiasGHIJ, vout6xGHIJ, vfilter_output_scaleGHIJ); |
| 686 |
vout7xGHIJ = vfmaq_f32(vbiasGHIJ, vout7xGHIJ, vfilter_output_scaleGHIJ); |
| 687 |
#else |
| 688 |
vout0xGHIJ = vmlaq_f32(vbiasGHIJ, vout0xGHIJ, vfilter_output_scaleGHIJ); |
| 689 |
vout1xGHIJ = vmlaq_f32(vbiasGHIJ, vout1xGHIJ, vfilter_output_scaleGHIJ); |
| 690 |
vout2xGHIJ = vmlaq_f32(vbiasGHIJ, vout2xGHIJ, vfilter_output_scaleGHIJ); |
| 691 |
vout3xGHIJ = vmlaq_f32(vbiasGHIJ, vout3xGHIJ, vfilter_output_scaleGHIJ); |
| 692 |
vout4xGHIJ = vmlaq_f32(vbiasGHIJ, vout4xGHIJ, vfilter_output_scaleGHIJ); |
| 693 |
vout5xGHIJ = vmlaq_f32(vbiasGHIJ, vout5xGHIJ, vfilter_output_scaleGHIJ); |
| 694 |
vout6xGHIJ = vmlaq_f32(vbiasGHIJ, vout6xGHIJ, vfilter_output_scaleGHIJ); |
| 695 |
vout7xGHIJ = vmlaq_f32(vbiasGHIJ, vout7xGHIJ, vfilter_output_scaleGHIJ); |
| 696 |
#endif |
| 697 |
const float32x4_t vbiasKLMN = vld1q_f32(w); w = (const float*) w + 4; |
| 698 |
#if XNN_ARCH_ARM64 |
| 699 |
vout0xKLMN = vfmaq_f32(vbiasKLMN, vout0xKLMN, vfilter_output_scaleKLMN); |
| 700 |
vout1xKLMN = vfmaq_f32(vbiasKLMN, vout1xKLMN, vfilter_output_scaleKLMN); |
| 701 |
vout2xKLMN = vfmaq_f32(vbiasKLMN, vout2xKLMN, vfilter_output_scaleKLMN); |
| 702 |
vout3xKLMN = vfmaq_f32(vbiasKLMN, vout3xKLMN, vfilter_output_scaleKLMN); |
| 703 |
vout4xKLMN = vfmaq_f32(vbiasKLMN, vout4xKLMN, vfilter_output_scaleKLMN); |
| 704 |
vout5xKLMN = vfmaq_f32(vbiasKLMN, vout5xKLMN, vfilter_output_scaleKLMN); |
| 705 |
vout6xKLMN = vfmaq_f32(vbiasKLMN, vout6xKLMN, vfilter_output_scaleKLMN); |
| 706 |
vout7xKLMN = vfmaq_f32(vbiasKLMN, vout7xKLMN, vfilter_output_scaleKLMN); |
| 707 |
#else |
| 708 |
vout0xKLMN = vmlaq_f32(vbiasKLMN, vout0xKLMN, vfilter_output_scaleKLMN); |
| 709 |
vout1xKLMN = vmlaq_f32(vbiasKLMN, vout1xKLMN, vfilter_output_scaleKLMN); |
| 710 |
vout2xKLMN = vmlaq_f32(vbiasKLMN, vout2xKLMN, vfilter_output_scaleKLMN); |
| 711 |
vout3xKLMN = vmlaq_f32(vbiasKLMN, vout3xKLMN, vfilter_output_scaleKLMN); |
| 712 |
vout4xKLMN = vmlaq_f32(vbiasKLMN, vout4xKLMN, vfilter_output_scaleKLMN); |
| 713 |
vout5xKLMN = vmlaq_f32(vbiasKLMN, vout5xKLMN, vfilter_output_scaleKLMN); |
| 714 |
vout6xKLMN = vmlaq_f32(vbiasKLMN, vout6xKLMN, vfilter_output_scaleKLMN); |
| 715 |
vout7xKLMN = vmlaq_f32(vbiasKLMN, vout7xKLMN, vfilter_output_scaleKLMN); |
| 716 |
#endif |
| 717 |
const float32x4_t vbiasOPQR = vld1q_f32(w); w = (const float*) w + 4; |
| 718 |
#if XNN_ARCH_ARM64 |
| 719 |
vout0xOPQR = vfmaq_f32(vbiasOPQR, vout0xOPQR, vfilter_output_scaleOPQR); |
| 720 |
vout1xOPQR = vfmaq_f32(vbiasOPQR, vout1xOPQR, vfilter_output_scaleOPQR); |
| 721 |
vout2xOPQR = vfmaq_f32(vbiasOPQR, vout2xOPQR, vfilter_output_scaleOPQR); |
| 722 |
vout3xOPQR = vfmaq_f32(vbiasOPQR, vout3xOPQR, vfilter_output_scaleOPQR); |
| 723 |
vout4xOPQR = vfmaq_f32(vbiasOPQR, vout4xOPQR, vfilter_output_scaleOPQR); |
| 724 |
vout5xOPQR = vfmaq_f32(vbiasOPQR, vout5xOPQR, vfilter_output_scaleOPQR); |
| 725 |
vout6xOPQR = vfmaq_f32(vbiasOPQR, vout6xOPQR, vfilter_output_scaleOPQR); |
| 726 |
vout7xOPQR = vfmaq_f32(vbiasOPQR, vout7xOPQR, vfilter_output_scaleOPQR); |
| 727 |
#else |
| 728 |
vout0xOPQR = vmlaq_f32(vbiasOPQR, vout0xOPQR, vfilter_output_scaleOPQR); |
| 729 |
vout1xOPQR = vmlaq_f32(vbiasOPQR, vout1xOPQR, vfilter_output_scaleOPQR); |
| 730 |
vout2xOPQR = vmlaq_f32(vbiasOPQR, vout2xOPQR, vfilter_output_scaleOPQR); |
| 731 |
vout3xOPQR = vmlaq_f32(vbiasOPQR, vout3xOPQR, vfilter_output_scaleOPQR); |
| 732 |
vout4xOPQR = vmlaq_f32(vbiasOPQR, vout4xOPQR, vfilter_output_scaleOPQR); |
| 733 |
vout5xOPQR = vmlaq_f32(vbiasOPQR, vout5xOPQR, vfilter_output_scaleOPQR); |
| 734 |
vout6xOPQR = vmlaq_f32(vbiasOPQR, vout6xOPQR, vfilter_output_scaleOPQR); |
| 735 |
vout7xOPQR = vmlaq_f32(vbiasOPQR, vout7xOPQR, vfilter_output_scaleOPQR); |
| 736 |
#endif |
| 737 |
const float32x4_t vbiasSTUV = vld1q_f32(w); w = (const float*) w + 4; |
| 738 |
#if XNN_ARCH_ARM64 |
| 739 |
vout0xSTUV = vfmaq_f32(vbiasSTUV, vout0xSTUV, vfilter_output_scaleSTUV); |
| 740 |
vout1xSTUV = vfmaq_f32(vbiasSTUV, vout1xSTUV, vfilter_output_scaleSTUV); |
| 741 |
vout2xSTUV = vfmaq_f32(vbiasSTUV, vout2xSTUV, vfilter_output_scaleSTUV); |
| 742 |
vout3xSTUV = vfmaq_f32(vbiasSTUV, vout3xSTUV, vfilter_output_scaleSTUV); |
| 743 |
vout4xSTUV = vfmaq_f32(vbiasSTUV, vout4xSTUV, vfilter_output_scaleSTUV); |
| 744 |
vout5xSTUV = vfmaq_f32(vbiasSTUV, vout5xSTUV, vfilter_output_scaleSTUV); |
| 745 |
vout6xSTUV = vfmaq_f32(vbiasSTUV, vout6xSTUV, vfilter_output_scaleSTUV); |
| 746 |
vout7xSTUV = vfmaq_f32(vbiasSTUV, vout7xSTUV, vfilter_output_scaleSTUV); |
| 747 |
#else |
| 748 |
vout0xSTUV = vmlaq_f32(vbiasSTUV, vout0xSTUV, vfilter_output_scaleSTUV); |
| 749 |
vout1xSTUV = vmlaq_f32(vbiasSTUV, vout1xSTUV, vfilter_output_scaleSTUV); |
| 750 |
vout2xSTUV = vmlaq_f32(vbiasSTUV, vout2xSTUV, vfilter_output_scaleSTUV); |
| 751 |
vout3xSTUV = vmlaq_f32(vbiasSTUV, vout3xSTUV, vfilter_output_scaleSTUV); |
| 752 |
vout4xSTUV = vmlaq_f32(vbiasSTUV, vout4xSTUV, vfilter_output_scaleSTUV); |
| 753 |
vout5xSTUV = vmlaq_f32(vbiasSTUV, vout5xSTUV, vfilter_output_scaleSTUV); |
| 754 |
vout6xSTUV = vmlaq_f32(vbiasSTUV, vout6xSTUV, vfilter_output_scaleSTUV); |
| 755 |
vout7xSTUV = vmlaq_f32(vbiasSTUV, vout7xSTUV, vfilter_output_scaleSTUV); |
| 756 |
#endif |
| 757 |
|
| 758 |
float16x8_t vfp16out0x01234567 = vcombine_f16(vcvt_f16_f32(vout0x0123), vcvt_f16_f32(vout0x4567)); |
| 759 |
float16x8_t vfp16out0x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout0x89AB), vcvt_f16_f32(vout0xCDEF)); |
| 760 |
float16x8_t vfp16out0xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout0xGHIJ), vcvt_f16_f32(vout0xKLMN)); |
| 761 |
float16x8_t vfp16out0xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout0xOPQR), vcvt_f16_f32(vout0xSTUV)); |
| 762 |
float16x8_t vfp16out1x01234567 = vcombine_f16(vcvt_f16_f32(vout1x0123), vcvt_f16_f32(vout1x4567)); |
| 763 |
float16x8_t vfp16out1x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout1x89AB), vcvt_f16_f32(vout1xCDEF)); |
| 764 |
float16x8_t vfp16out1xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout1xGHIJ), vcvt_f16_f32(vout1xKLMN)); |
| 765 |
float16x8_t vfp16out1xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout1xOPQR), vcvt_f16_f32(vout1xSTUV)); |
| 766 |
float16x8_t vfp16out2x01234567 = vcombine_f16(vcvt_f16_f32(vout2x0123), vcvt_f16_f32(vout2x4567)); |
| 767 |
float16x8_t vfp16out2x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout2x89AB), vcvt_f16_f32(vout2xCDEF)); |
| 768 |
float16x8_t vfp16out2xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout2xGHIJ), vcvt_f16_f32(vout2xKLMN)); |
| 769 |
float16x8_t vfp16out2xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout2xOPQR), vcvt_f16_f32(vout2xSTUV)); |
| 770 |
float16x8_t vfp16out3x01234567 = vcombine_f16(vcvt_f16_f32(vout3x0123), vcvt_f16_f32(vout3x4567)); |
| 771 |
float16x8_t vfp16out3x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout3x89AB), vcvt_f16_f32(vout3xCDEF)); |
| 772 |
float16x8_t vfp16out3xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout3xGHIJ), vcvt_f16_f32(vout3xKLMN)); |
| 773 |
float16x8_t vfp16out3xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout3xOPQR), vcvt_f16_f32(vout3xSTUV)); |
| 774 |
float16x8_t vfp16out4x01234567 = vcombine_f16(vcvt_f16_f32(vout4x0123), vcvt_f16_f32(vout4x4567)); |
| 775 |
float16x8_t vfp16out4x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout4x89AB), vcvt_f16_f32(vout4xCDEF)); |
| 776 |
float16x8_t vfp16out4xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout4xGHIJ), vcvt_f16_f32(vout4xKLMN)); |
| 777 |
float16x8_t vfp16out4xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout4xOPQR), vcvt_f16_f32(vout4xSTUV)); |
| 778 |
float16x8_t vfp16out5x01234567 = vcombine_f16(vcvt_f16_f32(vout5x0123), vcvt_f16_f32(vout5x4567)); |
| 779 |
float16x8_t vfp16out5x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout5x89AB), vcvt_f16_f32(vout5xCDEF)); |
| 780 |
float16x8_t vfp16out5xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout5xGHIJ), vcvt_f16_f32(vout5xKLMN)); |
| 781 |
float16x8_t vfp16out5xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout5xOPQR), vcvt_f16_f32(vout5xSTUV)); |
| 782 |
float16x8_t vfp16out6x01234567 = vcombine_f16(vcvt_f16_f32(vout6x0123), vcvt_f16_f32(vout6x4567)); |
| 783 |
float16x8_t vfp16out6x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout6x89AB), vcvt_f16_f32(vout6xCDEF)); |
| 784 |
float16x8_t vfp16out6xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout6xGHIJ), vcvt_f16_f32(vout6xKLMN)); |
| 785 |
float16x8_t vfp16out6xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout6xOPQR), vcvt_f16_f32(vout6xSTUV)); |
| 786 |
float16x8_t vfp16out7x01234567 = vcombine_f16(vcvt_f16_f32(vout7x0123), vcvt_f16_f32(vout7x4567)); |
| 787 |
float16x8_t vfp16out7x89ABCDEF = vcombine_f16(vcvt_f16_f32(vout7x89AB), vcvt_f16_f32(vout7xCDEF)); |
| 788 |
float16x8_t vfp16out7xGHIJKLMN = vcombine_f16(vcvt_f16_f32(vout7xGHIJ), vcvt_f16_f32(vout7xKLMN)); |
| 789 |
float16x8_t vfp16out7xOPQRSTUV = vcombine_f16(vcvt_f16_f32(vout7xOPQR), vcvt_f16_f32(vout7xSTUV)); |
| 790 |
|
| 791 |
const float16x8_t voutput_min = vreinterpretq_f16_u16(vld1q_dup_u16((const uint16_t*) ¶ms->scalar.min)); |
| 792 |
vfp16out0x01234567 = vmaxq_f16(vfp16out0x01234567, voutput_min); |
| 793 |
vfp16out0x89ABCDEF = vmaxq_f16(vfp16out0x89ABCDEF, voutput_min); |
| 794 |
vfp16out0xGHIJKLMN = vmaxq_f16(vfp16out0xGHIJKLMN, voutput_min); |
| 795 |
vfp16out0xOPQRSTUV = vmaxq_f16(vfp16out0xOPQRSTUV, voutput_min); |
| 796 |
vfp16out1x01234567 = vmaxq_f16(vfp16out1x01234567, voutput_min); |
| 797 |
vfp16out1x89ABCDEF = vmaxq_f16(vfp16out1x89ABCDEF, voutput_min); |
| 798 |
vfp16out1xGHIJKLMN = vmaxq_f16(vfp16out1xGHIJKLMN, voutput_min); |
| 799 |
vfp16out1xOPQRSTUV = vmaxq_f16(vfp16out1xOPQRSTUV, voutput_min); |
| 800 |
vfp16out2x01234567 = vmaxq_f16(vfp16out2x01234567, voutput_min); |
| 801 |
vfp16out2x89ABCDEF = vmaxq_f16(vfp16out2x89ABCDEF, voutput_min); |
| 802 |
vfp16out2xGHIJKLMN = vmaxq_f16(vfp16out2xGHIJKLMN, voutput_min); |
| 803 |
vfp16out2xOPQRSTUV = vmaxq_f16(vfp16out2xOPQRSTUV, voutput_min); |
| 804 |
vfp16out3x01234567 = vmaxq_f16(vfp16out3x01234567, voutput_min); |
| 805 |
vfp16out3x89ABCDEF = vmaxq_f16(vfp16out3x89ABCDEF, voutput_min); |
| 806 |
vfp16out3xGHIJKLMN = vmaxq_f16(vfp16out3xGHIJKLMN, voutput_min); |
| 807 |
vfp16out3xOPQRSTUV = vmaxq_f16(vfp16out3xOPQRSTUV, voutput_min); |
| 808 |
vfp16out4x01234567 = vmaxq_f16(vfp16out4x01234567, voutput_min); |
| 809 |
vfp16out4x89ABCDEF = vmaxq_f16(vfp16out4x89ABCDEF, voutput_min); |
| 810 |
vfp16out4xGHIJKLMN = vmaxq_f16(vfp16out4xGHIJKLMN, voutput_min); |
| 811 |
vfp16out4xOPQRSTUV = vmaxq_f16(vfp16out4xOPQRSTUV, voutput_min); |
| 812 |
vfp16out5x01234567 = vmaxq_f16(vfp16out5x01234567, voutput_min); |
| 813 |
vfp16out5x89ABCDEF = vmaxq_f16(vfp16out5x89ABCDEF, voutput_min); |
| 814 |
vfp16out5xGHIJKLMN = vmaxq_f16(vfp16out5xGHIJKLMN, voutput_min); |
| 815 |
vfp16out5xOPQRSTUV = vmaxq_f16(vfp16out5xOPQRSTUV, voutput_min); |
| 816 |
vfp16out6x01234567 = vmaxq_f16(vfp16out6x01234567, voutput_min); |
| 817 |
vfp16out6x89ABCDEF = vmaxq_f16(vfp16out6x89ABCDEF, voutput_min); |
| 818 |
vfp16out6xGHIJKLMN = vmaxq_f16(vfp16out6xGHIJKLMN, voutput_min); |
| 819 |
vfp16out6xOPQRSTUV = vmaxq_f16(vfp16out6xOPQRSTUV, voutput_min); |
| 820 |
vfp16out7x01234567 = vmaxq_f16(vfp16out7x01234567, voutput_min); |
| 821 |
vfp16out7x89ABCDEF = vmaxq_f16(vfp16out7x89ABCDEF, voutput_min); |
| 822 |
vfp16out7xGHIJKLMN = vmaxq_f16(vfp16out7xGHIJKLMN, voutput_min); |
| 823 |
vfp16out7xOPQRSTUV = vmaxq_f16(vfp16out7xOPQRSTUV, voutput_min); |
| 824 |
const float16x8_t voutput_max = vreinterpretq_f16_u16(vld1q_dup_u16((const uint16_t*) ¶ms->scalar.max)); |
| 825 |
vfp16out0x01234567 = vminq_f16(vfp16out0x01234567, voutput_max); |
| 826 |
vfp16out0x89ABCDEF = vminq_f16(vfp16out0x89ABCDEF, voutput_max); |
| 827 |
vfp16out0xGHIJKLMN = vminq_f16(vfp16out0xGHIJKLMN, voutput_max); |
| 828 |
vfp16out0xOPQRSTUV = vminq_f16(vfp16out0xOPQRSTUV, voutput_max); |
| 829 |
vfp16out1x01234567 = vminq_f16(vfp16out1x01234567, voutput_max); |
| 830 |
vfp16out1x89ABCDEF = vminq_f16(vfp16out1x89ABCDEF, voutput_max); |
| 831 |
vfp16out1xGHIJKLMN = vminq_f16(vfp16out1xGHIJKLMN, voutput_max); |
| 832 |
vfp16out1xOPQRSTUV = vminq_f16(vfp16out1xOPQRSTUV, voutput_max); |
| 833 |
vfp16out2x01234567 = vminq_f16(vfp16out2x01234567, voutput_max); |
| 834 |
vfp16out2x89ABCDEF = vminq_f16(vfp16out2x89ABCDEF, voutput_max); |
| 835 |
vfp16out2xGHIJKLMN = vminq_f16(vfp16out2xGHIJKLMN, voutput_max); |
| 836 |
vfp16out2xOPQRSTUV = vminq_f16(vfp16out2xOPQRSTUV, voutput_max); |
| 837 |
vfp16out3x01234567 = vminq_f16(vfp16out3x01234567, voutput_max); |
| 838 |
vfp16out3x89ABCDEF = vminq_f16(vfp16out3x89ABCDEF, voutput_max); |
| 839 |
vfp16out3xGHIJKLMN = vminq_f16(vfp16out3xGHIJKLMN, voutput_max); |
| 840 |
vfp16out3xOPQRSTUV = vminq_f16(vfp16out3xOPQRSTUV, voutput_max); |
| 841 |
vfp16out4x01234567 = vminq_f16(vfp16out4x01234567, voutput_max); |
| 842 |
vfp16out4x89ABCDEF = vminq_f16(vfp16out4x89ABCDEF, voutput_max); |
| 843 |
vfp16out4xGHIJKLMN = vminq_f16(vfp16out4xGHIJKLMN, voutput_max); |
| 844 |
vfp16out4xOPQRSTUV = vminq_f16(vfp16out4xOPQRSTUV, voutput_max); |
| 845 |
vfp16out5x01234567 = vminq_f16(vfp16out5x01234567, voutput_max); |
| 846 |
vfp16out5x89ABCDEF = vminq_f16(vfp16out5x89ABCDEF, voutput_max); |
| 847 |
vfp16out5xGHIJKLMN = vminq_f16(vfp16out5xGHIJKLMN, voutput_max); |
| 848 |
vfp16out5xOPQRSTUV = vminq_f16(vfp16out5xOPQRSTUV, voutput_max); |
| 849 |
vfp16out6x01234567 = vminq_f16(vfp16out6x01234567, voutput_max); |
| 850 |
vfp16out6x89ABCDEF = vminq_f16(vfp16out6x89ABCDEF, voutput_max); |
| 851 |
vfp16out6xGHIJKLMN = vminq_f16(vfp16out6xGHIJKLMN, voutput_max); |
| 852 |
vfp16out6xOPQRSTUV = vminq_f16(vfp16out6xOPQRSTUV, voutput_max); |
| 853 |
vfp16out7x01234567 = vminq_f16(vfp16out7x01234567, voutput_max); |
| 854 |
vfp16out7x89ABCDEF = vminq_f16(vfp16out7x89ABCDEF, voutput_max); |
| 855 |
vfp16out7xGHIJKLMN = vminq_f16(vfp16out7xGHIJKLMN, voutput_max); |
| 856 |
vfp16out7xOPQRSTUV = vminq_f16(vfp16out7xOPQRSTUV, voutput_max); |
| 857 |
if XNN_LIKELY(nc >= 32) { |
| 858 |
vst1q_u16(c7, vreinterpretq_u16_f16(vfp16out7x01234567)); |
| 859 |
vst1q_u16(c7 + 8, vreinterpretq_u16_f16(vfp16out7x89ABCDEF)); |
| 860 |
vst1q_u16(c7 + 16, vreinterpretq_u16_f16(vfp16out7xGHIJKLMN)); |
| 861 |
vst1q_u16(c7 + 24, vreinterpretq_u16_f16(vfp16out7xOPQRSTUV)); |
| 862 |
vst1q_u16(c6, vreinterpretq_u16_f16(vfp16out6x01234567)); |
| 863 |
vst1q_u16(c6 + 8, vreinterpretq_u16_f16(vfp16out6x89ABCDEF)); |
| 864 |
vst1q_u16(c6 + 16, vreinterpretq_u16_f16(vfp16out6xGHIJKLMN)); |
| 865 |
vst1q_u16(c6 + 24, vreinterpretq_u16_f16(vfp16out6xOPQRSTUV)); |
| 866 |
vst1q_u16(c5, vreinterpretq_u16_f16(vfp16out5x01234567)); |
| 867 |
vst1q_u16(c5 + 8, vreinterpretq_u16_f16(vfp16out5x89ABCDEF)); |
| 868 |
vst1q_u16(c5 + 16, vreinterpretq_u16_f16(vfp16out5xGHIJKLMN)); |
| 869 |
vst1q_u16(c5 + 24, vreinterpretq_u16_f16(vfp16out5xOPQRSTUV)); |
| 870 |
vst1q_u16(c4, vreinterpretq_u16_f16(vfp16out4x01234567)); |
| 871 |
vst1q_u16(c4 + 8, vreinterpretq_u16_f16(vfp16out4x89ABCDEF)); |
| 872 |
vst1q_u16(c4 + 16, vreinterpretq_u16_f16(vfp16out4xGHIJKLMN)); |
| 873 |
vst1q_u16(c4 + 24, vreinterpretq_u16_f16(vfp16out4xOPQRSTUV)); |
| 874 |
vst1q_u16(c3, vreinterpretq_u16_f16(vfp16out3x01234567)); |
| 875 |
vst1q_u16(c3 + 8, vreinterpretq_u16_f16(vfp16out3x89ABCDEF)); |
| 876 |
vst1q_u16(c3 + 16, vreinterpretq_u16_f16(vfp16out3xGHIJKLMN)); |
| 877 |
vst1q_u16(c3 + 24, vreinterpretq_u16_f16(vfp16out3xOPQRSTUV)); |
| 878 |
vst1q_u16(c2, vreinterpretq_u16_f16(vfp16out2x01234567)); |
| 879 |
vst1q_u16(c2 + 8, vreinterpretq_u16_f16(vfp16out2x89ABCDEF)); |
| 880 |
vst1q_u16(c2 + 16, vreinterpretq_u16_f16(vfp16out2xGHIJKLMN)); |
| 881 |
vst1q_u16(c2 + 24, vreinterpretq_u16_f16(vfp16out2xOPQRSTUV)); |
| 882 |
vst1q_u16(c1, vreinterpretq_u16_f16(vfp16out1x01234567)); |
| 883 |
vst1q_u16(c1 + 8, vreinterpretq_u16_f16(vfp16out1x89ABCDEF)); |
| 884 |
vst1q_u16(c1 + 16, vreinterpretq_u16_f16(vfp16out1xGHIJKLMN)); |
| 885 |
vst1q_u16(c1 + 24, vreinterpretq_u16_f16(vfp16out1xOPQRSTUV)); |
| 886 |
vst1q_u16(c0, vreinterpretq_u16_f16(vfp16out0x01234567)); |
| 887 |
vst1q_u16(c0 + 8, vreinterpretq_u16_f16(vfp16out0x89ABCDEF)); |
| 888 |
vst1q_u16(c0 + 16, vreinterpretq_u16_f16(vfp16out0xGHIJKLMN)); |
| 889 |
vst1q_u16(c0 + 24, vreinterpretq_u16_f16(vfp16out0xOPQRSTUV)); |
| 890 |
|
| 891 |
a = (const int8_t**restrict) ((uintptr_t) a - ks); |
| 892 |
|
| 893 |
c0 = (uint16_t*) ((uintptr_t) c0 + cn_stride); |
| 894 |
c1 = (uint16_t*) ((uintptr_t) c1 + cn_stride); |
| 895 |
c2 = (uint16_t*) ((uintptr_t) c2 + cn_stride); |
| 896 |
c3 = (uint16_t*) ((uintptr_t) c3 + cn_stride); |
| 897 |
c4 = (uint16_t*) ((uintptr_t) c4 + cn_stride); |
| 898 |
c5 = (uint16_t*) ((uintptr_t) c5 + cn_stride); |
| 899 |
c6 = (uint16_t*) ((uintptr_t) c6 + cn_stride); |
| 900 |
c7 = (uint16_t*) ((uintptr_t) c7 + cn_stride); |
| 901 |
|
| 902 |
nc -= 32; |
| 903 |
} else { |
| 904 |
if (nc & 16) { |
| 905 |
vst1q_u16(c7, vreinterpretq_u16_f16(vfp16out7x01234567)); c7 += 8; |
| 906 |
vfp16out7x01234567 = vfp16out7xGHIJKLMN; |
| 907 |
vst1q_u16(c6, vreinterpretq_u16_f16(vfp16out6x01234567)); c6 += 8; |
| 908 |
vfp16out6x01234567 = vfp16out6xGHIJKLMN; |
| 909 |
vst1q_u16(c5, vreinterpretq_u16_f16(vfp16out5x01234567)); c5 += 8; |
| 910 |
vfp16out5x01234567 = vfp16out5xGHIJKLMN; |
| 911 |
vst1q_u16(c4, vreinterpretq_u16_f16(vfp16out4x01234567)); c4 += 8; |
| 912 |
vfp16out4x01234567 = vfp16out4xGHIJKLMN; |
| 913 |
vst1q_u16(c3, vreinterpretq_u16_f16(vfp16out3x01234567)); c3 += 8; |
| 914 |
vfp16out3x01234567 = vfp16out3xGHIJKLMN; |
| 915 |
vst1q_u16(c2, vreinterpretq_u16_f16(vfp16out2x01234567)); c2 += 8; |
| 916 |
vfp16out2x01234567 = vfp16out2xGHIJKLMN; |
| 917 |
vst1q_u16(c1, vreinterpretq_u16_f16(vfp16out1x01234567)); c1 += 8; |
| 918 |
vfp16out1x01234567 = vfp16out1xGHIJKLMN; |
| 919 |
vst1q_u16(c0, vreinterpretq_u16_f16(vfp16out0x01234567)); c0 += 8; |
| 920 |
vfp16out0x01234567 = vfp16out0xGHIJKLMN; |
| 921 |
vst1q_u16(c7, vreinterpretq_u16_f16(vfp16out7x89ABCDEF)); c7 += 8; |
| 922 |
vfp16out7x89ABCDEF = vfp16out7xOPQRSTUV; |
| 923 |
vst1q_u16(c6, vreinterpretq_u16_f16(vfp16out6x89ABCDEF)); c6 += 8; |
| 924 |
vfp16out6x89ABCDEF = vfp16out6xOPQRSTUV; |
| 925 |
vst1q_u16(c5, vreinterpretq_u16_f16(vfp16out5x89ABCDEF)); c5 += 8; |
| 926 |
vfp16out5x89ABCDEF = vfp16out5xOPQRSTUV; |
| 927 |
vst1q_u16(c4, vreinterpretq_u16_f16(vfp16out4x89ABCDEF)); c4 += 8; |
| 928 |
vfp16out4x89ABCDEF = vfp16out4xOPQRSTUV; |
| 929 |
vst1q_u16(c3, vreinterpretq_u16_f16(vfp16out3x89ABCDEF)); c3 += 8; |
| 930 |
vfp16out3x89ABCDEF = vfp16out3xOPQRSTUV; |
| 931 |
vst1q_u16(c2, vreinterpretq_u16_f16(vfp16out2x89ABCDEF)); c2 += 8; |
| 932 |
vfp16out2x89ABCDEF = vfp16out2xOPQRSTUV; |
| 933 |
vst1q_u16(c1, vreinterpretq_u16_f16(vfp16out1x89ABCDEF)); c1 += 8; |
| 934 |
vfp16out1x89ABCDEF = vfp16out1xOPQRSTUV; |
| 935 |
vst1q_u16(c0, vreinterpretq_u16_f16(vfp16out0x89ABCDEF)); c0 += 8; |
| 936 |
vfp16out0x89ABCDEF = vfp16out0xOPQRSTUV; |
| 937 |
} |
| 938 |
if (nc & 8) { |
| 939 |
vst1q_u16(c7, vreinterpretq_u16_f16(vfp16out7x01234567)); c7 += 8; |
| 940 |
vfp16out7x01234567 = vfp16out7x89ABCDEF; |
| 941 |
vst1q_u16(c6, vreinterpretq_u16_f16(vfp16out6x01234567)); c6 += 8; |
| 942 |
vfp16out6x01234567 = vfp16out6x89ABCDEF; |
| 943 |
vst1q_u16(c5, vreinterpretq_u16_f16(vfp16out5x01234567)); c5 += 8; |
| 944 |
vfp16out5x01234567 = vfp16out5x89ABCDEF; |
| 945 |
vst1q_u16(c4, vreinterpretq_u16_f16(vfp16out4x01234567)); c4 += 8; |
| 946 |
vfp16out4x01234567 = vfp16out4x89ABCDEF; |
| 947 |
vst1q_u16(c3, vreinterpretq_u16_f16(vfp16out3x01234567)); c3 += 8; |
| 948 |
vfp16out3x01234567 = vfp16out3x89ABCDEF; |
| 949 |
vst1q_u16(c2, vreinterpretq_u16_f16(vfp16out2x01234567)); c2 += 8; |
| 950 |
vfp16out2x01234567 = vfp16out2x89ABCDEF; |
| 951 |
vst1q_u16(c1, vreinterpretq_u16_f16(vfp16out1x01234567)); c1 += 8; |
| 952 |
vfp16out1x01234567 = vfp16out1x89ABCDEF; |
| 953 |
vst1q_u16(c0, vreinterpretq_u16_f16(vfp16out0x01234567)); c0 += 8; |
| 954 |
vfp16out0x01234567 = vfp16out0x89ABCDEF; |
| 955 |
} |
| 956 |
float16x4_t vfp16out7x0123 = vget_low_f16(vfp16out7x01234567); |
| 957 |
float16x4_t vfp16out6x0123 = vget_low_f16(vfp16out6x01234567); |
| 958 |
float16x4_t vfp16out5x0123 = vget_low_f16(vfp16out5x01234567); |
| 959 |
float16x4_t vfp16out4x0123 = vget_low_f16(vfp16out4x01234567); |
| 960 |
float16x4_t vfp16out3x0123 = vget_low_f16(vfp16out3x01234567); |
| 961 |
float16x4_t vfp16out2x0123 = vget_low_f16(vfp16out2x01234567); |
| 962 |
float16x4_t vfp16out1x0123 = vget_low_f16(vfp16out1x01234567); |
| 963 |
float16x4_t vfp16out0x0123 = vget_low_f16(vfp16out0x01234567); |
| 964 |
if (nc & 4) { |
| 965 |
vst1_u16(c7, vreinterpret_u16_f16(vfp16out7x0123)); c7 += 4; |
| 966 |
vst1_u16(c6, vreinterpret_u16_f16(vfp16out6x0123)); c6 += 4; |
| 967 |
vst1_u16(c5, vreinterpret_u16_f16(vfp16out5x0123)); c5 += 4; |
| 968 |
vst1_u16(c4, vreinterpret_u16_f16(vfp16out4x0123)); c4 += 4; |
| 969 |
vst1_u16(c3, vreinterpret_u16_f16(vfp16out3x0123)); c3 += 4; |
| 970 |
vst1_u16(c2, vreinterpret_u16_f16(vfp16out2x0123)); c2 += 4; |
| 971 |
vst1_u16(c1, vreinterpret_u16_f16(vfp16out1x0123)); c1 += 4; |
| 972 |
vst1_u16(c0, vreinterpret_u16_f16(vfp16out0x0123)); c0 += 4; |
| 973 |
vfp16out7x0123 = vget_high_f16(vfp16out7x01234567); |
| 974 |
vfp16out6x0123 = vget_high_f16(vfp16out6x01234567); |
| 975 |
vfp16out5x0123 = vget_high_f16(vfp16out5x01234567); |
| 976 |
vfp16out4x0123 = vget_high_f16(vfp16out4x01234567); |
| 977 |
vfp16out3x0123 = vget_high_f16(vfp16out3x01234567); |
| 978 |
vfp16out2x0123 = vget_high_f16(vfp16out2x01234567); |
| 979 |
vfp16out1x0123 = vget_high_f16(vfp16out1x01234567); |
| 980 |
vfp16out0x0123 = vget_high_f16(vfp16out0x01234567); |
| 981 |
} |
| 982 |
if (nc & 2) { |
| 983 |
vst1_lane_u32((void*) c7, vreinterpret_u32_f16(vfp16out7x0123), 0); c7 += 2; |
| 984 |
vst1_lane_u32((void*) c6, vreinterpret_u32_f16(vfp16out6x0123), 0); c6 += 2; |
| 985 |
vst1_lane_u32((void*) c5, vreinterpret_u32_f16(vfp16out5x0123), 0); c5 += 2; |
| 986 |
vst1_lane_u32((void*) c4, vreinterpret_u32_f16(vfp16out4x0123), 0); c4 += 2; |
| 987 |
vst1_lane_u32((void*) c3, vreinterpret_u32_f16(vfp16out3x0123), 0); c3 += 2; |
| 988 |
vst1_lane_u32((void*) c2, vreinterpret_u32_f16(vfp16out2x0123), 0); c2 += 2; |
| 989 |
vst1_lane_u32((void*) c1, vreinterpret_u32_f16(vfp16out1x0123), 0); c1 += 2; |
| 990 |
vst1_lane_u32((void*) c0, vreinterpret_u32_f16(vfp16out0x0123), 0); c0 += 2; |
| 991 |
vfp16out7x0123 = vext_f16(vfp16out7x0123, vfp16out7x0123, 2); |
| 992 |
vfp16out6x0123 = vext_f16(vfp16out6x0123, vfp16out6x0123, 2); |
| 993 |
vfp16out5x0123 = vext_f16(vfp16out5x0123, vfp16out5x0123, 2); |
| 994 |
vfp16out4x0123 = vext_f16(vfp16out4x0123, vfp16out4x0123, 2); |
| 995 |
vfp16out3x0123 = vext_f16(vfp16out3x0123, vfp16out3x0123, 2); |
| 996 |
vfp16out2x0123 = vext_f16(vfp16out2x0123, vfp16out2x0123, 2); |
| 997 |
vfp16out1x0123 = vext_f16(vfp16out1x0123, vfp16out1x0123, 2); |
| 998 |
vfp16out0x0123 = vext_f16(vfp16out0x0123, vfp16out0x0123, 2); |
| 999 |
} |
| 1000 |
if (nc & 1) { |
| 1001 |
vst1_lane_u16(c7, vreinterpret_u16_f16(vfp16out7x0123), 0); |
| 1002 |
vst1_lane_u16(c6, vreinterpret_u16_f16(vfp16out6x0123), 0); |
| 1003 |
vst1_lane_u16(c5, vreinterpret_u16_f16(vfp16out5x0123), 0); |
| 1004 |
vst1_lane_u16(c4, vreinterpret_u16_f16(vfp16out4x0123), 0); |
| 1005 |
vst1_lane_u16(c3, vreinterpret_u16_f16(vfp16out3x0123), 0); |
| 1006 |
vst1_lane_u16(c2, vreinterpret_u16_f16(vfp16out2x0123), 0); |
| 1007 |
vst1_lane_u16(c1, vreinterpret_u16_f16(vfp16out1x0123), 0); |
| 1008 |
vst1_lane_u16(c0, vreinterpret_u16_f16(vfp16out0x0123), 0); |
| 1009 |
} |
| 1010 |
nc = 0; |
| 1011 |
} |
| 1012 |
} while (nc != 0); |
| 1013 |
} |