From: Yunqing Wang Date: Tue, 27 May 2014 17:36:56 +0000 (-0700) Subject: Turn on unit tests for AVX2 convolve functions X-Git-Tag: v1.4.0~1490^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f0943b99636cd948949f85c604ce126bd94315b;p=libvpx Turn on unit tests for AVX2 convolve functions This patch turned on unit tests for AVX2 convolve functions. Change-Id: I51b8bfdaa290fb22862c68af61abf2394d00d47c --- diff --git a/test/convolve_test.cc b/test/convolve_test.cc index 2d89429a1..3412ddd23 100644 --- a/test/convolve_test.cc +++ b/test/convolve_test.cc @@ -644,6 +644,28 @@ INSTANTIATE_TEST_CASE_P(SSSE3, ConvolveTest, ::testing::Values( make_tuple(64, 64, &convolve8_ssse3))); #endif +#if HAVE_AVX2 +const ConvolveFunctions convolve8_avx2( + vp9_convolve8_horiz_avx2, vp9_convolve8_avg_horiz_ssse3, + vp9_convolve8_vert_avx2, vp9_convolve8_avg_vert_ssse3, + vp9_convolve8_avx2, vp9_convolve8_avg_ssse3); + +INSTANTIATE_TEST_CASE_P(AVX2, ConvolveTest, ::testing::Values( + make_tuple(4, 4, &convolve8_avx2), + make_tuple(8, 4, &convolve8_avx2), + make_tuple(4, 8, &convolve8_avx2), + make_tuple(8, 8, &convolve8_avx2), + make_tuple(16, 8, &convolve8_avx2), + make_tuple(8, 16, &convolve8_avx2), + make_tuple(16, 16, &convolve8_avx2), + make_tuple(32, 16, &convolve8_avx2), + make_tuple(16, 32, &convolve8_avx2), + make_tuple(32, 32, &convolve8_avx2), + make_tuple(64, 32, &convolve8_avx2), + make_tuple(32, 64, &convolve8_avx2), + make_tuple(64, 64, &convolve8_avx2))); +#endif + #if HAVE_NEON_ASM const ConvolveFunctions convolve8_neon( vp9_convolve8_horiz_neon, vp9_convolve8_avg_horiz_neon,