From 2c44393c011033f18131865d16ce3e01209bc6c2 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Sun, 22 Sep 2024 12:59:23 +0200 Subject: [PATCH] checkasm/sw_range_convert: only run benchmarks on largest input width --- tests/checkasm/sw_range_convert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c index 121a459eb6..bce7a7e3e5 100644 --- a/tests/checkasm/sw_range_convert.c +++ b/tests/checkasm/sw_range_convert.c @@ -64,6 +64,7 @@ static void check_lumConvertRange(int from) call_new(dst1, width); if (memcmp(dst0, dst1, width * sizeof(int16_t))) fail(); + if (width == LARGEST_INPUT_SIZE) bench_new(dst1, width); } } @@ -113,6 +114,7 @@ static void check_chrConvertRange(int from) if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) || memcmp(dstV0, dstV1, width * sizeof(int16_t))) fail(); + if (width == LARGEST_INPUT_SIZE) bench_new(dstU1, dstV1, width); } }