Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Jan 27, 2024
1 parent 609babf commit eab3c36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .ci/cross-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit eab3c36

Please sign in to comment.