Additional Sigmoid micro-kernels and accuracy evaluation stub
- PSIMD micro-kernels and accuracy evaluation stubs
- ARM NEON micro-kernels using 2048-entry table lookups
- ARM NEON micro-kernels with alternative division implementations
- ARM NEON micro-kernels without FMA
- x4..x24 version of all SIMD micro-kernels
- Eliminated comparison with one_cutoff & corresponding blend in all
micro-kernels
PiperOrigin-RevId: 287804583
diff --git a/test/f32-sigmoid.cc b/test/f32-sigmoid.cc
index 4b63d7c..71eabd4 100644
--- a/test/f32-sigmoid.cc
+++ b/test/f32-sigmoid.cc
@@ -17,6 +17,429 @@
#include "vunary-microkernel-tester.h"
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_DIV_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X16, batch_eq_16) {
TEST_REQUIRES_ARM_NEON_FMA;
@@ -65,6 +488,2356 @@
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2FMA_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR1RECPS1FMA_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_P5_NR2RECPS_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_P5_NR2RECPS_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_p5_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_DIV_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2FMA_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR1RECPS1FMA_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr1recps1fma_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEONFMA_LUT2048_P1_NR2RECPS_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON_FMA;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neonfma_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X4, batch_eq_4) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X4, batch_div_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X4, batch_lt_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X4, batch_gt_4) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X4, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X8, batch_eq_8) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X8, batch_div_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X8, batch_lt_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X8, batch_gt_8) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X8, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X12, batch_eq_12) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X12, batch_div_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X12, batch_lt_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X12, batch_gt_12) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X12, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X16, batch_eq_16) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X16, batch_div_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X16, batch_lt_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X16, batch_gt_16) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X16, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X20, batch_eq_20) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X20, batch_div_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X20, batch_lt_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X20, batch_gt_20) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X20, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X24, batch_eq_24) {
+ TEST_REQUIRES_ARM_NEON;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X24, batch_div_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X24, batch_lt_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X24, batch_gt_24) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__NEON_LUT2048_P1_NR2RECPS_X24, inplace) {
+ TEST_REQUIRES_ARM_NEON;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__neon_lut2048_p1_nr2recps_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
+
+
+#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(F32_SIGMOID__NEON_FRAC_P9_P10_NR1RECPS_X16, batch_eq_16) {
TEST_REQUIRES_ARM_NEON;
VUnOpMicrokernelTester()
@@ -112,6 +2885,53 @@
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X4, batch_eq_4) {
+ TEST_REQUIRES_X86_SSE2;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X4, batch_div_4) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X4, batch_lt_4) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X4, batch_gt_4) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X4, inplace) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(F32_SIGMOID__SSE2_P5_DIV_X8, batch_eq_8) {
TEST_REQUIRES_X86_SSE2;
VUnOpMicrokernelTester()
@@ -159,6 +2979,53 @@
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X12, batch_eq_12) {
+ TEST_REQUIRES_X86_SSE2;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X12, batch_div_12) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X12, batch_lt_12) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X12, batch_gt_12) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X12, inplace) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(F32_SIGMOID__SSE2_P5_DIV_X16, batch_eq_16) {
TEST_REQUIRES_X86_SSE2;
VUnOpMicrokernelTester()
@@ -205,6 +3072,664 @@
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X20, batch_eq_20) {
+ TEST_REQUIRES_X86_SSE2;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X20, batch_div_20) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X20, batch_lt_20) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X20, batch_gt_20) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X20, inplace) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X24, batch_eq_24) {
+ TEST_REQUIRES_X86_SSE2;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X24, batch_div_24) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X24, batch_lt_24) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X24, batch_gt_24) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE2_P5_DIV_X24, inplace) {
+ TEST_REQUIRES_X86_SSE2;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse2_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X4, batch_eq_4) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X4, batch_div_4) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X4, batch_lt_4) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X4, batch_gt_4) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X4, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X8, batch_eq_8) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X8, batch_div_8) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X8, batch_lt_8) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X8, batch_gt_8) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X8, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X12, batch_eq_12) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X12, batch_div_12) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X12, batch_lt_12) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X12, batch_gt_12) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X12, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X16, batch_eq_16) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X16, batch_div_16) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X16, batch_lt_16) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X16, batch_gt_16) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X16, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X20, batch_eq_20) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X20, batch_div_20) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X20, batch_lt_20) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X20, batch_gt_20) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X20, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if XNN_ARCH_X86 || XNN_ARCH_X86_64
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X24, batch_eq_24) {
+ TEST_REQUIRES_X86_SSE41;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X24, batch_div_24) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X24, batch_lt_24) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X24, batch_gt_24) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+
+ TEST(F32_SIGMOID__SSE41_P5_DIV_X24, inplace) {
+ TEST_REQUIRES_X86_SSE41;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__sse41_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid);
+ }
+ }
+#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X4, batch_eq_4) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(4)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X4, batch_div_4) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 8; batch_size < 40; batch_size += 4) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X4, batch_lt_4) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 4; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X4, batch_gt_4) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 5; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X4, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 20; batch_size += 3) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x4, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X8, batch_eq_8) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(8)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X8, batch_div_8) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 16; batch_size < 80; batch_size += 8) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X8, batch_lt_8) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 8; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X8, batch_gt_8) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 9; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X8, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 40; batch_size += 7) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x8, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X12, batch_eq_12) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(12)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X12, batch_div_12) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 24; batch_size < 120; batch_size += 12) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X12, batch_lt_12) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 12; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X12, batch_gt_12) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 13; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X12, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 60; batch_size += 11) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x12, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X16, batch_eq_16) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(16)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X16, batch_div_16) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 32; batch_size < 160; batch_size += 16) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X16, batch_lt_16) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 16; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X16, batch_gt_16) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 17; batch_size < 32; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X16, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 80; batch_size += 15) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x16, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X20, batch_eq_20) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(20)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X20, batch_div_20) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 40; batch_size < 200; batch_size += 20) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X20, batch_lt_20) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 20; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X20, batch_gt_20) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 21; batch_size < 40; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X20, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 100; batch_size += 19) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x20, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
+#if !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X24, batch_eq_24) {
+ TEST_REQUIRES_PSIMD;
+ VUnOpMicrokernelTester()
+ .batch_size(24)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X24, batch_div_24) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 48; batch_size < 240; batch_size += 24) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X24, batch_lt_24) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size < 24; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X24, batch_gt_24) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 25; batch_size < 48; batch_size++) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+
+ TEST(F32_SIGMOID__PSIMD_P5_DIV_X24, inplace) {
+ TEST_REQUIRES_PSIMD;
+ for (size_t batch_size = 1; batch_size <= 120; batch_size += 23) {
+ VUnOpMicrokernelTester()
+ .batch_size(batch_size)
+ .inplace(true)
+ .Test(xnn_f32_sigmoid_ukernel__psimd_p5_div_x24, VUnOpMicrokernelTester::OpType::Sigmoid, VUnOpMicrokernelTester::Variant::Scalar);
+ }
+ }
+#endif // !XNN_ARCH_ASMJS && !XNN_ARCH_WASM
+
+
TEST(F32_SIGMOID__SCALAR_LUT2048_P1_DIV_X1, batch_eq_1) {
VUnOpMicrokernelTester()
.batch_size(1)