Skip to content

Commit a28df11

Browse files
aarch64: Fix typo and make rdma/rdm alias for FMV
gcc/ChangeLog: * config/aarch64/aarch64-option-extensions.def: Fix "rmd"->"rdm", and add FMV to "rdma". * config/aarch64/aarch64.cc (FEAT_RDMA): Define as FEAT_RDM.
1 parent 3ef14f5 commit a28df11

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gcc/config/aarch64/aarch64-option-extensions.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ AARCH64_OPT_FMV_EXTENSION("sm4", SM4, (SIMD), (), (), "sm3 sm4")
117117

118118
/* An explicit +rdma implies +simd, but +rdma+nosimd still enables scalar
119119
RDMA instructions. */
120-
AARCH64_OPT_EXTENSION("rdma", RDMA, (), (SIMD), (), "asimdrdm")
120+
AARCH64_OPT_FMV_EXTENSION("rdma", RDMA, (), (SIMD), (), "asimdrdm")
121121

122-
AARCH64_FMV_FEATURE("rmd", RDM, (RDMA))
122+
/* rdm is an alias for rdma. */
123+
AARCH64_FMV_FEATURE("rdm", RDM, (RDMA))
123124

124125
AARCH64_OPT_FMV_EXTENSION("crc", CRC, (), (), (), "crc32")
125126

gcc/config/aarch64/aarch64.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19695,6 +19695,10 @@ typedef struct
1969519695
#define AARCH64_FMV_FEATURE(NAME, FEAT_NAME, C) \
1969619696
{NAME, 1ULL << FEAT_##FEAT_NAME, ::feature_deps::fmv_deps_##FEAT_NAME},
1969719697

19698+
/* The "rdma" alias uses a different FEAT_NAME to avoid a duplicate
19699+
feature_deps name. */
19700+
#define FEAT_RDMA FEAT_RDM
19701+
1969819702
/* FMV features are listed in priority order, to make it easier to sort target
1969919703
strings. */
1970019704
static aarch64_fmv_feature_datum aarch64_fmv_feature_data[] = {

0 commit comments

Comments
 (0)