Fix SHA ABI tests

Some 'return' lines snuck in which cause us to skip some tests.

Change-Id: I2806d6fb4fe3a6bd1fa58932c213d6af8991352e
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/65827
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
This commit is contained in:
David Benjamin
2024-01-26 18:18:38 +00:00
committed by Boringssl LUCI CQ
parent 12316ab445
commit 97dc33638b
-4
View File
@@ -66,13 +66,11 @@ TEST(SHATest, SHA1ABI) {
#if defined(SHA1_ASM_AVX)
if (sha1_avx_capable()) {
CHECK_ABI(sha1_block_data_order_avx, ctx.h, kBuf, blocks);
return;
}
#endif
#if defined(SHA1_ASM_SSSE3)
if (sha1_ssse3_capable()) {
CHECK_ABI(sha1_block_data_order_ssse3, ctx.h, kBuf, blocks);
return;
}
#endif
#if defined(SHA1_ASM_NEON)
@@ -103,13 +101,11 @@ TEST(SHATest, SHA256ABI) {
#if defined(SHA256_ASM_AVX)
if (sha256_avx_capable()) {
CHECK_ABI(sha256_block_data_order_avx, ctx.h, kBuf, blocks);
return;
}
#endif
#if defined(SHA256_ASM_SSSE3)
if (sha256_ssse3_capable()) {
CHECK_ABI(sha256_block_data_order_ssse3, ctx.h, kBuf, blocks);
return;
}
#endif
#if defined(SHA256_ASM_NEON)