aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorClaudio Bantaloukas <Claudio.Bantaloukas@arm.com>2024-02-19 15:26:59 +0000
committerNick Clifton <nickc@redhat.com>2024-02-19 15:26:59 +0000
commitb47cef7ca8a2fa55acdab367c87c1ea076aec4b2 (patch)
treef33fb5eee1a7731adfcb8a0ee51f9632be243ebf /gas
parent1bc24c0dabc577d244627581559707705a4add56 (diff)
downloadgdb-b47cef7ca8a2fa55acdab367c87c1ea076aec4b2.zip
gdb-b47cef7ca8a2fa55acdab367c87c1ea076aec4b2.tar.gz
gdb-b47cef7ca8a2fa55acdab367c87c1ea076aec4b2.tar.bz2
arm: Add support for Armv9.5-A
Diffstat (limited to 'gas')
-rw-r--r--gas/NEWS2
-rw-r--r--gas/config/tc-arm.c3
-rw-r--r--gas/doc/c-arm.texi1
-rw-r--r--gas/testsuite/gas/arm/attr-march-armv9_5-a.d17
-rw-r--r--gas/testsuite/gas/arm/bfloat16-armv9.5-a.d5
5 files changed, 28 insertions, 0 deletions
diff --git a/gas/NEWS b/gas/NEWS
index 6494acf..7edde0e 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 9c4bf56..3bbb75c 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 ec1ed9d..0c13343 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 0000000..d8c8394
--- /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 0000000..f8aaa6f
--- /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
+#...