aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp')
-rw-r--r--src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp b/src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp
index 6e69ca0ada..1c461ee163 100644
--- a/src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp
+++ b/src/core/NEON/kernels/arm_conv/pooling/kernels/a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst/generic.cpp
@@ -65,23 +65,24 @@ void a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst_impl(
__asm__ __volatile__(
"ldr x15, [%x[args], %[offsetof_n_channels]]\n"
"mov x14, #0x0\n"
- "ldr x19, [%x[args], %[offsetof_outptrs]]\n"
+ "ldr x20, [%x[args], %[offsetof_outptrs]]\n"
"mov x13, #0x0\n"
- "ldp x12, x11, [x19, #0x0]\n"
- "cmp x15, #0x8\n"
- "ldp x10, x9, [x19, #0x10]\n"
"ldr x19, [%x[args], %[offsetof_inptrs]]\n"
+ "cmp x15, #0x8\n"
+ "ldp x12, x11, [x20, #0x0]\n"
+ "ldp x10, x9, [x20, #0x10]\n"
"ldp x28, x27, [x19, #0x0]\n"
"ldp x26, x25, [x19, #0x10]\n"
"ldp x24, x23, [x19, #0x20]\n"
"ldp x22, x21, [x19, #0x30]\n"
"ldr x20, [x19, #0x40]\n"
"blt 3f\n"
- "lsr x19, x15, #0x3\n"
- "sub x15, x15, x19, LSL #3\n"
"ldr q30, [x27, x14]\n"
+ "lsr x19, x15, #0x3\n"
"ldr q29, [x24, x14]\n"
+ "sub x15, x15, x19, LSL #3\n"
"ldr q28, [x21, x14]\n"
+ "subs x19, x19, #0x1\n"
"ldr q27, [x25, x14]\n"
"ldr q26, [x28, x14]\n"
"ldr q25, [x23, x14]\n"
@@ -89,11 +90,11 @@ void a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst_impl(
"ldr q23, [x22, x14]\n"
"ldr q22, [x20, x14]\n"
"add x14, x14, #0x10\n"
- "subs x19, x19, #0x1\n"
"beq 2f\n"
"1:" // Vector: Loop
"fmax v21.8h, v30.8h, v29.8h\n"
"ldr q30, [x27, x14]\n"
+ "subs x19, x19, #0x1\n"
"fmax v20.8h, v29.8h, v28.8h\n"
"ldr q29, [x24, x14]\n"
"fmax v19.8h, v27.8h, v26.8h\n"
@@ -110,14 +111,13 @@ void a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst_impl(
"ldr q23, [x22, x14]\n"
"fmax v17.8h, v20.8h, v17.8h\n"
"ldr q22, [x20, x14]\n"
- "fmax v16.8h, v20.8h, v16.8h\n"
"add x14, x14, #0x10\n"
+ "fmax v16.8h, v20.8h, v16.8h\n"
"str q19, [x12, x13]\n"
"str q18, [x11, x13]\n"
"str q17, [x10, x13]\n"
"str q16, [x9, x13]\n"
"add x13, x13, #0x10\n"
- "subs x19, x19, #0x1\n"
"bgt 1b\n"
"2:" // Vector: Tail
"fmax v21.8h, v30.8h, v29.8h\n"
@@ -138,6 +138,7 @@ void a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst_impl(
"cbz x15, 4f\n"
"3:" // Oddments
"ldr h30, [x27, x14]\n"
+ "subs x15, x15, #0x1\n"
"ldr h29, [x24, x14]\n"
"fmax v21.8h, v30.8h, v29.8h\n"
"ldr h28, [x21, x14]\n"
@@ -152,9 +153,8 @@ void a64_fp16_nhwc_max_2x2_s1_output2x2_depthfirst_impl(
"ldr h22, [x20, x14]\n"
"add x14, x14, #0x2\n"
"fmax v18.8h, v25.8h, v24.8h\n"
- "subs x15, x15, #0x1\n"
- "fmax v17.8h, v23.8h, v27.8h\n"
"str h19, [x12, x13]\n"
+ "fmax v17.8h, v23.8h, v27.8h\n"
"fmax v16.8h, v25.8h, v22.8h\n"
"fmax v18.8h, v21.8h, v18.8h\n"
"str h18, [x11, x13]\n"