aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/arm/Makefile.target
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-02-25 17:20:16 +0000
committerAlex Bennée <alex.bennee@linaro.org>2022-02-28 16:42:35 +0000
commitf8a4c6d728bc2427c5455379482f40ba8706a96f (patch)
tree8787c24a286019968f515c43f8fbb66d1370ed6c /tests/tcg/arm/Makefile.target
parentd426f4fc6fbd1f6d9d7a721998f92b6e30a3e9db (diff)
tests/tcg: add vectorised sha512 versions
This builds vectorised versions of sha512 to exercise the vector code: - aarch64 (AdvSimd) - i386 (SSE) - s390x (MVX) - ppc64/ppc64le (power10 vectors) Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220225172021.3493923-14-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/arm/Makefile.target')
-rw-r--r--tests/tcg/arm/Makefile.target8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target
index 2dc94931c3..2f815120a5 100644
--- a/tests/tcg/arm/Makefile.target
+++ b/tests/tcg/arm/Makefile.target
@@ -79,6 +79,14 @@ run-sha1-vector: sha1-vector run-sha1
$(call diff-out, sha1-vector, sha1.out)
ARM_TESTS += sha1-vector
+
+# Vector versions of sha512 (-O3 triggers vectorisation)
+sha512-vector: CFLAGS=-O3
+sha512-vector: sha512.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
+
+ARM_TESTS += sha512-vector
+
TESTS += $(ARM_TESTS)
# On ARM Linux only supports 4k pages