From: Srinath Parvathaneni Date: Mon, 14 Nov 2022 13:55:51 +0000 (+0000) Subject: arm: Add support for Cortex-X1C CPU. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cafdb713d837ce45cf6180966070fe77386f1d7d;p=binutils-gdb.git arm: Add support for Cortex-X1C CPU. This patch adds support for Cortex-X1C CPU in Arm. bfd/ChangeLog: 2022-11-09 Srinath Parvathaneni * cpu-arm.c (processors): Add Cortex-X1C CPU entry. gas/ChangeLog: 2022-11-09 Srinath Parvathaneni * NEWS: Update docs. * config/tc-arm.c (arm_cpus): Add cortex-x1c to -mcpu. * doc/c-arm.texi: Update docs. * testsuite/gas/arm/cpu-cortex-x1c.d: New test. --- diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c index 53f61e304af..853a118d4d4 100644 --- a/bfd/cpu-arm.c +++ b/bfd/cpu-arm.c @@ -170,6 +170,7 @@ processors[] = { bfd_mach_arm_7, "cortex-r7" }, { bfd_mach_arm_7, "cortex-r8" }, { bfd_mach_arm_8, "cortex-x1" }, + { bfd_mach_arm_8, "cortex-x1c" }, { bfd_mach_arm_4T, "ep9312" }, { bfd_mach_arm_8, "exynos-m1" }, { bfd_mach_arm_4, "fa526" }, diff --git a/gas/NEWS b/gas/NEWS index 86731348e3e..8642ef1bb95 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -32,6 +32,8 @@ * Add support for the RISC-V Zawrs extension, version 1.0-rc4. +* Add support for Cortex-X1C for Arm. + Changes in 2.39: * Remove (rudimentary) support for the x86-64 sub-architectures Intel L1OM and diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 0f7d7695c0e..88642862693 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -31746,6 +31746,9 @@ static const struct arm_cpu_option_table arm_cpus[] = ARM_CPU_OPT ("cortex-x1", "Cortex-X1", 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-x1c", "Cortex-X1C", ARM_ARCH_V8_2A, + ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB), + 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 4016d3a7695..0605d326a21 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -153,6 +153,7 @@ recognized: @code{cortex-m0}, @code{cortex-m0plus}, @code{cortex-x1}, +@code{cortex-x1c}, @code{exynos-m1}, @code{marvell-pj4}, @code{marvell-whitney}, diff --git a/gas/testsuite/gas/arm/cpu-cortex-x1c.d b/gas/testsuite/gas/arm/cpu-cortex-x1c.d new file mode 100644 index 00000000000..cf83de797ea --- /dev/null +++ b/gas/testsuite/gas/arm/cpu-cortex-x1c.d @@ -0,0 +1,6 @@ +# name: Assemble and dump for cortex-x1c CPU +# source: nop-asm.s +# as: -mcpu=cortex-x1c +# objdump: -d -mcortex-x1c + +#...