public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][Binutils] arm: Add support for Armv9.5-A
@ 2024-02-07 18:33 Claudio Bantaloukas
  2024-02-19 15:29 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Claudio Bantaloukas @ 2024-02-07 18:33 UTC (permalink / raw)
  To: binutils; +Cc: nickc, Richard Earnshaw

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

---
diff --git a/gas/NEWS b/gas/NEWS
index 
6494acfa3ea458aa3edf27fe2ea25353c2f9ac00..7edde0e4aff82fc593776ee83ac34f58eea11546 
100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -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.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 
9c4bf56fa7d42b11cd702365728b4b93078bd2e2..3bbb75c169abb7327d9cf6be0450a3fcf2267ff8 
100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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}
  };

diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index 
ec1ed9de7dffeca75f970ad9fee001209f532cbf..0c1334371c92dfef133df5e2a4c274e59b417bd0 
100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -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
diff --git a/gas/testsuite/gas/arm/attr-march-armv9_5-a.d 
b/gas/testsuite/gas/arm/attr-march-armv9_5-a.d
new file mode 100644
index 
0000000000000000000000000000000000000000..d8c83946eb688d9ba43d78a4099d916452c16c10
--- /dev/null
+++ b/gas/testsuite/gas/arm/attr-march-armv9_5-a.d
@@ -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
diff --git a/gas/testsuite/gas/arm/bfloat16-armv9.5-a.d 
b/gas/testsuite/gas/arm/bfloat16-armv9.5-a.d
new file mode 100644
index 
0000000000000000000000000000000000000000..f8aaa6fb01fd51ca62a1c44c1a5c23a5d4bda162
--- /dev/null
+++ b/gas/testsuite/gas/arm/bfloat16-armv9.5-a.d
@@ -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
+#...
diff --git a/include/opcode/arm.h b/include/opcode/arm.h
index 
ad1d18a7f215a1dfd5c489d4d13852827b672ec6..b22e841c4bfc00059a022493c7a441bb9d6b294c 
100644
--- a/include/opcode/arm.h
+++ b/include/opcode/arm.h
@@ -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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][Binutils] arm: Add support for Armv9.5-A
  2024-02-07 18:33 [PATCH][Binutils] arm: Add support for Armv9.5-A Claudio Bantaloukas
@ 2024-02-19 15:29 ` Nick Clifton
  2024-03-04 17:02   ` Claudio Bantaloukas
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2024-02-19 15:29 UTC (permalink / raw)
  To: Claudio Bantaloukas, binutils; +Cc: Richard Earnshaw

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][Binutils] arm: Add support for Armv9.5-A
  2024-02-19 15:29 ` Nick Clifton
@ 2024-03-04 17:02   ` Claudio Bantaloukas
  0 siblings, 0 replies; 3+ messages in thread
From: Claudio Bantaloukas @ 2024-03-04 17:02 UTC (permalink / raw)
  To: nickc, binutils; +Cc: Richard Earnshaw



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-04 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 18:33 [PATCH][Binutils] arm: Add support for Armv9.5-A Claudio Bantaloukas
2024-02-19 15:29 ` Nick Clifton
2024-03-04 17:02   ` Claudio Bantaloukas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).