public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][GAS] arm: enable Cortex-R52+ CPU
@ 2021-09-16 10:26 Przemyslaw Wirkus
       [not found] ` <25378296-130b-4bcc-d1e8-baa2f7921a66@redhat.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Przemyslaw Wirkus @ 2021-09-16 10:26 UTC (permalink / raw)
  To: Binutils; +Cc: nickc, Richard Earnshaw, Ramana Radhakrishnan

[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

Patch is adding Cortex-R52+ as 'cortex-r52plus' command line
flag for -mcpu option.

bfd/

2021-09-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

	* cpu-arm.c: New Cortex-R52+ CPU.

gas/

2021-09-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

        * 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.

[-- Attachment #2: rb14819.patch --]
[-- Type: application/octet-stream, Size: 2434 bytes --]

diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 77b5c7dc9ba963a4066fe90a3f3c5327a0c32d1e..7a1ed46f5d4cc043282a9a52fa6a37efb70f3a61 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -166,6 +166,7 @@ processors[] =
   { bfd_mach_arm_7,	  "cortex-r4f"	    },
   { bfd_mach_arm_7,	  "cortex-r5"	    },
   { bfd_mach_arm_8R,	  "cortex-r52"	    },
+  { bfd_mach_arm_8R,	  "cortex-r52plus"	    },
   { bfd_mach_arm_7,	  "cortex-r7"	    },
   { bfd_mach_arm_7,	  "cortex-r8"	    },
   { bfd_mach_arm_8,	  "cortex-x1"	    },
diff --git a/gas/NEWS b/gas/NEWS
index 7dfc70c419fd2e88ca81550d045d3ca4d2a836da..82f6415089ff10d7b8e1c61b56fd3317b45119b7 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 d288d8d1573e8bda9d39cc9232313ae12e21066a..f77165513d917c16d1efedab740929826b37a3b0 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 db35e2610e42dc0761d10a423fcf5a661ff630be..d387debec43e81a0a64c94c1de16023a103a0a03 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 0000000000000000000000000000000000000000..d27959d65b2bcce8ea45aa01f2bd4dc8cbea4361
--- /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
+
+#...

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

* RE: [PATCH][GAS] arm: enable Cortex-R52+ CPU
       [not found] ` <25378296-130b-4bcc-d1e8-baa2f7921a66@redhat.com>
@ 2021-09-30 20:22   ` Przemyslaw Wirkus
  0 siblings, 0 replies; 2+ messages in thread
From: Przemyslaw Wirkus @ 2021-09-30 20:22 UTC (permalink / raw)
  To: nickc, Binutils; +Cc: Richard Earnshaw, Ramana Radhakrishnan

> > 2021-09-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
> >
> > 	* cpu-arm.c: New Cortex-R52+ CPU.
> >
> > gas/
> >
> > 2021-09-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
> >
> >          * 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.
> >
> 
> Approved - please apply.

commit 80cfde76a74fe03a139ad0e78e239bff315792d1

> Cheers
>    Nick


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

end of thread, other threads:[~2021-09-30 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 10:26 [PATCH][GAS] arm: enable Cortex-R52+ CPU Przemyslaw Wirkus
     [not found] ` <25378296-130b-4bcc-d1e8-baa2f7921a66@redhat.com>
2021-09-30 20:22   ` Przemyslaw Wirkus

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).