// Copyright 2019 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. // // Auto-generated file. Do not edit! // Microkernel: f32-vsqrt // Generator: tools/generate-vunary-test.py #include #include #include #include #include #include #include "xnnpack.h" #include "xnnpack/common.h" #include "xnnpack/isa-checks.h" #include "xnnpack/microparams-init.h" #include "xnnpack/microparams.h" #include "xnnpack/vunary.h" #include "next_prime.h" #include "vunary-microkernel-tester.h" using TestInfo = SquareRoot; #define XNN_QUANTIZED(T) xnnpack::quantized #define XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, batch_tile, vector_tile, datatype, params_type, init_params) \ TEST(ukernel, batch_eq) { TestBatchEq(arch_flags, batch_tile, ukernel, init_params); } \ TEST(ukernel, batch_div) { TestBatchDiv(arch_flags, batch_tile, ukernel, init_params); }\ TEST(ukernel, batch_lt) { TestBatchLT(arch_flags, batch_tile, ukernel, init_params); } \ TEST(ukernel, batch_gt) { TestBatchGT(arch_flags, batch_tile, ukernel, init_params); } \ TEST(ukernel, inplace) { TestInPlace(arch_flags, batch_tile, ukernel, init_params); } \ TEST(ukernel, special_values) { \ TEST_REQUIRES_ARCH_FLAGS(arch_flags); \ VUnaryMicrokernelTester().Test(ukernel, init_params, \ /*inputs=*/{0.0f, -0.0f, 1.0f, -1.0f}, \ /*outputs=*/{0.0f, -0.0f, 1.0f, NAN}, \ /*tolerance_ulp=*/1); \ } #include "f32-vsqrt/f32-vsqrt.h" #undef XNN_UKERNEL_WITH_PARAMS #undef XNN_QUANTIZED