From: apostolos Date: Wed, 10 Nov 2021 07:01:28 +0000 (+0200) Subject: test for load m128 from u64a function added X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=537d81a27e2a2e3e87360e7304650d1361b6614c;p=thirdparty%2Fvectorscan.git test for load m128 from u64a function added --- diff --git a/unit/internal/simd_utils.cpp b/unit/internal/simd_utils.cpp index 884f2d0a..b1b9bfb1 100644 --- a/unit/internal/simd_utils.cpp +++ b/unit/internal/simd_utils.cpp @@ -819,6 +819,17 @@ TEST(SimdUtilsTest, sub_u8_m128) { EXPECT_TRUE(!diff128(result, loadu128(expec))); } +TEST(SimdUtilsTest, load_m128_from_u64a) { + srand (time(NULL)); + u64a tmp = rand(); + m128 res = load_m128_from_u64a(&tmp); + m128 cmp = set2x64(0LL, tmp); + //print_m128_16x8("res",res); + //print_m128_16x8("cmp",cmp); + EXPECT_TRUE(!diff128(res, cmp)); +} + + TEST(SimdUtilsTest, movemask_128) { srand (time(NULL)); u8 vec[16] = {0};