• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 Google LLC
2 //
3 // This source code is licensed under the BSD-style license found in the
4 // LICENSE file in the root directory of this source tree.
5 //
6 // Auto-generated file. Do not edit!
7 //   Specification: test/u32-filterbank-subtract.yaml
8 //   Generator: tools/generate-filterbank-subtract-test.py
9 
10 
11 #include <gtest/gtest.h>
12 
13 #include <xnnpack/common.h>
14 #include <xnnpack/isa-checks.h>
15 
16 #include <xnnpack/filterbank.h>
17 #include "filterbank-subtract-microkernel-tester.h"
18 
19 
TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2,batch_eq_2)20 TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2, batch_eq_2) {
21   FilterbankSubtractMicrokernelTester()
22     .batch(2)
23     .Test(xnn_u32_filterbank_subtract_ukernel__scalar_x2);
24 }
25 
TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2,batch_div_2)26 TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2, batch_div_2) {
27   for (size_t batch = 4; batch < 20; batch += 2) {
28     FilterbankSubtractMicrokernelTester()
29       .batch(batch)
30       .Test(xnn_u32_filterbank_subtract_ukernel__scalar_x2);
31   }
32 }
33 
TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2,batch_lt_2)34 TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2, batch_lt_2) {
35   for (size_t batch = 2; batch < 2; batch += 2) {
36     FilterbankSubtractMicrokernelTester()
37       .batch(batch)
38       .Test(xnn_u32_filterbank_subtract_ukernel__scalar_x2);
39   }
40 }
41 
TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2,batch_gt_2)42 TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2, batch_gt_2) {
43   for (size_t batch = 4; batch < 4; batch += 2) {
44     FilterbankSubtractMicrokernelTester()
45       .batch(batch)
46       .Test(xnn_u32_filterbank_subtract_ukernel__scalar_x2);
47   }
48 }
49 
TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2,inplace)50 TEST(U32_FILTERBANK_SUBTRACT__SCALAR_X2, inplace) {
51   for (size_t batch = 4; batch < 4; batch += 2) {
52     FilterbankSubtractMicrokernelTester()
53       .batch(batch)
54       .inplace(true)
55       .Test(xnn_u32_filterbank_subtract_ukernel__scalar_x2);
56   }
57 }