[Arm, 1/3] Add -march=armv8.5-a and related internal feature macros to AArch32
authorSudakshina Das <sudi.das@arm.com>
Fri, 5 Oct 2018 09:47:29 +0000 (10:47 +0100)
committerRichard Earnshaw <Richard.Earnshaw@arm.com>
Fri, 5 Oct 2018 10:31:14 +0000 (11:31 +0100)
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  <sudi.das@arm.com>

* 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  <sudi.das@arm.com>

* opcode/arm.h (ARM_EXT2_V8_5A): New.
(ARM_AEXT2_V8_5A, ARM_ARCH_V8_5A): New.

gas/ChangeLog
gas/config/tc-arm.c
gas/doc/c-arm.texi
gas/testsuite/gas/arm/attr-march-armv8_5-a.d [new file with mode: 0644]
include/ChangeLog
include/opcode/arm.h

index a26095d89fc0974d9a701db9bc7f67ddb06ea094..a04d90d888eb7d1efccfa17cbb41a10633646a95 100644 (file)
@@ -1,3 +1,10 @@
+2018-10-05  Sudakshina Das  <sudi.das@arm.com>
+
+       * 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  <shorne@gmail.com>
 
        * doc/Makefile.am (CPU_DOCS): Add entry for OpenRISC.
index 3f5384e1c719de9fedf5a753abbe66c29a2e2afb..ef3af3a0110398b5ddb1c77856a9db895ef90fd1 100644 (file)
@@ -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}
 };
 
index a316c267e22c603ed529451a488d9b3d1baf5c56..522a1dbbba5aa23947e38b2fdbd8880a31ce7f0f 100644 (file)
@@ -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 (file)
index 0000000..70b6074
--- /dev/null
@@ -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
index c11f1c417b176dd9aecdb8349786b0acd21d58b9..5703b2425e123fa9a35b64a855f0a526d7660132 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-05  Sudakshina Das  <sudi.das@arm.com>
+
+       * opcode/arm.h (ARM_EXT2_V8_5A): New.
+       (ARM_AEXT2_V8_5A, ARM_ARCH_V8_5A): New.
+
 2018-10-05  Richard Henderson  <rth@twiddle.net>
 
        * elf/or1k.h (elf_or1k_reloc_type): Add R_OR1K_PCREL_PG21,
index 83b3f22c68fff11edda12a9a0312bfd45e3d0dda..bad131e51c5d84e30dcf32a8242a455749ae3d8a 100644 (file)
@@ -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.          */
 #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
 #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)