From: Sudakshina Das Date: Fri, 5 Oct 2018 09:47:29 +0000 (+0100) Subject: [Arm, 1/3] Add -march=armv8.5-a and related internal feature macros to AArch32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23f233a595dc7d8b9a6ababe7c4527f743c0cec1;p=binutils-gdb.git [Arm, 1/3] Add -march=armv8.5-a and related internal feature macros to AArch32 This patch is part of the patch series to add support for ARMv8.5-A extensions. (https://developer.arm.com/products/architecture/cpu-architecture/a-profile/exploration-tools) This is the first of the patch series and adds -march=armv8.5-a and other internal feature marcos needed for it. *** gas/ChangeLog *** 2018-10-05 Sudakshina Das * config/tc-arm.c (arm_archs): New entry for armv8.5-a. (cpu_arch_ver): Likewise. * doc/c-arm.texi: Add documentation for the same. * testsuite/gas/arm/attr-march-armv8_5-a.d: New. *** include/ChnageLog *** 2018-10-05 Sudakshina Das * opcode/arm.h (ARM_EXT2_V8_5A): New. (ARM_AEXT2_V8_5A, ARM_ARCH_V8_5A): New. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a26095d89fc..a04d90d888e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2018-10-05 Sudakshina Das + + * config/tc-arm.c (arm_archs): New entry for armv8.5-a. + (cpu_arch_ver): Likewise. + * doc/c-arm.texi: Add documentation for the same. + * testsuite/gas/arm/attr-march-armv8_5-a.d: New. + 2018-10-05 Stafford Horne * doc/Makefile.am (CPU_DOCS): Add entry for OpenRISC. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 3f5384e1c71..ef3af3a0110 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -26335,6 +26335,7 @@ static const struct arm_arch_option_table arm_archs[] = ARM_ARCH_OPT ("armv8.3-a", ARM_ARCH_V8_3A, FPU_ARCH_VFP), ARM_ARCH_OPT ("armv8-r", ARM_ARCH_V8R, FPU_ARCH_VFP), ARM_ARCH_OPT ("armv8.4-a", ARM_ARCH_V8_4A, FPU_ARCH_VFP), + ARM_ARCH_OPT ("armv8.5-a", ARM_ARCH_V8_5A, FPU_ARCH_VFP), ARM_ARCH_OPT ("xscale", ARM_ARCH_XSCALE, FPU_ARCH_VFP), ARM_ARCH_OPT ("iwmmxt", ARM_ARCH_IWMMXT, FPU_ARCH_VFP), ARM_ARCH_OPT ("iwmmxt2", ARM_ARCH_IWMMXT2,FPU_ARCH_VFP), @@ -27046,6 +27047,7 @@ static const cpu_arch_ver_table cpu_arch_ver[] = {TAG_CPU_ARCH_V8M_MAIN, ARM_ARCH_V8M_MAIN}, {TAG_CPU_ARCH_V8R, ARM_ARCH_V8R}, {TAG_CPU_ARCH_V8, ARM_ARCH_V8_4A}, + {TAG_CPU_ARCH_V8, ARM_ARCH_V8_5A}, {-1, ARM_ARCH_NONE} }; diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index a316c267e22..522a1dbbba5 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -241,6 +241,7 @@ names are recognized: @code{armv8.3-a}, @code{armv8-r}, @code{armv8.4-a}, +@code{armv8.5-a}, @code{iwmmxt} @code{iwmmxt2} and diff --git a/gas/testsuite/gas/arm/attr-march-armv8_5-a.d b/gas/testsuite/gas/arm/attr-march-armv8_5-a.d new file mode 100644 index 00000000000..70b6074e48f --- /dev/null +++ b/gas/testsuite/gas/arm/attr-march-armv8_5-a.d @@ -0,0 +1,17 @@ +# name: attributes for -march=armv8.5-a +# source: blank.s +# as: -march=armv8.5-a +# readelf: -A +# This test is only valid on EABI based ports. +# target: *-*-*eabi* *-*-nacl* + +Attribute Section: aeabi +File Attributes + Tag_CPU_name: "8.5-A" + Tag_CPU_arch: v8 + Tag_CPU_arch_profile: Application + Tag_ARM_ISA_use: Yes + Tag_THUMB_ISA_use: Thumb-2 + Tag_Advanced_SIMD_arch: NEON for ARMv8.1 + Tag_MPextension_use: Allowed + Tag_Virtualization_use: TrustZone and Virtualization Extensions diff --git a/include/ChangeLog b/include/ChangeLog index c11f1c417b1..5703b2425e1 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2018-10-05 Sudakshina Das + + * opcode/arm.h (ARM_EXT2_V8_5A): New. + (ARM_AEXT2_V8_5A, ARM_ARCH_V8_5A): New. + 2018-10-05 Richard Henderson * elf/or1k.h (elf_or1k_reloc_type): Add R_OR1K_PCREL_PG21, diff --git a/include/opcode/arm.h b/include/opcode/arm.h index 83b3f22c68f..bad131e51c5 100644 --- a/include/opcode/arm.h +++ b/include/opcode/arm.h @@ -68,6 +68,7 @@ #define ARM_EXT2_V8A 0x00000200 /* ARMv8-A. */ #define ARM_EXT2_V8_4A 0x00000400 /* ARM V8.4A. */ #define ARM_EXT2_FP16_FML 0x00000800 /* ARM V8.2A FP16-FML instructions. */ +#define ARM_EXT2_V8_5A 0x00001000 /* ARM V8.5A. */ /* Co-processor space extensions. */ #define ARM_CEXT_XSCALE 0x00000001 /* Allow MIA etc. */ @@ -159,6 +160,7 @@ #define ARM_AEXT2_V8_2A (ARM_AEXT2_V8_1A | ARM_EXT2_V8_2A | ARM_EXT2_RAS) #define ARM_AEXT2_V8_3A (ARM_AEXT2_V8_2A | ARM_EXT2_V8_3A) #define ARM_AEXT2_V8_4A (ARM_AEXT2_V8_3A | ARM_EXT2_FP16_FML | ARM_EXT2_V8_4A) +#define ARM_AEXT2_V8_5A (ARM_AEXT2_V8_4A | ARM_EXT2_V8_5A) #define ARM_AEXT_V8M_BASE (ARM_AEXT_V6SM | ARM_EXT_DIV) #define ARM_AEXT_V8M_MAIN ARM_AEXT_V7M #define ARM_AEXT_V8M_MAIN_DSP ARM_AEXT_V7EM @@ -293,6 +295,9 @@ #define ARM_ARCH_V8_4A ARM_FEATURE (ARM_AEXT_V8A, ARM_AEXT2_V8_4A, \ CRC_EXT_ARMV8 | FPU_NEON_EXT_RDMA \ | FPU_NEON_EXT_DOTPROD) +#define ARM_ARCH_V8_5A ARM_FEATURE (ARM_AEXT_V8A, ARM_AEXT2_V8_5A, \ + CRC_EXT_ARMV8 | FPU_NEON_EXT_RDMA \ + | FPU_NEON_EXT_DOTPROD) #define ARM_ARCH_V8M_BASE ARM_FEATURE_CORE (ARM_AEXT_V8M_BASE, ARM_AEXT2_V8M) #define ARM_ARCH_V8M_MAIN ARM_FEATURE_CORE (ARM_AEXT_V8M_MAIN, \ ARM_AEXT2_V8M_MAIN)