aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-aarch64.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-12-05 08:43:03 +0100
committerJan Beulich <jbeulich@suse.com>2019-12-05 08:43:03 +0100
commitd4340f89eccb0b0a0811e142ce365efc48beb064 (patch)
tree2e3ac1e1b452d904a065a48cf2ceb15e3d041f8d /gas/config/tc-aarch64.c
parent6e9ed99753f0730e85bd45eabb63f499e4d0eca3 (diff)
downloadgdb-d4340f89eccb0b0a0811e142ce365efc48beb064.zip
gdb-d4340f89eccb0b0a0811e142ce365efc48beb064.tar.gz
gdb-d4340f89eccb0b0a0811e142ce365efc48beb064.tar.bz2
Arm64: correct "sha3" arch-extension directive handling
SHA2 is a prereq to SHA3, not part of it aiui. Hence disabling the latter should not also disable the former. In the course of adding respective tests also do away with the duplication of crypto.d's contents in crypto-directive.d.
Diffstat (limited to 'gas/config/tc-aarch64.c')
-rw-r--r--gas/config/tc-aarch64.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index c2a6a1e..5ac219c 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -9038,9 +9038,8 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
AARCH64_ARCH_NONE},
{"sm4", AARCH64_FEATURE (AARCH64_FEATURE_SM4, 0),
AARCH64_ARCH_NONE},
- {"sha3", AARCH64_FEATURE (AARCH64_FEATURE_SHA2
- | AARCH64_FEATURE_SHA3, 0),
- AARCH64_ARCH_NONE},
+ {"sha3", AARCH64_FEATURE (AARCH64_FEATURE_SHA3, 0),
+ AARCH64_FEATURE (AARCH64_FEATURE_SHA2, 0)},
{"rng", AARCH64_FEATURE (AARCH64_FEATURE_RNG, 0),
AARCH64_ARCH_NONE},
{"ssbs", AARCH64_FEATURE (AARCH64_FEATURE_SSBS, 0),