From eab3c36e51c8f677b67642952648becca0b42d4a Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Sun, 7 Jan 2024 14:47:21 +0800 Subject: [PATCH] wip --- .ci/cross-check.sh | 4 +++- tests/impl.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.ci/cross-check.sh b/.ci/cross-check.sh index 0f1875d0..a4454c02 100755 --- a/.ci/cross-check.sh +++ b/.ci/cross-check.sh @@ -13,11 +13,13 @@ fi set -e -curl -L https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.02/gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz?revision=ac15fd02-ba82-40dd-8b9a-8e5996988618&rev=ac15fd02ba8240dd8b9a8e5996988618&hash=347FC4F06948A4C49D8DFC6D847DC1AA090D3588 | tar -Jx || exit 1 +curl -L https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.02/gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz?revision=ac15fd02-ba82-40dd-8b9a-8e5996988618&rev=ac15fd02ba8240dd8b9a8e5996988618&hash=347FC4F06948A4C49D8DFC6D847DC1AA090D3588 > gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz echo "-----list-----" ls echo "-----list-----" +tar Jxvf gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz + make clean export PATH=gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf/bin:$PATH make CROSS_COMPILE=arm-linux-gnueabihf- check || exit 1 # ARMv8-A diff --git a/tests/impl.cpp b/tests/impl.cpp index 22170608..5e3302ca 100644 --- a/tests/impl.cpp +++ b/tests/impl.cpp @@ -5580,17 +5580,17 @@ result_t test_mm_packus_epi16(const SSE2NEONTestImpl &impl, uint32_t iter) uint8_t d[16]; for (int i = 0; i < 8; i++) { - if (_a[i] > (int16_t) max) + if (_a[i] > (uint16_t) max) d[i] = max; - else if (_a[i] < (int16_t) min) + else if (_a[i] < (uint16_t) min) d[i] = min; else d[i] = (uint8_t) _a[i]; } for (int i = 0; i < 8; i++) { - if (_b[i] > (int16_t) max) + if (_b[i] > (uint16_t) max) d[i + 8] = max; - else if (_b[i] < (int16_t) min) + else if (_b[i] < (uint16_t) min) d[i + 8] = min; else d[i + 8] = (uint8_t) _b[i];