From 1bbda94fe0174714e296335e7cc744b5fb618525 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wirkus Date: Mon, 16 Nov 2020 20:26:29 +0000 Subject: [PATCH] arm: Add support for Cortex-A78C This patch adds support for -mcpu=cortex-a78c command line option. For more information about this processor, see [0]: [0] https://developer.arm.com/ip-products/processors/cortex-a/cortex-a78c --- bfd/ChangeLog | 4 ++++ bfd/cpu-arm.c | 1 + gas/ChangeLog | 6 ++++++ gas/config/tc-arm.c | 3 +++ gas/doc/c-arm.texi | 1 + gas/testsuite/gas/arm/cpu-cortex-a78c.d | 6 ++++++ 6 files changed, 21 insertions(+) create mode 100644 gas/testsuite/gas/arm/cpu-cortex-a78c.d diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8e5822f5cd8..a06d5a77b9f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-11-16 Przemyslaw Wirkus + + * cpu-arm.c (processors): Add Cortex-A78C. + 2020-11-11 Tom Tromey * archive.c (getuid, getgid): Move... diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c index 76a8f9a4a9a..73eef18c234 100644 --- a/bfd/cpu-arm.c +++ b/bfd/cpu-arm.c @@ -152,6 +152,7 @@ processors[] = { bfd_mach_arm_8, "cortex-a77" }, { bfd_mach_arm_8, "cortex-a78" }, { bfd_mach_arm_8, "cortex-a78ae" }, + { bfd_mach_arm_8, "cortex-a78c" }, { bfd_mach_arm_6SM, "cortex-m0" }, { bfd_mach_arm_6SM, "cortex-m0plus" }, { bfd_mach_arm_6SM, "cortex-m1" }, diff --git a/gas/ChangeLog b/gas/ChangeLog index f047e8d16ab..369377660b1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-11-16 Przemyslaw Wirkus + + * config/tc-arm.c (arm_cpus): Add Cortex-A78C. + * doc/c-arm.texi: Document -mcpu=cortex-a78c. + * testsuite/gas/arm/cpu-cortex-a78c.d: New test. + 2020-11-14 Borislav Petkov * testsuite/gas/i386/x86-64-segovr.d: Adjust regexes. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index b87b277df60..841fcb1dfa8 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -31554,6 +31554,9 @@ static const struct arm_cpu_option_table arm_cpus[] = ARM_CPU_OPT ("cortex-a78ae", "Cortex-A78AE", ARM_ARCH_V8_2A, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB), FPU_ARCH_DOTPROD_NEON_VFP_ARMV8), + ARM_CPU_OPT ("cortex-a78c", "Cortex-A78C", ARM_ARCH_V8_2A, + ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB), + FPU_ARCH_DOTPROD_NEON_VFP_ARMV8), ARM_CPU_OPT ("ares", "Ares", ARM_ARCH_V8_2A, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST), FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_DOTPROD), diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index a3d6a5d3af0..faaa2ad2208 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -133,6 +133,7 @@ recognized: @code{cortex-a77}, @code{cortex-a78}, @code{cortex-a78ae}, +@code{cortex-a78c}, @code{ares}, @code{cortex-r4}, @code{cortex-r4f}, diff --git a/gas/testsuite/gas/arm/cpu-cortex-a78c.d b/gas/testsuite/gas/arm/cpu-cortex-a78c.d new file mode 100644 index 00000000000..e1a90e4d83e --- /dev/null +++ b/gas/testsuite/gas/arm/cpu-cortex-a78c.d @@ -0,0 +1,6 @@ +# name: Assemble and dump for cortex-a78c CPU +# source: nop-asm.s +# as: -mcpu=cortex-a78c +# objdump: -d -mcortex-a78c + +#... -- 2.30.2