History

[UT] Only run AVX2 tests if host supports AVX2

Sindre Aamås committed 10 years ago

Commit a45c10c1 parent 144ff0f2 files · +5 −2Browse files

Showing the changes to test/encoder/EncUT_EncoderMbAux.cpp (1 of 2 files). Show all

Unified · Split

test/encoder/EncUT_EncoderMbAux.cpp+3−1
@@ -1,4 +1,5 @@
11 #include <gtest/gtest.h>
2+#include "cpu.h"
23 #include "ls_defines.h"
34 #include "encode_mb_aux.h"
45 #include "wels_common_basis.h"
@@ -199,7 +200,8 @@ TEST (EncodeMbAuxTest, WelsDctFourT4_sse2) { · 194 unmodified lines
199200 }
200201
201202 TEST (EncodeMbAuxTest, WelsDctFourT4_avx2) {
202− TestDctFourT4 (WelsDctFourT4_avx2);
203+ if (WelsCPUFeatureDetect (0) & WELS_CPU_AVX2)
204+ TestDctFourT4 (WelsDctFourT4_avx2);
203205 }
204206
205207 TEST (EncodeMbAuxTest, WelsCalculateSingleCtr4x4_sse2) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t