From bdd075bc0e00430e46dd223c9caf81ef02769676 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Thu, 12 Oct 2023 19:41:30 +0200 Subject: [PATCH] native tests: also AVX512, MSA; fix WASM SIMD128 path --- test/native-aliases.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/native-aliases.sh b/test/native-aliases.sh index de172ed74..64a69842a 100755 --- a/test/native-aliases.sh +++ b/test/native-aliases.sh @@ -21,6 +21,11 @@ cd "${DIRNAME}" PATTERN="$(xmllint --xpath '//intrinsic/@name' "${DIRNAME}/iig.xml" | grep -Po '(?<=")[^"]+' | grep -Pv '^(_mm256_cvtsi256_si32|_mm512_loadu_epi.+)$' | xargs printf '%s|' | rev | cut -c 2- | rev)" echo "s/([^_])simde(${PATTERN})/\1\2/g" > pattern ls x86/*.c | xargs -n1 -P$(nproc) sed -i -E -f pattern +ls x86/avx512/*.c | xargs -n1 -P$(nproc) sed -i -E -f pattern + +# MSA + +perl -p -i -e 's/([^a-zA-Z0-9_])simde_msa_/$1__msa_/g' mips/msa/*.{c,h} # NEON @@ -32,4 +37,4 @@ perl -p -i -e 's/([^a-zA-Z0-9_])simde_sv/$1sv/g' arm/sve/*.{c,h} # WASM SIMD128 -perl -p -i -e 's/([^a-zA-Z0-9_])simde_wasm_/$1wasm_/g' wasm/*.{c,h} +perl -p -i -e 's/([^a-zA-Z0-9_])simde_wasm_/$1wasm_/g' wasm/simd128/*.{c,h}