arm: Add support for Cortex-X1C CPU.
authorSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Mon, 14 Nov 2022 13:55:51 +0000 (13:55 +0000)
committerSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Mon, 14 Nov 2022 13:56:05 +0000 (13:56 +0000)
This patch adds support for Cortex-X1C CPU in Arm.

bfd/ChangeLog:

2022-11-09  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * cpu-arm.c (processors): Add Cortex-X1C CPU entry.

gas/ChangeLog:

2022-11-09  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

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

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

index 53f61e304afd876628df1ca298da0f508400ee8e..853a118d4d47c6660bc7673e82b618d306bae786 100644 (file)
@@ -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"           },
index 86731348e3e8de80fd5e7a892eac9ea5d41e8c5a..8642ef1bb95445bc4704b0e0b53d34c12b93685a 100644 (file)
--- 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
index 0f7d7695c0eb9b2eb5431ca314c54edfed9b633e..8864286269301f418840a9cd7c3347016ef4db0b 100644 (file)
@@ -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),
index 4016d3a76957e545ad8d3f1fad2067b94bb9b83e..0605d326a210afcc025f063c2cc2b3937eeda178 100644 (file)
@@ -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 (file)
index 0000000..cf83de7
--- /dev/null
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1c CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1c
+# objdump: -d -mcortex-x1c
+
+#...