aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/loop_restoration_test.cc
diff options
context:
space:
mode:
authorSebastian Ramacher <sramacher@debian.org>2024-12-29 12:50:37 +0000
committerSebastian Ramacher <sramacher@debian.org>2024-12-29 12:50:37 +0000
commit873c687c09e0a1a78a8f3601d31330ad1897e484 (patch)
treeff2fa2e2d27b55c002a6d46d50aab2c66e0bf21a /src/dsp/loop_restoration_test.cc
parent395b1f6877fbc2666383f3428f17400c35aa52a4 (diff)
parentb9ae809f200982119d16ec9613f3db95eca923b9 (diff)
downloadlibgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.tar.gz
libgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.tar.bz2
libgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.zip
Merge branch 'master' into 'scrub-obsolete'
# Conflicts: # debian/changelog
Diffstat (limited to 'src/dsp/loop_restoration_test.cc')
-rw-r--r--src/dsp/loop_restoration_test.cc28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/dsp/loop_restoration_test.cc b/src/dsp/loop_restoration_test.cc
index 5c645b8..d6dcd9c 100644
--- a/src/dsp/loop_restoration_test.cc
+++ b/src/dsp/loop_restoration_test.cc
@@ -69,19 +69,17 @@ class SelfGuidedFilterTest : public testing::TestWithParam<int>,
const char* const test_case = test_info->test_suite_name();
if (absl::StartsWith(test_case, "C/")) {
} else if (absl::StartsWith(test_case, "AVX2/")) {
- if ((GetCpuInfo() & kAVX2) != 0) {
- LoopRestorationInit_AVX2();
+ if ((GetCpuInfo() & kAVX2) == 0) GTEST_SKIP() << "No AVX2 support!";
+ LoopRestorationInit_AVX2();
#if LIBGAV1_MAX_BITDEPTH >= 10
- LoopRestorationInit10bpp_AVX2();
+ LoopRestorationInit10bpp_AVX2();
#endif
- }
} else if (absl::StartsWith(test_case, "SSE41/")) {
- if ((GetCpuInfo() & kSSE4_1) != 0) {
- LoopRestorationInit_SSE4_1();
+ if ((GetCpuInfo() & kSSE4_1) == 0) GTEST_SKIP() << "No SSE4.1 support!";
+ LoopRestorationInit_SSE4_1();
#if LIBGAV1_MAX_BITDEPTH >= 10
- LoopRestorationInit10bpp_SSE4_1();
+ LoopRestorationInit10bpp_SSE4_1();
#endif
- }
} else if (absl::StartsWith(test_case, "NEON/")) {
LoopRestorationInit_NEON();
#if LIBGAV1_MAX_BITDEPTH >= 10
@@ -381,19 +379,17 @@ class WienerFilterTest : public testing::TestWithParam<int>,
const char* const test_case = test_info->test_suite_name();
if (absl::StartsWith(test_case, "C/")) {
} else if (absl::StartsWith(test_case, "AVX2/")) {
- if ((GetCpuInfo() & kAVX2) != 0) {
- LoopRestorationInit_AVX2();
+ if ((GetCpuInfo() & kAVX2) == 0) GTEST_SKIP() << "No AVX2 support!";
+ LoopRestorationInit_AVX2();
#if LIBGAV1_MAX_BITDEPTH >= 10
- LoopRestorationInit10bpp_AVX2();
+ LoopRestorationInit10bpp_AVX2();
#endif
- }
} else if (absl::StartsWith(test_case, "SSE41/")) {
- if ((GetCpuInfo() & kSSE4_1) != 0) {
- LoopRestorationInit_SSE4_1();
+ if ((GetCpuInfo() & kSSE4_1) == 0) GTEST_SKIP() << "No SSE4.1 support!";
+ LoopRestorationInit_SSE4_1();
#if LIBGAV1_MAX_BITDEPTH >= 10
- LoopRestorationInit10bpp_SSE4_1();
+ LoopRestorationInit10bpp_SSE4_1();
#endif
- }
} else if (absl::StartsWith(test_case, "NEON/")) {
LoopRestorationInit_NEON();
#if LIBGAV1_MAX_BITDEPTH >= 10