From: Claudio Bantaloukas <Claudio.Bantaloukas@arm.com>
To: "binutils@sourceware.org" <binutils@sourceware.org>
Cc: "nickc@redhat.com" <nickc@redhat.com>,
Richard Earnshaw <Richard.Earnshaw@arm.com>
Subject: [PATCH][Binutils] arm: Add support for Armv9.5-A
Date: Wed, 7 Feb 2024 18:33:37 +0000 [thread overview]
Message-ID: <2ec5c368-3181-41e9-8343-00baa9247f31@arm.com> (raw)
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)
next reply other threads:[~2024-02-07 18:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 18:33 Claudio Bantaloukas [this message]
2024-02-19 15:29 ` Nick Clifton
2024-03-04 17:02 ` Claudio Bantaloukas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ec5c368-3181-41e9-8343-00baa9247f31@arm.com \
--to=claudio.bantaloukas@arm.com \
--cc=Richard.Earnshaw@arm.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).