F32->QS8/QU8 CVT evaluation stubs for NEON and NEON v8
Prototype a more efficient quantization algorithm through exhaustive search
PiperOrigin-RevId: 413603996
diff --git a/BUILD.bazel b/BUILD.bazel
index 21646b4..2be94c8 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -2463,6 +2463,8 @@
"src/math/cvt-f16-f32-neon-int16.c",
"src/math/cvt-f16-f32-neon-int32.c",
"src/math/cvt-f32-f16-neon.c",
+ "src/math/cvt-f32-qs8-neon.c",
+ "src/math/cvt-f32-qu8-neon.c",
"src/math/expm1minus-neon-rr2-lut16-p3.c",
"src/math/expm1minus-neon-rr2-p6.c",
"src/math/roundd-neon-addsub.c",
@@ -3594,6 +3596,8 @@
"src/f32-qu8-vcvt/gen/vcvt-neonv8-x16.c",
"src/f32-qu8-vcvt/gen/vcvt-neonv8-x24.c",
"src/f32-qu8-vcvt/gen/vcvt-neonv8-x32.c",
+ "src/math/cvt-f32-qs8-neonv8.c",
+ "src/math/cvt-f32-qu8-neonv8.c",
"src/math/roundd-neonv8.c",
"src/math/roundne-neonv8.c",
"src/math/roundu-neonv8.c",
@@ -9328,6 +9332,28 @@
)
xnnpack_unit_test(
+ name = "f32_qs8_cvt_eval",
+ srcs = [
+ "eval/f32-qs8-cvt.cc",
+ "src/xnnpack/AlignedAllocator.h",
+ "src/xnnpack/math-stubs.h",
+ ] + MICROKERNEL_TEST_HDRS,
+ automatic = False,
+ deps = MICROKERNEL_TEST_DEPS,
+)
+
+xnnpack_unit_test(
+ name = "f32_qu8_cvt_eval",
+ srcs = [
+ "eval/f32-qu8-cvt.cc",
+ "src/xnnpack/AlignedAllocator.h",
+ "src/xnnpack/math-stubs.h",
+ ] + MICROKERNEL_TEST_HDRS,
+ automatic = False,
+ deps = MICROKERNEL_TEST_DEPS,
+)
+
+xnnpack_unit_test(
name = "f32_exp_eval",
srcs = [
"eval/f32-exp.cc",