arm: Add support for Cortex-A78C
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Thu, 17 Dec 2020 20:58:39 +0000 (20:58 +0000)
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Thu, 17 Dec 2020 20:58:39 +0000 (20:58 +0000)
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

gcc/ChangeLog:

* config/arm/arm-cpus.in: Add Cortex-A78C core.
* config/arm/arm-tables.opt: Regenerate.
* config/arm/arm-tune.md: Regenerate.
* doc/invoke.texi: Update docs.

gcc/config/arm/arm-cpus.in
gcc/config/arm/arm-tables.opt
gcc/config/arm/arm-tune.md
gcc/doc/invoke.texi

index 8c61ad0f048394c22ff21d0e31a4a88893e2a724..896948fc52c861db30dbc8ac9aafe915a7c43ec0 100644 (file)
@@ -1477,6 +1477,17 @@ begin cpu cortex-a78ae
  part d42
 end cpu cortex-a78ae
 
+begin cpu cortex-a78c
+ cname cortexa78c
+ tune for cortex-a57
+ tune flags LDSCHED
+ architecture armv8.2-a+fp16+dotprod
+ option crypto add FP_ARMv8 CRYPTO
+ costs cortex_a57
+ vendor 41
+ part d4b
+end cpu cortex-a78c
+
 begin cpu cortex-x1
  cname cortexx1
  tune for cortex-a57
index 05f5c08400b920ddd944c0a02c995670ccf7a1e4..8637933ad85ec1f264c30b60c79e0c3a67a7015b 100644 (file)
@@ -246,6 +246,9 @@ Enum(processor_type) String(cortex-a78) Value( TARGET_CPU_cortexa78)
 EnumValue
 Enum(processor_type) String(cortex-a78ae) Value( TARGET_CPU_cortexa78ae)
 
+EnumValue
+Enum(processor_type) String(cortex-a78c) Value( TARGET_CPU_cortexa78c)
+
 EnumValue
 Enum(processor_type) String(cortex-x1) Value( TARGET_CPU_cortexx1)
 
index 32657da48a5fdd1b7823231eb56d27572b29a417..e10d73eb9de41298c5fef208409be9218b300a5f 100644 (file)
@@ -45,9 +45,9 @@
        cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,
        cortexa73cortexa53,cortexa55,cortexa75,
        cortexa76,cortexa76ae,cortexa77,
-       cortexa78,cortexa78ae,cortexx1,
-       neoversen1,cortexa75cortexa55,cortexa76cortexa55,
-       neoversev1,neoversen2,cortexm23,
-       cortexm33,cortexm35p,cortexm55,
-       cortexr52"
+       cortexa78,cortexa78ae,cortexa78c,
+       cortexx1,neoversen1,cortexa75cortexa55,
+       cortexa76cortexa55,neoversev1,neoversen2,
+       cortexm23,cortexm33,cortexm35p,
+       cortexm55,cortexr52"
        (const (symbol_ref "((enum attr_tune) arm_tune)")))
index 8766bcdfc1876168d60bf934220586255f8ef372..15e3d5565c59a6c632787d3eb31262d43f699bcf 100644 (file)
@@ -19989,7 +19989,7 @@ Permissible names are: @samp{arm7tdmi}, @samp{arm7tdmi-s}, @samp{arm710t},
 @samp{cortex-a32}, @samp{cortex-a35}, @samp{cortex-a53}, @samp{cortex-a55},
 @samp{cortex-a57}, @samp{cortex-a72}, @samp{cortex-a73}, @samp{cortex-a75},
 @samp{cortex-a76}, @samp{cortex-a76ae}, @samp{cortex-a77},
-@samp{cortex-a78}, @samp{cortex-a78ae},
+@samp{cortex-a78}, @samp{cortex-a78ae}, @samp{cortex-a78c},
 @samp{ares}, @samp{cortex-r4}, @samp{cortex-r4f},
 @samp{cortex-r5}, @samp{cortex-r7}, @samp{cortex-r8}, @samp{cortex-r52},
 @samp{cortex-m0}, @samp{cortex-m0plus}, @samp{cortex-m1}, @samp{cortex-m3},