Subversion Repositories AFRtranscoder

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "jtest.h"
  2. #include "basic_math_test_data.h"
  3. #include "arr_desc.h"
  4. #include "arm_math.h"           /* FUTs */
  5. #include "ref.h"                /* Reference Functions */
  6. #include "test_templates.h"
  7. #include "basic_math_templates.h"
  8. #include "type_abbrev.h"
  9.  
  10. #define JTEST_ARM_SHIFT_TEST(suffix)                \
  11.     BASIC_MATH_DEFINE_TEST_TEMPLATE_BUF1_ELT1_BLK(  \
  12.         shift,                                      \
  13.         suffix,                                     \
  14.         TYPE_FROM_ABBREV(suffix),                   \
  15.         int8_t, /*elt_type*/                        \
  16.         TYPE_FROM_ABBREV(suffix))
  17.  
  18. JTEST_ARM_SHIFT_TEST(q31);
  19. JTEST_ARM_SHIFT_TEST(q15);
  20. JTEST_ARM_SHIFT_TEST(q7);
  21.  
  22. /*--------------------------------------------------------------------------------*/
  23. /* Collect all tests in a group. */
  24. /*--------------------------------------------------------------------------------*/
  25.  
  26. JTEST_DEFINE_GROUP(shift_tests)
  27. {
  28.     JTEST_TEST_CALL(arm_shift_q31_test);
  29.     JTEST_TEST_CALL(arm_shift_q15_test);
  30.     JTEST_TEST_CALL(arm_shift_q7_test);
  31. }
  32.