public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [GAS][arm] Add support for Cortex-X1
@ 2020-09-25 13:30 Przemyslaw Wirkus
  2020-09-28 14:53 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Przemyslaw Wirkus @ 2020-09-25 13:30 UTC (permalink / raw)
  To: binutils; +Cc: Richard Earnshaw, nickc, Ramana Radhakrishnan, Marcus Shawcroft

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

Hi,

This patch adds support for Cortex-X1

This adds support for the Arm Cortex-X1 CPU in AArch32 GAS. For more
information about this processor, see [0].

[0] : https://www.arm.com/products/cortex-x

OK for master branch?

PS: I do not have write permission, can this be commited in my name if
approved please?

Kind Regards,
Przemyslaw Wirkus

bfd/ChangeLog:

2020-09-25  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

	* cpu-arm.c: (processors) Add Cortex-X1.

gas/ChangeLog:

2020-09-25  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

	* config/tc-arm.c: (arm_cpus): Add Cortex-X1.
	* doc/c-arm.texi: Document -mcpu=cortex-x1.
	* testsuite/gas/arm/cpu-cortex-x1.d: New test.


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

diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 0b7a8c45580d09f010a1062510fd8b1bf3b5cf4f..8d6977aee47fa11514298d43f027523e152dabbc 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -165,6 +165,7 @@ processors[] =
   { bfd_mach_arm_8R,	  "cortex-r52"	    },
   { bfd_mach_arm_7,	  "cortex-r7"	    },
   { bfd_mach_arm_7,	  "cortex-r8"	    },
+  { bfd_mach_arm_8,	  "cortex-x1"	    },
   { bfd_mach_arm_4T,	  "ep9312"	    },
   { bfd_mach_arm_8,	  "exynos-m1"	    },
   { bfd_mach_arm_4,	  "fa526"	    },
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 455a1401b7fa9c40426933b82b465393c1c25be7..9f8f153ada97c54f177f916a6370a965237561df 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -31588,6 +31588,9 @@ static const struct arm_cpu_option_table arm_cpus[] =
   ARM_CPU_OPT ("cortex-m0plus",	  "Cortex-M0+",	       ARM_ARCH_V6SM,
 	       ARM_ARCH_NONE,
 	       FPU_NONE),
+  ARM_CPU_OPT ("cortex-x1",   "Cortex-X1",	       ARM_ARCH_V8_2A,
+	       ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST),
+	       FPU_ARCH_DOTPROD_NEON_VFP_ARMV8),
   ARM_CPU_OPT ("exynos-m1",	  "Samsung Exynos M1", ARM_ARCH_V8A,
 	       ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC),
 	       FPU_ARCH_CRYPTO_NEON_VFP_ARMV8),
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index 16c94de675cbfaca076b415753026990f66f4d19..f8ed8bb904e61b08e91d4ba6ed954c6ddb9370cf 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -147,6 +147,7 @@ recognized:
 @code{cortex-m1},
 @code{cortex-m0},
 @code{cortex-m0plus},
+@code{cortex-x1},
 @code{exynos-m1},
 @code{marvell-pj4},
 @code{marvell-whitney},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-x1.d b/gas/testsuite/gas/arm/cpu-cortex-x1.d
new file mode 100644
index 0000000000000000000000000000000000000000..68b869b5c43262bb5d1a3bd85f4b7f593fce46bd
--- /dev/null
+++ b/gas/testsuite/gas/arm/cpu-cortex-x1.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1
+# objdump: -d -mcortex-x1
+
+#...

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

* Re: [GAS][arm] Add support for Cortex-X1
  2020-09-25 13:30 [GAS][arm] Add support for Cortex-X1 Przemyslaw Wirkus
@ 2020-09-28 14:53 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2020-09-28 14:53 UTC (permalink / raw)
  To: Przemyslaw Wirkus, binutils
  Cc: Richard Earnshaw, Ramana Radhakrishnan, Marcus Shawcroft

Hi Przemyslaw,

> This patch adds support for Cortex-X1

Approved and applied.

Cheers
  Nick


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

end of thread, other threads:[~2020-09-28 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 13:30 [GAS][arm] Add support for Cortex-X1 Przemyslaw Wirkus
2020-09-28 14:53 ` Nick Clifton

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