mirror of
https://github.com/openharmony/third_party_openh264.git
synced 2026-07-19 19:13:35 -04:00
[UT] Only run AVX2 tests if host supports AVX2
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include "cpu.h"
|
||||
#include "ls_defines.h"
|
||||
#include "encode_mb_aux.h"
|
||||
#include "wels_common_basis.h"
|
||||
@@ -199,7 +200,8 @@ TEST (EncodeMbAuxTest, WelsDctFourT4_sse2) {
|
||||
}
|
||||
|
||||
TEST (EncodeMbAuxTest, WelsDctFourT4_avx2) {
|
||||
TestDctFourT4 (WelsDctFourT4_avx2);
|
||||
if (WelsCPUFeatureDetect (0) & WELS_CPU_AVX2)
|
||||
TestDctFourT4 (WelsDctFourT4_avx2);
|
||||
}
|
||||
|
||||
TEST (EncodeMbAuxTest, WelsCalculateSingleCtr4x4_sse2) {
|
||||
|
||||
Reference in New Issue
Block a user