aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>2021-09-30 21:16:58 +0100
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>2021-09-30 21:16:58 +0100
commit80cfde76a74fe03a139ad0e78e239bff315792d1 (patch)
tree2444e7a0eafcf4210f8c1b0a2c8c8b643f1bc8f9 /gas
parent50aaf5e6ee2687417ca4fe1a596e54a7691828db (diff)
downloadbinutils-80cfde76a74fe03a139ad0e78e239bff315792d1.zip
binutils-80cfde76a74fe03a139ad0e78e239bff315792d1.tar.gz
binutils-80cfde76a74fe03a139ad0e78e239bff315792d1.tar.bz2
arm: enable Cortex-R52+ CPU
Patch is adding Cortex-R52+ as 'cortex-r52plus' command line flag for -mcpu option. bfd/ * cpu-arm.c: New Cortex-R52+ CPU. gas/ * NEWS: Update docs. * config/tc-arm.c: New Cortex-R52+ CPU. * doc/c-arm.texi: Update docs. * testsuite/gas/arm/cpu-cortex-r52plus.d: New test.
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/cpu-cortex-r52plus.d6
4 files changed, 12 insertions, 0 deletions
diff --git a/gas/NEWS b/gas/NEWS
index 2dc95aa..5de205e 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,5 +1,7 @@
-*- text -*-
+* Add support for Cortex-R52+ for Arm.
+
* Add support for Cortex-A510, Cortex-A710, Cortex-X2 for AArch64.
* Outputs of .ds.x directive and .tfloat directive with hex input from
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index d288d8d..f771655 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -31603,6 +31603,9 @@ static const struct arm_cpu_option_table arm_cpus[] =
ARM_CPU_OPT ("cortex-r52", "Cortex-R52", ARM_ARCH_V8R,
ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC),
FPU_ARCH_NEON_VFP_ARMV8),
+ ARM_CPU_OPT ("cortex-r52plus", "Cortex-R52+", ARM_ARCH_V8R,
+ ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC),
+ FPU_ARCH_NEON_VFP_ARMV8),
ARM_CPU_OPT ("cortex-m35p", "Cortex-M35P", ARM_ARCH_V8M_MAIN,
ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP | ARM_EXT_V6_DSP),
FPU_NONE),
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index db35e26..d387deb 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -141,6 +141,7 @@ recognized:
@code{cortex-r7},
@code{cortex-r8},
@code{cortex-r52},
+@code{cortex-r52plus},
@code{cortex-m35p},
@code{cortex-m33},
@code{cortex-m23},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-r52plus.d b/gas/testsuite/gas/arm/cpu-cortex-r52plus.d
new file mode 100644
index 0000000..d27959d
--- /dev/null
+++ b/gas/testsuite/gas/arm/cpu-cortex-r52plus.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-r52plus CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-r52plus
+# objdump: -d -mcortex-r52plus
+
+#...