From: Przemyslaw Wirkus Date: Thu, 17 Dec 2020 20:58:39 +0000 (+0000) Subject: arm: Add support for Cortex-A78C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35b8d268746362fa66e297c4ae152a9cfafd4bb0;p=gcc.git arm: Add support for Cortex-A78C 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. --- diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index 8c61ad0f048..896948fc52c 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -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 diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt index 05f5c08400b..8637933ad85 100644 --- a/gcc/config/arm/arm-tables.opt +++ b/gcc/config/arm/arm-tables.opt @@ -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) diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md index 32657da48a5..e10d73eb9de 100644 --- a/gcc/config/arm/arm-tune.md +++ b/gcc/config/arm/arm-tune.md @@ -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)"))) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 8766bcdfc18..15e3d5565c5 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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},