This patch adds support for Cortex-X1 for ARM.
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Mon, 28 Sep 2020 14:52:24 +0000 (15:52 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 28 Sep 2020 14:52:24 +0000 (15:52 +0100)
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.

bfd/ChangeLog
bfd/cpu-arm.c
gas/ChangeLog
gas/config/tc-arm.c
gas/doc/c-arm.texi
gas/testsuite/gas/arm/cpu-cortex-x1.d [new file with mode: 0644]

index 4222ebbf5c6d8a11f0f3161ca47d20f50cfe1a07..317c0d39d86195f96eec2294812c7daa14396e88 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-28  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
+
+       * cpu-arm.c: (processors) Add Cortex-X1.
+
 2020-09-28  Alan Modra  <amodra@gmail.com>
 
        PR 26656
index 0b7a8c45580d09f010a1062510fd8b1bf3b5cf4f..8d6977aee47fa11514298d43f027523e152dabbc 100644 (file)
@@ -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"           },
index fbd69ca6efae19e258a0d199a054f159cfc89f81..c1ccfb675d8bf0adf312b902c3c188139fb773d8 100644 (file)
@@ -1,3 +1,9 @@
+2020-09-28  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.
+
 2020-09-28  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
 
        * testsuite/gas/aarch64/etm-ro-invalid.d: New test.
index 39f989ea99cd2c4741fade07da1266fe596b8f0c..7d154e75929ceacfb242dfebc9a3e7a88943316f 100644 (file)
@@ -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),
index 16c94de675cbfaca076b415753026990f66f4d19..f8ed8bb904e61b08e91d4ba6ed954c6ddb9370cf 100644 (file)
@@ -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 (file)
index 0000000..68b869b
--- /dev/null
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1
+# objdump: -d -mcortex-x1
+
+#...