diff --git a/test/convolve_test.cc b/test/convolve_test.cc index 73b0edb99..e1ce056aa 100644 --- a/test/convolve_test.cc +++ b/test/convolve_test.cc @@ -989,14 +989,12 @@ void wrap_ ## func ## _ ## bd(const uint8_t *src, ptrdiff_t src_stride, \ w, h, bd); \ } #if HAVE_SSE2 && ARCH_X86_64 -#if CONFIG_USE_X86INC WRAP(convolve_copy_sse2, 8) WRAP(convolve_avg_sse2, 8) WRAP(convolve_copy_sse2, 10) WRAP(convolve_avg_sse2, 10) WRAP(convolve_copy_sse2, 12) WRAP(convolve_avg_sse2, 12) -#endif // CONFIG_USE_X86INC WRAP(convolve8_horiz_sse2, 8) WRAP(convolve8_avg_horiz_sse2, 8) WRAP(convolve8_vert_sse2, 8) @@ -1090,11 +1088,7 @@ INSTANTIATE_TEST_CASE_P(C, ConvolveTest, #if HAVE_SSE2 && ARCH_X86_64 #if CONFIG_VP9_HIGHBITDEPTH const ConvolveFunctions convolve8_sse2( -#if CONFIG_USE_X86INC wrap_convolve_copy_sse2_8, wrap_convolve_avg_sse2_8, -#else - wrap_convolve_copy_c_8, wrap_convolve_avg_c_8, -#endif // CONFIG_USE_X86INC wrap_convolve8_horiz_sse2_8, wrap_convolve8_avg_horiz_sse2_8, wrap_convolve8_vert_sse2_8, wrap_convolve8_avg_vert_sse2_8, wrap_convolve8_sse2_8, wrap_convolve8_avg_sse2_8, @@ -1102,11 +1096,7 @@ const ConvolveFunctions convolve8_sse2( wrap_convolve8_vert_sse2_8, wrap_convolve8_avg_vert_sse2_8, wrap_convolve8_sse2_8, wrap_convolve8_avg_sse2_8, 8); const ConvolveFunctions convolve10_sse2( -#if CONFIG_USE_X86INC wrap_convolve_copy_sse2_10, wrap_convolve_avg_sse2_10, -#else - wrap_convolve_copy_c_10, wrap_convolve_avg_c_10, -#endif // CONFIG_USE_X86INC wrap_convolve8_horiz_sse2_10, wrap_convolve8_avg_horiz_sse2_10, wrap_convolve8_vert_sse2_10, wrap_convolve8_avg_vert_sse2_10, wrap_convolve8_sse2_10, wrap_convolve8_avg_sse2_10, @@ -1114,11 +1104,7 @@ const ConvolveFunctions convolve10_sse2( wrap_convolve8_vert_sse2_10, wrap_convolve8_avg_vert_sse2_10, wrap_convolve8_sse2_10, wrap_convolve8_avg_sse2_10, 10); const ConvolveFunctions convolve12_sse2( -#if CONFIG_USE_X86INC wrap_convolve_copy_sse2_12, wrap_convolve_avg_sse2_12, -#else - wrap_convolve_copy_c_12, wrap_convolve_avg_c_12, -#endif // CONFIG_USE_X86INC wrap_convolve8_horiz_sse2_12, wrap_convolve8_avg_horiz_sse2_12, wrap_convolve8_vert_sse2_12, wrap_convolve8_avg_vert_sse2_12, wrap_convolve8_sse2_12, wrap_convolve8_avg_sse2_12, @@ -1132,11 +1118,7 @@ const ConvolveParam kArrayConvolve_sse2[] = { }; #else const ConvolveFunctions convolve8_sse2( -#if CONFIG_USE_X86INC vpx_convolve_copy_sse2, vpx_convolve_avg_sse2, -#else - vpx_convolve_copy_c, vpx_convolve_avg_c, -#endif // CONFIG_USE_X86INC vpx_convolve8_horiz_sse2, vpx_convolve8_avg_horiz_sse2, vpx_convolve8_vert_sse2, vpx_convolve8_avg_vert_sse2, vpx_convolve8_sse2, vpx_convolve8_avg_sse2, diff --git a/test/fdct4x4_test.cc b/test/fdct4x4_test.cc index 735cccf8d..a24085606 100644 --- a/test/fdct4x4_test.cc +++ b/test/fdct4x4_test.cc @@ -487,7 +487,7 @@ INSTANTIATE_TEST_CASE_P( make_tuple(&vp9_fht4x4_c, &vp9_iht4x4_16_add_neon, 3, VPX_BITS_8))); #endif // HAVE_NEON && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE -#if CONFIG_USE_X86INC && HAVE_SSE2 && !CONFIG_EMULATE_HARDWARE +#if HAVE_SSE2 && !CONFIG_EMULATE_HARDWARE INSTANTIATE_TEST_CASE_P( SSE2, Trans4x4WHT, ::testing::Values( diff --git a/test/fdct8x8_test.cc b/test/fdct8x8_test.cc index 29f215817..083ee6628 100644 --- a/test/fdct8x8_test.cc +++ b/test/fdct8x8_test.cc @@ -766,7 +766,7 @@ INSTANTIATE_TEST_CASE_P( &idct8x8_64_add_12_sse2, 6225, VPX_BITS_12))); #endif // HAVE_SSE2 && CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE -#if HAVE_SSSE3 && CONFIG_USE_X86INC && ARCH_X86_64 && \ +#if HAVE_SSSE3 && ARCH_X86_64 && \ !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE INSTANTIATE_TEST_CASE_P( SSSE3, FwdTrans8x8DCT, diff --git a/test/hadamard_test.cc b/test/hadamard_test.cc index 7a5bd5b4c..b8eec523f 100644 --- a/test/hadamard_test.cc +++ b/test/hadamard_test.cc @@ -152,10 +152,10 @@ INSTANTIATE_TEST_CASE_P(SSE2, Hadamard8x8Test, ::testing::Values(&vpx_hadamard_8x8_sse2)); #endif // HAVE_SSE2 -#if HAVE_SSSE3 && CONFIG_USE_X86INC && ARCH_X86_64 +#if HAVE_SSSE3 && ARCH_X86_64 INSTANTIATE_TEST_CASE_P(SSSE3, Hadamard8x8Test, ::testing::Values(&vpx_hadamard_8x8_ssse3)); -#endif // HAVE_SSSE3 && CONFIG_USE_X86INC && ARCH_X86_64 +#endif // HAVE_SSSE3 && ARCH_X86_64 #if HAVE_NEON INSTANTIATE_TEST_CASE_P(NEON, Hadamard8x8Test, diff --git a/test/partial_idct_test.cc b/test/partial_idct_test.cc index 6c824128b..1efb1a4eb 100644 --- a/test/partial_idct_test.cc +++ b/test/partial_idct_test.cc @@ -295,7 +295,7 @@ INSTANTIATE_TEST_CASE_P( TX_4X4, 1))); #endif -#if HAVE_SSSE3 && CONFIG_USE_X86INC && ARCH_X86_64 && \ +#if HAVE_SSSE3 && ARCH_X86_64 && \ !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE INSTANTIATE_TEST_CASE_P( SSSE3_64, PartialIDctTest, diff --git a/test/sad_test.cc b/test/sad_test.cc index e6bd0d793..fa7b6c840 100644 --- a/test/sad_test.cc +++ b/test/sad_test.cc @@ -690,7 +690,6 @@ INSTANTIATE_TEST_CASE_P(NEON, SADx4Test, ::testing::ValuesIn(x4d_neon_tests)); //------------------------------------------------------------------------------ // x86 functions #if HAVE_SSE2 -#if CONFIG_USE_X86INC const SadMxNParam sse2_tests[] = { make_tuple(64, 64, &vpx_sad64x64_sse2, -1), make_tuple(64, 32, &vpx_sad64x32_sse2, -1), @@ -852,7 +851,6 @@ const SadMxNx4Param x4d_sse2_tests[] = { #endif // CONFIG_VP9_HIGHBITDEPTH }; INSTANTIATE_TEST_CASE_P(SSE2, SADx4Test, ::testing::ValuesIn(x4d_sse2_tests)); -#endif // CONFIG_USE_X86INC #endif // HAVE_SSE2 #if HAVE_SSE3 diff --git a/test/test_intra_pred_speed.cc b/test/test_intra_pred_speed.cc index 2acf744d5..8928bf87c 100644 --- a/test/test_intra_pred_speed.cc +++ b/test/test_intra_pred_speed.cc @@ -187,21 +187,21 @@ INTRA_PRED_TEST(C, TestIntraPred4, vpx_dc_predictor_4x4_c, vpx_d153_predictor_4x4_c, vpx_d207_predictor_4x4_c, vpx_d63_predictor_4x4_c, vpx_tm_predictor_4x4_c) -#if HAVE_SSE2 && CONFIG_USE_X86INC +#if HAVE_SSE2 INTRA_PRED_TEST(SSE2, TestIntraPred4, vpx_dc_predictor_4x4_sse2, vpx_dc_left_predictor_4x4_sse2, vpx_dc_top_predictor_4x4_sse2, vpx_dc_128_predictor_4x4_sse2, vpx_v_predictor_4x4_sse2, vpx_h_predictor_4x4_sse2, vpx_d45_predictor_4x4_sse2, NULL, NULL, NULL, vpx_d207_predictor_4x4_sse2, NULL, vpx_tm_predictor_4x4_sse2) -#endif // HAVE_SSE2 && CONFIG_USE_X86INC +#endif // HAVE_SSE2 -#if HAVE_SSSE3 && CONFIG_USE_X86INC +#if HAVE_SSSE3 INTRA_PRED_TEST(SSSE3, TestIntraPred4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, vpx_d153_predictor_4x4_ssse3, NULL, vpx_d63_predictor_4x4_ssse3, NULL) -#endif // HAVE_SSSE3 && CONFIG_USE_X86INC +#endif // HAVE_SSSE3 #if HAVE_DSPR2 INTRA_PRED_TEST(DSPR2, TestIntraPred4, vpx_dc_predictor_4x4_dspr2, NULL, NULL, @@ -237,20 +237,20 @@ INTRA_PRED_TEST(C, TestIntraPred8, vpx_dc_predictor_8x8_c, vpx_d153_predictor_8x8_c, vpx_d207_predictor_8x8_c, vpx_d63_predictor_8x8_c, vpx_tm_predictor_8x8_c) -#if HAVE_SSE2 && CONFIG_USE_X86INC +#if HAVE_SSE2 INTRA_PRED_TEST(SSE2, TestIntraPred8, vpx_dc_predictor_8x8_sse2, vpx_dc_left_predictor_8x8_sse2, vpx_dc_top_predictor_8x8_sse2, vpx_dc_128_predictor_8x8_sse2, vpx_v_predictor_8x8_sse2, vpx_h_predictor_8x8_sse2, vpx_d45_predictor_8x8_sse2, NULL, NULL, NULL, NULL, NULL, vpx_tm_predictor_8x8_sse2) -#endif // HAVE_SSE2 && CONFIG_USE_X86INC +#endif // HAVE_SSE2 -#if HAVE_SSSE3 && CONFIG_USE_X86INC +#if HAVE_SSSE3 INTRA_PRED_TEST(SSSE3, TestIntraPred8, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, vpx_d153_predictor_8x8_ssse3, vpx_d207_predictor_8x8_ssse3, vpx_d63_predictor_8x8_ssse3, NULL) -#endif // HAVE_SSSE3 && CONFIG_USE_X86INC +#endif // HAVE_SSSE3 #if HAVE_DSPR2 INTRA_PRED_TEST(DSPR2, TestIntraPred8, vpx_dc_predictor_8x8_dspr2, NULL, NULL, @@ -286,22 +286,22 @@ INTRA_PRED_TEST(C, TestIntraPred16, vpx_dc_predictor_16x16_c, vpx_d153_predictor_16x16_c, vpx_d207_predictor_16x16_c, vpx_d63_predictor_16x16_c, vpx_tm_predictor_16x16_c) -#if HAVE_SSE2 && CONFIG_USE_X86INC +#if HAVE_SSE2 INTRA_PRED_TEST(SSE2, TestIntraPred16, vpx_dc_predictor_16x16_sse2, vpx_dc_left_predictor_16x16_sse2, vpx_dc_top_predictor_16x16_sse2, vpx_dc_128_predictor_16x16_sse2, vpx_v_predictor_16x16_sse2, vpx_h_predictor_16x16_sse2, NULL, NULL, NULL, NULL, NULL, NULL, vpx_tm_predictor_16x16_sse2) -#endif // HAVE_SSE2 && CONFIG_USE_X86INC +#endif // HAVE_SSE2 -#if HAVE_SSSE3 && CONFIG_USE_X86INC +#if HAVE_SSSE3 INTRA_PRED_TEST(SSSE3, TestIntraPred16, NULL, NULL, NULL, NULL, NULL, NULL, vpx_d45_predictor_16x16_ssse3, NULL, NULL, vpx_d153_predictor_16x16_ssse3, vpx_d207_predictor_16x16_ssse3, vpx_d63_predictor_16x16_ssse3, NULL) -#endif // HAVE_SSSE3 && CONFIG_USE_X86INC +#endif // HAVE_SSSE3 #if HAVE_DSPR2 INTRA_PRED_TEST(DSPR2, TestIntraPred16, vpx_dc_predictor_16x16_dspr2, NULL, @@ -337,21 +337,21 @@ INTRA_PRED_TEST(C, TestIntraPred32, vpx_dc_predictor_32x32_c, vpx_d153_predictor_32x32_c, vpx_d207_predictor_32x32_c, vpx_d63_predictor_32x32_c, vpx_tm_predictor_32x32_c) -#if HAVE_SSE2 && CONFIG_USE_X86INC +#if HAVE_SSE2 INTRA_PRED_TEST(SSE2, TestIntraPred32, vpx_dc_predictor_32x32_sse2, vpx_dc_left_predictor_32x32_sse2, vpx_dc_top_predictor_32x32_sse2, vpx_dc_128_predictor_32x32_sse2, vpx_v_predictor_32x32_sse2, vpx_h_predictor_32x32_sse2, NULL, NULL, NULL, NULL, NULL, NULL, vpx_tm_predictor_32x32_sse2) -#endif // HAVE_SSE2 && CONFIG_USE_X86INC +#endif // HAVE_SSE2 -#if HAVE_SSSE3 && CONFIG_USE_X86INC +#if HAVE_SSSE3 INTRA_PRED_TEST(SSSE3, TestIntraPred32, NULL, NULL, NULL, NULL, NULL, NULL, vpx_d45_predictor_32x32_ssse3, NULL, NULL, vpx_d153_predictor_32x32_ssse3, vpx_d207_predictor_32x32_ssse3, vpx_d63_predictor_32x32_ssse3, NULL) -#endif // HAVE_SSSE3 && CONFIG_USE_X86INC +#endif // HAVE_SSSE3 #if HAVE_NEON INTRA_PRED_TEST(NEON, TestIntraPred32, vpx_dc_predictor_32x32_neon, diff --git a/test/variance_test.cc b/test/variance_test.cc index cb6339041..08c84a613 100644 --- a/test/variance_test.cc +++ b/test/variance_test.cc @@ -1002,7 +1002,6 @@ INSTANTIATE_TEST_CASE_P( make_tuple(2, 3, &vpx_variance4x8_sse2, 0), make_tuple(2, 2, &vpx_variance4x4_sse2, 0))); -#if CONFIG_USE_X86INC INSTANTIATE_TEST_CASE_P( SSE2, VpxSubpelVarianceTest, ::testing::Values(make_tuple(6, 6, &vpx_sub_pixel_variance64x64_sse2, 0), @@ -1035,7 +1034,6 @@ INSTANTIATE_TEST_CASE_P( make_tuple(3, 2, &vpx_sub_pixel_avg_variance8x4_sse2, 0), make_tuple(2, 3, &vpx_sub_pixel_avg_variance4x8_sse2, 0), make_tuple(2, 2, &vpx_sub_pixel_avg_variance4x4_sse2, 0))); -#endif // CONFIG_USE_X86INC #if CONFIG_VP9_HIGHBITDEPTH /* TODO(debargha): This test does not support the highbd version @@ -1088,7 +1086,6 @@ INSTANTIATE_TEST_CASE_P( make_tuple(3, 4, &vpx_highbd_8_variance8x16_sse2, 8), make_tuple(3, 3, &vpx_highbd_8_variance8x8_sse2, 8))); -#if CONFIG_USE_X86INC INSTANTIATE_TEST_CASE_P( SSE2, VpxHBDSubpelVarianceTest, ::testing::Values( @@ -1162,12 +1159,10 @@ INSTANTIATE_TEST_CASE_P( make_tuple(3, 4, &vpx_highbd_8_sub_pixel_avg_variance8x16_sse2, 8), make_tuple(3, 3, &vpx_highbd_8_sub_pixel_avg_variance8x8_sse2, 8), make_tuple(3, 2, &vpx_highbd_8_sub_pixel_avg_variance8x4_sse2, 8))); -#endif // CONFIG_USE_X86INC #endif // CONFIG_VP9_HIGHBITDEPTH #endif // HAVE_SSE2 #if HAVE_SSSE3 -#if CONFIG_USE_X86INC INSTANTIATE_TEST_CASE_P( SSSE3, VpxSubpelVarianceTest, ::testing::Values(make_tuple(6, 6, &vpx_sub_pixel_variance64x64_ssse3, 0), @@ -1200,7 +1195,6 @@ INSTANTIATE_TEST_CASE_P( make_tuple(3, 2, &vpx_sub_pixel_avg_variance8x4_ssse3, 0), make_tuple(2, 3, &vpx_sub_pixel_avg_variance4x8_ssse3, 0), make_tuple(2, 2, &vpx_sub_pixel_avg_variance4x4_ssse3, 0))); -#endif // CONFIG_USE_X86INC #endif // HAVE_SSSE3 #if HAVE_AVX2 diff --git a/test/vp9_error_block_test.cc b/test/vp9_error_block_test.cc index 23a249e2b..341cc19cb 100644 --- a/test/vp9_error_block_test.cc +++ b/test/vp9_error_block_test.cc @@ -157,9 +157,9 @@ TEST_P(ErrorBlockTest, ExtremeValues) { << "First failed at test case " << first_failure; } +#if HAVE_SSE2 || HAVE_AVX using std::tr1::make_tuple; -#if CONFIG_USE_X86INC int64_t wrap_vp9_highbd_block_error_8bit_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, @@ -167,6 +167,7 @@ int64_t wrap_vp9_highbd_block_error_8bit_c(const tran_low_t *coeff, EXPECT_EQ(8, bps); return vp9_highbd_block_error_8bit_c(coeff, dqcoeff, block_size, ssz); } +#endif // HAVE_SSE2 || HAVE_AVX #if HAVE_SSE2 int64_t wrap_vp9_highbd_block_error_8bit_sse2(const tran_low_t *coeff, @@ -206,6 +207,5 @@ INSTANTIATE_TEST_CASE_P( &wrap_vp9_highbd_block_error_8bit_c, VPX_BITS_8))); #endif // HAVE_AVX -#endif // CONFIG_USE_X86INC #endif // CONFIG_VP9_HIGHBITDEPTH } // namespace diff --git a/test/vp9_intrapred_test.cc b/test/vp9_intrapred_test.cc index 416f3c322..ea8abfb77 100644 --- a/test/vp9_intrapred_test.cc +++ b/test/vp9_intrapred_test.cc @@ -131,7 +131,6 @@ using std::tr1::make_tuple; #if HAVE_SSE2 #if CONFIG_VP9_HIGHBITDEPTH -#if CONFIG_USE_X86INC INSTANTIATE_TEST_CASE_P(SSE2_TO_C_8, VP9IntraPredTest, ::testing::Values( make_tuple(&vpx_highbd_dc_predictor_32x32_sse2, @@ -225,7 +224,6 @@ INSTANTIATE_TEST_CASE_P(SSE2_TO_C_12, VP9IntraPredTest, make_tuple(&vpx_highbd_tm_predictor_8x8_sse2, &vpx_highbd_tm_predictor_8x8_c, 8, 12))); -#endif // CONFIG_USE_X86INC #endif // CONFIG_VP9_HIGHBITDEPTH #endif // HAVE_SSE2 } // namespace diff --git a/test/vp9_subtract_test.cc b/test/vp9_subtract_test.cc index 3cad4d7e6..4793a9716 100644 --- a/test/vp9_subtract_test.cc +++ b/test/vp9_subtract_test.cc @@ -93,7 +93,7 @@ TEST_P(VP9SubtractBlockTest, SimpleSubtract) { INSTANTIATE_TEST_CASE_P(C, VP9SubtractBlockTest, ::testing::Values(vpx_subtract_block_c)); -#if HAVE_SSE2 && CONFIG_USE_X86INC +#if HAVE_SSE2 INSTANTIATE_TEST_CASE_P(SSE2, VP9SubtractBlockTest, ::testing::Values(vpx_subtract_block_sse2)); #endif