From f1ac1c52084ece91db1089b799527d18ddb685fe Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Mon, 4 Mar 2024 19:19:01 +0900 Subject: [PATCH] wip --- .ci/cross-check.sh | 6 ++++-- test.c | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 test.c diff --git a/.ci/cross-check.sh b/.ci/cross-check.sh index 862fe2e5..b597a371 100755 --- a/.ci/cross-check.sh +++ b/.ci/cross-check.sh @@ -17,8 +17,10 @@ wget -O gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz "https://developer.a tar Jxvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz make clean -export PATH=gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin:$PATH -make CROSS_COMPILE=aarch64-linux-gnu- check || exit 1 # ARMv8-A +# export PATH=gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin:$PATH +# make CROSS_COMPILE=aarch64-linux-gnu- check || exit 1 # ARMv8-A +aarch64-linux-gnu-g++ -o test test.c -march=armv8-a+fp+simd +qemu-aarch64 test # aarch64-linux-gnu-g++ -Wall -Wcast-qual -I. -march=armv8-a+fp+simd test.c -o test diff --git a/test.c b/test.c new file mode 100644 index 00000000..760377d6 --- /dev/null +++ b/test.c @@ -0,0 +1,9 @@ +#include "sse2neon.h" +#include + +int main() { + int32_t _a[4]; + __m128i a = _mm_loadu_si64(_a); + _mm_shufflelo_epi16(a, 10); + return 0; +} \ No newline at end of file