[Binutils] arm: Add support for Armv9.5-A
Checks
Commit Message
Hi,
This patch adds arm support for -march=armv9.5-a. The behaviour
of the new option is the same as -march=armv9.4-a on arm-- targets.
Regression tested on arm-none-eabi target and found no regressions.
Is this ok for master? I do not have commit rights yet, if ok, can
someone commit it on my behalf?
Thanks,
Claudio Bantaloukas
---
Comments
Hi Claudio,
> Regression tested on arm-none-eabi target and found no regressions.
>
> Is this ok for master? I do not have commit rights yet, if ok, can
> someone commit it on my behalf?
Approved and applied.
Please note - your email program appears to have word wrapped the attachment
thus breaking the formatting of the patch. I had to reconstruct the patch
by hand, so if I made any mistakes I apologise.
Cheers
Nick
On 19/02/2024 15:29, Nick Clifton wrote:
> Hi Claudio,
>
>> Regression tested on arm-none-eabi target and found no regressions.
>>
>> Is this ok for master? I do not have commit rights yet, if ok, can
>> someone commit it on my behalf?
>
> Approved and applied.
>
> Please note - your email program appears to have word wrapped the
> attachment
> thus breaking the formatting of the patch. I had to reconstruct the patch
> by hand, so if I made any mistakes I apologise.
Thank you for applying and for the heads-up, I'll use git-email in the
future :)
Cheers,
Claudio
6494acfa3ea458aa3edf27fe2ea25353c2f9ac00..7edde0e4aff82fc593776ee83ac34f58eea11546
100644
@@ -1,5 +1,7 @@
-*- text -*-
+* Add support for 'armv9.5-a' for -march in Arm GAS.
+
Changes in 2.42:
* Add support for AMD znver5 processor.
9c4bf56fa7d42b11cd702365728b4b93078bd2e2..3bbb75c169abb7327d9cf6be0450a3fcf2267ff8
100644
@@ -32043,6 +32043,7 @@ static const struct arm_ext_table
armv9a_ext_table[] =
#define armv92a_ext_table armv91a_ext_table
#define armv93a_ext_table armv92a_ext_table
#define armv94a_ext_table armv93a_ext_table
+#define armv95a_ext_table armv94a_ext_table
#define CDE_EXTENSIONS \
ARM_ADD ("cdecp0", ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE |
ARM_EXT2_CDE0)), \
@@ -32174,6 +32175,7 @@ static const struct arm_arch_option_table
arm_archs[] =
ARM_ARCH_OPT2 ("armv9.2-a", ARM_ARCH_V9_2A, FPU_ARCH_VFP, armv92a),
ARM_ARCH_OPT2 ("armv9.3-a", ARM_ARCH_V9_2A, FPU_ARCH_VFP, armv93a),
ARM_ARCH_OPT2 ("armv9.4-a", ARM_ARCH_V9_4A, FPU_ARCH_VFP, armv94a),
+ ARM_ARCH_OPT2 ("armv9.5-a", ARM_ARCH_V9_5A, FPU_ARCH_VFP, armv95a),
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),
@@ -32965,6 +32967,7 @@ static const cpu_arch_ver_table cpu_arch_ver[] =
{TAG_CPU_ARCH_V9, ARM_ARCH_V9_2A},
{TAG_CPU_ARCH_V9, ARM_ARCH_V9_3A},
{TAG_CPU_ARCH_V9, ARM_ARCH_V9_4A},
+ {TAG_CPU_ARCH_V9, ARM_ARCH_V9_5A},
{-1, ARM_ARCH_NONE}
};
ec1ed9de7dffeca75f970ad9fee001209f532cbf..0c1334371c92dfef133df5e2a4c274e59b417bd0
100644
@@ -274,6 +274,7 @@ names are recognized:
@code{armv9.2-a},
@code{armv9.3-a},
@code{armv9.4-a},
+@code{armv9.5-a},
@code{iwmmxt},
@code{iwmmxt2}
and
b/gas/testsuite/gas/arm/attr-march-armv9_5-a.d
new file mode 100644
0000000000000000000000000000000000000000..d8c83946eb688d9ba43d78a4099d916452c16c10
@@ -0,0 +1,17 @@
+# name: check for armv9.5-a command line option settings
+# source: blank.s
+# as: -march=armv9.5-a
+# readelf: -A
+# This test is only valid on EABI based ports.
+# target: *-*-*eabi* *-*-nacl*
+
+Attribute Section: aeabi
+File Attributes
+ Tag_CPU_name: "9.5-A"
+ Tag_CPU_arch: v9
+ 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
b/gas/testsuite/gas/arm/bfloat16-armv9.5-a.d
new file mode 100644
0000000000000000000000000000000000000000..f8aaa6fb01fd51ca62a1c44c1a5c23a5d4bda162
@@ -0,0 +1,5 @@
+#name: Verify Armv9.5-A implies Armv9.4-A features by checking bfloat16
is enabled
+#source: bfloat16.s
+#as: -mno-warn-deprecated -march=armv9.5-a+simd -I$srcdir/$subdir
+#objdump: -dr --show-raw-insn
+#...
ad1d18a7f215a1dfd5c489d4d13852827b672ec6..b22e841c4bfc00059a022493c7a441bb9d6b294c
100644
@@ -401,6 +401,7 @@
#define ARM_ARCH_V9_2A ARM_ARCH_V9_1A
#define ARM_ARCH_V9_3A ARM_ARCH_V9_2A
#define ARM_ARCH_V9_4A ARM_ARCH_V9_3A
+#define ARM_ARCH_V9_5A ARM_ARCH_V9_4A
/* Some useful combinations: */
#define ARM_ARCH_NONE ARM_FEATURE_ALL (0, 0, 0, 0)