From 3ae8ea168859290a6fd0be4c509b5cafbfaeed2b Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Thu, 12 Sep 2024 11:45:37 +0100 Subject: [PATCH] [FMV][AArch64] Unify tests for sha1 and sha2. Sha1 has been unified with sha2 in the ACLE spec and soon in the compiler, therefore I am adjusting the runtime tests for it. --- SingleSource/UnitTests/AArch64/acle-fmv-features.c | 10 +--------- .../AArch64/acle-fmv-features.reference_output | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/SingleSource/UnitTests/AArch64/acle-fmv-features.c b/SingleSource/UnitTests/AArch64/acle-fmv-features.c index 2175d446a5..728d6973cb 100644 --- a/SingleSource/UnitTests/AArch64/acle-fmv-features.c +++ b/SingleSource/UnitTests/AArch64/acle-fmv-features.c @@ -92,14 +92,7 @@ CHECK(sha2, sha2, { "fmov d0, #0" "\n" "fmov d1, #0" "\n" "sha256h q0, q0, v0.4s" "\n" - : : : "v0" - ); -}) -CHECK(sha1, sha1, { - asm volatile ( - "fmov s0, #0" "\n" - // FIXME: sha1h is under +sha2 in clang, and +sha1 doesn't exist yet. - ".inst 0x5e280800" "\n" // sha1h s0, s0 + "sha1h s0, s0" "\n" : : : "v0" ); }) @@ -263,7 +256,6 @@ int main(int, const char **) { check_rdm(); check_lse(); check_sha2(); - check_sha1(); check_aes(); check_pmull(); check_rcpc(); diff --git a/SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output b/SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output index 003c65ddf7..888b30b6e2 100644 --- a/SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output +++ b/SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output @@ -5,7 +5,6 @@ sha3 rdm lse sha2 -sha1 aes pmull rcpc