Skip to content

Commit bd77380

Browse files
authored
[FMV][AArch64] Unify tests for sha1 and sha2. (#164)
Sha1 has been unified with sha2 in the ACLE spec (ARM-software/acle#347) therefore I am adjusting the runtime tests for it.
1 parent e77ce1b commit bd77380

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

SingleSource/UnitTests/AArch64/acle-fmv-features.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,7 @@ CHECK(sha2, sha2, {
9292
"fmov d0, #0" "\n"
9393
"fmov d1, #0" "\n"
9494
"sha256h q0, q0, v0.4s" "\n"
95-
: : : "v0"
96-
);
97-
})
98-
CHECK(sha1, sha1, {
99-
asm volatile (
100-
"fmov s0, #0" "\n"
101-
// FIXME: sha1h is under +sha2 in clang, and +sha1 doesn't exist yet.
102-
".inst 0x5e280800" "\n" // sha1h s0, s0
95+
"sha1h s0, s0" "\n"
10396
: : : "v0"
10497
);
10598
})
@@ -263,7 +256,6 @@ int main(int, const char **) {
263256
check_rdm();
264257
check_lse();
265258
check_sha2();
266-
check_sha1();
267259
check_aes();
268260
check_pmull();
269261
check_rcpc();

SingleSource/UnitTests/AArch64/acle-fmv-features.reference_output

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sha3
55
rdm
66
lse
77
sha2
8-
sha1
98
aes
109
pmull
1110
rcpc

0 commit comments

Comments
 (0)