From 19564cb4f77660cdb2f980ca619d4b979b9fe342 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Mon, 27 Nov 2023 22:46:29 -0500 Subject: New upstream version 0.19.0 --- src/dsp/intra_edge_test.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/dsp/intra_edge_test.cc') diff --git a/src/dsp/intra_edge_test.cc b/src/dsp/intra_edge_test.cc index b287544..75c45be 100644 --- a/src/dsp/intra_edge_test.cc +++ b/src/dsp/intra_edge_test.cc @@ -97,9 +97,8 @@ class IntraEdgeFilterTest : public testing::TestWithParam { if (absl::StartsWith(test_case, "C/")) { base_intra_edge_filter_ = nullptr; } else if (absl::StartsWith(test_case, "SSE41/")) { - if ((GetCpuInfo() & kSSE4_1) != 0) { - IntraEdgeInit_SSE4_1(); - } + if ((GetCpuInfo() & kSSE4_1) == 0) GTEST_SKIP() << "No SSE4.1 support!"; + IntraEdgeInit_SSE4_1(); } else if (absl::StartsWith(test_case, "NEON/")) { IntraEdgeInit_NEON(); } else { @@ -356,9 +355,8 @@ class IntraEdgeUpsamplerTest : public testing::TestWithParam { if (absl::StartsWith(test_case, "C/")) { base_intra_edge_upsampler_ = nullptr; } else if (absl::StartsWith(test_case, "SSE41/")) { - if ((GetCpuInfo() & kSSE4_1) != 0) { - IntraEdgeInit_SSE4_1(); - } + if ((GetCpuInfo() & kSSE4_1) == 0) GTEST_SKIP() << "No SSE4.1 support!"; + IntraEdgeInit_SSE4_1(); } else if (absl::StartsWith(test_case, "NEON/")) { IntraEdgeInit_NEON(); } else { -- cgit v1.2.3