From 8894c766c6d9460d12e52d350e7084b143d6109b Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Thu, 1 Aug 2019 10:48:35 -0700 Subject: Fix saturation issue in vp9_quantize_fp_neon Change-Id: I7850a5c5aea3633e50e9a2efc8116b9e16383a8f --- test/vp9_quantize_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc index cce6b6f19..d094904f1 100644 --- a/test/vp9_quantize_test.cc +++ b/test/vp9_quantize_test.cc @@ -77,7 +77,12 @@ class VP9QuantizeBase : public AbstractBench { coeff_(Buffer(max_size_, max_size_, 0, 16)), qcoeff_(Buffer(max_size_, max_size_, 0, 32)), dqcoeff_(Buffer(max_size_, max_size_, 0, 32)) { + // TODO(jianj): SSSE3 and AVX2 tests fail on extreme values. +#if HAVE_NEON + max_value_ = (1 << (7 + bit_depth_)) - 1; +#else max_value_ = (1 << bit_depth_) - 1; +#endif zbin_ptr_ = reinterpret_cast(vpx_memalign(16, 8 * sizeof(*zbin_ptr_))); round_fp_ptr_ = reinterpret_cast( -- cgit v1.2.3