diff options
author | Jan Beulich <jbeulich@suse.com> | 2019-12-05 08:43:03 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2019-12-05 08:43:03 +0100 |
commit | d4340f89eccb0b0a0811e142ce365efc48beb064 (patch) | |
tree | 2e3ac1e1b452d904a065a48cf2ceb15e3d041f8d /gas/config/tc-aarch64.c | |
parent | 6e9ed99753f0730e85bd45eabb63f499e4d0eca3 (diff) | |
download | gdb-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.c | 5 |
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), |