From: Matthew Wahab Date: Thu, 4 Jun 2015 10:14:07 +0000 (+0100) Subject: [AArch64] Add support for ARMv8.1 command line option X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30dcc86dba5f3eecac54807bfbb339a27547a96f;p=thirdparty%2Fbinutils-gdb.git [AArch64] Add support for ARMv8.1 command line option Change-Id: I0e9ad907d64ca64fcb2eda7d90e850a57348192a --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 03f02e8c755..1a497f44d71 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2015-06-04 Matthew Wahab + + * NEWS: Mention ARMv8.1 support in the Aarch64 port. + * config/tc-aarch64.c (aarch64_arch_option_table): Add "armv8.1-a". + * doc/c-aarch64.texi (-march): Add "armv8.1-a". + 2015-06-03 Matthew Wahab * config/tc-arm.c (arm_archs): Add "armv8.1-a". diff --git a/gas/NEWS b/gas/NEWS index 099dfb53b6b..34c40f2f4fd 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -2,6 +2,10 @@ Changes in 2.25: +* Support for the ARMv8.1 architecture has been added to the Aarch64 port. + Support for the individual ARMv8.1 Adv.SIMD, LOR and PAN architecture + extensions has also been added to the Aarch64 port. + * Support for the ARMv8.1 architecture has been added to the ARM port. Support for the individual ARMv8.1 Adv.SIMD and PAN architecture extensions has also been added to the ARM port. diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index b65a5cf958b..b3d432c0494 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -7225,6 +7225,7 @@ struct aarch64_arch_option_table static const struct aarch64_arch_option_table aarch64_archs[] = { {"all", AARCH64_ANY}, {"armv8-a", AARCH64_ARCH_V8}, + {"armv8.1-a", AARCH64_ARCH_V8_1}, {NULL, AARCH64_ARCH_NONE} }; diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index 8691016499e..8d757ee0663 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -78,7 +78,8 @@ extensions. This option specifies the target architecture. The assembler will issue an error message if an attempt is made to assemble an instruction which will not execute on the target architecture. The -only value for @var{architecture} is @code{armv8-a}. +following architecture names are recognized: @code{armv8-a} and +@code{armv8.1-a}. If both @option{-mcpu} and @option{-march} are specified, the assembler will use the setting for @option{-mcpu}. If neither are diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index 39c6971f4a7..30c3907ffaa 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2015-06-04 Matthew Wahab + + * aarch64.h (AARCH64_V8_1): New. + 2015-06-03 Matthew Wahab * arm.h (FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_1): New. diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index 371ee39f03c..3813019d13f 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -47,6 +47,15 @@ typedef uint32_t aarch64_insn; #define AARCH64_ARCH_V8 AARCH64_FEATURE (AARCH64_FEATURE_V8, \ AARCH64_FEATURE_FP \ | AARCH64_FEATURE_SIMD) +#define AARCH64_ARCH_V8_1 AARCH64_FEATURE (AARCH64_FEATURE_V8, \ + AARCH64_FEATURE_FP \ + | AARCH64_FEATURE_SIMD \ + | AARCH64_FEATURE_LSE \ + | AARCH64_FEATURE_PAN \ + | AARCH64_FEATURE_LOR \ + | AARCH64_FEATURE_RDMA) + + #define AARCH64_ARCH_NONE AARCH64_FEATURE (0, 0) #define AARCH64_ANY AARCH64_FEATURE (-1, 0) /* Any basic core. */