Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 1 | // Copyright 2019 Google LLC |
| 2 | // |
| 3 | // This source code is licensed under the BSD-style license found in the |
| 4 | // LICENSE file in the root directory of this source tree. |
| 5 | // |
| 6 | // Auto-generated file. Do not edit! |
| 7 | // Specification: test/f32-vrdivc.yaml |
| 8 | // Generator: tools/generate-vbinary-test.py |
| 9 | |
| 10 | |
| 11 | #include <gtest/gtest.h> |
| 12 | |
| 13 | #include <xnnpack/common.h> |
| 14 | #include <xnnpack/isa-checks.h> |
| 15 | |
Marat Dukhan | 87bd511 | 2021-08-02 11:43:53 -0700 | [diff] [blame^] | 16 | #include <xnnpack/params-init.h> |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 17 | #include <xnnpack/vbinary.h> |
| 18 | #include "vbinaryc-microkernel-tester.h" |
| 19 | |
| 20 | |
| 21 | #if XNN_ARCH_WASMSIMD |
| 22 | TEST(F32_VRDIVC__WASMSIMD_X4, batch_eq_4) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 23 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 24 | .batch_size(4) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 25 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x4, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | TEST(F32_VRDIVC__WASMSIMD_X4, batch_div_4) { |
| 29 | for (size_t batch_size = 8; batch_size < 40; batch_size += 4) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 30 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 31 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 32 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x4, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 33 | } |
| 34 | } |
| 35 | |
| 36 | TEST(F32_VRDIVC__WASMSIMD_X4, batch_lt_4) { |
| 37 | for (size_t batch_size = 1; batch_size < 4; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 38 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 39 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 40 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x4, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 41 | } |
| 42 | } |
| 43 | |
| 44 | TEST(F32_VRDIVC__WASMSIMD_X4, batch_gt_4) { |
| 45 | for (size_t batch_size = 5; batch_size < 8; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 46 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 47 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 48 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x4, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 49 | } |
| 50 | } |
| 51 | |
| 52 | TEST(F32_VRDIVC__WASMSIMD_X4, inplace) { |
| 53 | for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 54 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 55 | .batch_size(batch_size) |
| 56 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 57 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x4, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 58 | } |
| 59 | } |
| 60 | #endif // XNN_ARCH_WASMSIMD |
| 61 | |
| 62 | |
| 63 | #if XNN_ARCH_WASMSIMD |
| 64 | TEST(F32_VRDIVC__WASMSIMD_X8, batch_eq_8) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 65 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 66 | .batch_size(8) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 67 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x8, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | TEST(F32_VRDIVC__WASMSIMD_X8, batch_div_8) { |
| 71 | for (size_t batch_size = 16; batch_size < 80; batch_size += 8) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 72 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 73 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 74 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x8, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 75 | } |
| 76 | } |
| 77 | |
| 78 | TEST(F32_VRDIVC__WASMSIMD_X8, batch_lt_8) { |
| 79 | for (size_t batch_size = 1; batch_size < 8; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 80 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 81 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 82 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x8, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 83 | } |
| 84 | } |
| 85 | |
| 86 | TEST(F32_VRDIVC__WASMSIMD_X8, batch_gt_8) { |
| 87 | for (size_t batch_size = 9; batch_size < 16; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 88 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 89 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 90 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x8, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 91 | } |
| 92 | } |
| 93 | |
| 94 | TEST(F32_VRDIVC__WASMSIMD_X8, inplace) { |
| 95 | for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 96 | VBinaryCMicrokernelTester() |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 97 | .batch_size(batch_size) |
| 98 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 99 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x8, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 100 | } |
| 101 | } |
| 102 | #endif // XNN_ARCH_WASMSIMD |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 103 | |
| 104 | |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 105 | #if XNN_ARCH_WASMSIMD |
| 106 | TEST(F32_VRDIVC__WASMSIMD_X16, batch_eq_16) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 107 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 108 | .batch_size(16) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 109 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x16, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 110 | } |
| 111 | |
| 112 | TEST(F32_VRDIVC__WASMSIMD_X16, batch_div_16) { |
| 113 | for (size_t batch_size = 32; batch_size < 160; batch_size += 16) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 114 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 115 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 116 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x16, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 117 | } |
| 118 | } |
| 119 | |
| 120 | TEST(F32_VRDIVC__WASMSIMD_X16, batch_lt_16) { |
| 121 | for (size_t batch_size = 1; batch_size < 16; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 122 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 123 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 124 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x16, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 125 | } |
| 126 | } |
| 127 | |
| 128 | TEST(F32_VRDIVC__WASMSIMD_X16, batch_gt_16) { |
| 129 | for (size_t batch_size = 17; batch_size < 32; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 130 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 131 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 132 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x16, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 133 | } |
| 134 | } |
| 135 | |
| 136 | TEST(F32_VRDIVC__WASMSIMD_X16, inplace) { |
| 137 | for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 138 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 139 | .batch_size(batch_size) |
| 140 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 141 | .Test(xnn_f32_vrdivc_ukernel__wasmsimd_x16, VBinaryCMicrokernelTester::OpType::RDivC); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 142 | } |
| 143 | } |
| 144 | #endif // XNN_ARCH_WASMSIMD |
| 145 | |
| 146 | |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 147 | TEST(F32_VRDIVC__SCALAR_X1, batch_eq_1) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 148 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 149 | .batch_size(1) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 150 | .Test(xnn_f32_vrdivc_ukernel__scalar_x1, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 151 | } |
| 152 | |
| 153 | TEST(F32_VRDIVC__SCALAR_X1, batch_gt_1) { |
| 154 | for (size_t batch_size = 2; batch_size < 10; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 155 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 156 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 157 | .Test(xnn_f32_vrdivc_ukernel__scalar_x1, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 158 | } |
| 159 | } |
| 160 | |
| 161 | TEST(F32_VRDIVC__SCALAR_X1, inplace) { |
| 162 | for (size_t batch_size = 1; batch_size <= 5; batch_size += 1) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 163 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 164 | .batch_size(batch_size) |
| 165 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 166 | .Test(xnn_f32_vrdivc_ukernel__scalar_x1, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 167 | } |
| 168 | } |
| 169 | |
| 170 | |
| 171 | TEST(F32_VRDIVC__SCALAR_X2, batch_eq_2) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 172 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 173 | .batch_size(2) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 174 | .Test(xnn_f32_vrdivc_ukernel__scalar_x2, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | TEST(F32_VRDIVC__SCALAR_X2, batch_div_2) { |
| 178 | for (size_t batch_size = 4; batch_size < 20; batch_size += 2) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 179 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 180 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 181 | .Test(xnn_f32_vrdivc_ukernel__scalar_x2, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 182 | } |
| 183 | } |
| 184 | |
| 185 | TEST(F32_VRDIVC__SCALAR_X2, batch_lt_2) { |
| 186 | for (size_t batch_size = 1; batch_size < 2; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 187 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 188 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 189 | .Test(xnn_f32_vrdivc_ukernel__scalar_x2, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 190 | } |
| 191 | } |
| 192 | |
| 193 | TEST(F32_VRDIVC__SCALAR_X2, batch_gt_2) { |
| 194 | for (size_t batch_size = 3; batch_size < 4; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 195 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 196 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 197 | .Test(xnn_f32_vrdivc_ukernel__scalar_x2, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 198 | } |
| 199 | } |
| 200 | |
| 201 | TEST(F32_VRDIVC__SCALAR_X2, inplace) { |
| 202 | for (size_t batch_size = 1; batch_size <= 10; batch_size += 1) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 203 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 204 | .batch_size(batch_size) |
| 205 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 206 | .Test(xnn_f32_vrdivc_ukernel__scalar_x2, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 207 | } |
| 208 | } |
| 209 | |
| 210 | |
| 211 | TEST(F32_VRDIVC__SCALAR_X4, batch_eq_4) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 212 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 213 | .batch_size(4) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 214 | .Test(xnn_f32_vrdivc_ukernel__scalar_x4, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | TEST(F32_VRDIVC__SCALAR_X4, batch_div_4) { |
| 218 | for (size_t batch_size = 8; batch_size < 40; batch_size += 4) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 219 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 220 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 221 | .Test(xnn_f32_vrdivc_ukernel__scalar_x4, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 222 | } |
| 223 | } |
| 224 | |
| 225 | TEST(F32_VRDIVC__SCALAR_X4, batch_lt_4) { |
| 226 | for (size_t batch_size = 1; batch_size < 4; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 227 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 228 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 229 | .Test(xnn_f32_vrdivc_ukernel__scalar_x4, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 230 | } |
| 231 | } |
| 232 | |
| 233 | TEST(F32_VRDIVC__SCALAR_X4, batch_gt_4) { |
| 234 | for (size_t batch_size = 5; batch_size < 8; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 235 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 236 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 237 | .Test(xnn_f32_vrdivc_ukernel__scalar_x4, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 238 | } |
| 239 | } |
| 240 | |
| 241 | TEST(F32_VRDIVC__SCALAR_X4, inplace) { |
| 242 | for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 243 | VBinaryCMicrokernelTester() |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 244 | .batch_size(batch_size) |
| 245 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 246 | .Test(xnn_f32_vrdivc_ukernel__scalar_x4, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 247 | } |
| 248 | } |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 249 | |
| 250 | |
| 251 | TEST(F32_VRDIVC__SCALAR_X8, batch_eq_8) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 252 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 253 | .batch_size(8) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 254 | .Test(xnn_f32_vrdivc_ukernel__scalar_x8, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 255 | } |
| 256 | |
| 257 | TEST(F32_VRDIVC__SCALAR_X8, batch_div_8) { |
| 258 | for (size_t batch_size = 16; batch_size < 80; batch_size += 8) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 259 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 260 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 261 | .Test(xnn_f32_vrdivc_ukernel__scalar_x8, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 262 | } |
| 263 | } |
| 264 | |
| 265 | TEST(F32_VRDIVC__SCALAR_X8, batch_lt_8) { |
| 266 | for (size_t batch_size = 1; batch_size < 8; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 267 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 268 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 269 | .Test(xnn_f32_vrdivc_ukernel__scalar_x8, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 270 | } |
| 271 | } |
| 272 | |
| 273 | TEST(F32_VRDIVC__SCALAR_X8, batch_gt_8) { |
| 274 | for (size_t batch_size = 9; batch_size < 16; batch_size++) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 275 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 276 | .batch_size(batch_size) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 277 | .Test(xnn_f32_vrdivc_ukernel__scalar_x8, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 278 | } |
| 279 | } |
| 280 | |
| 281 | TEST(F32_VRDIVC__SCALAR_X8, inplace) { |
| 282 | for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) { |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 283 | VBinaryCMicrokernelTester() |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 284 | .batch_size(batch_size) |
| 285 | .inplace(true) |
Marat Dukhan | 10f1fe0 | 2021-05-13 12:51:12 -0700 | [diff] [blame] | 286 | .Test(xnn_f32_vrdivc_ukernel__scalar_x8, VBinaryCMicrokernelTester::OpType::RDivC, VBinaryCMicrokernelTester::Variant::Scalar); |
Frank Barchard | 9c7308f | 2020-08-31 17:03:01 -0700 | [diff] [blame] | 287 | } |
| 288 | } |