From: Przemyslaw Wirkus Date: Mon, 28 Sep 2020 14:52:24 +0000 (+0100) Subject: This patch adds support for Cortex-X1 for ARM. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=394e9bf642df26a29f54852b8eb09fb2a9f6b7e1;p=binutils-gdb.git This patch adds support for Cortex-X1 for ARM. bfd * cpu-arm.c: (processors) Add Cortex-X1. gas * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4222ebbf5c6..317c0d39d86 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-09-28 Przemyslaw Wirkus + + * cpu-arm.c: (processors) Add Cortex-X1. + 2020-09-28 Alan Modra PR 26656 diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c index 0b7a8c45580..8d6977aee47 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/ChangeLog b/gas/ChangeLog index fbd69ca6efa..c1ccfb675d8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-09-28 Przemyslaw Wirkus + + * 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. + 2020-09-28 Przemyslaw Wirkus * testsuite/gas/aarch64/etm-ro-invalid.d: New test. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 39f989ea99c..7d154e75929 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 16c94de675c..f8ed8bb904e 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 00000000000..68b869b5c43 --- /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 + +#...