From: Przemyslaw Wirkus Date: Tue, 29 Sep 2020 21:22:44 +0000 (+0100) Subject: arm: add support for Cortex-X1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0eef5eea2b42d892df52b655e55458f27ac3fb81;p=gcc.git arm: add support for Cortex-X1 This adds support for the Arm Cortex-X1 CPU. For more information about this processor, see [0]. [0] : https://www.arm.com/products/cortex-x gcc/ChangeLog: * config/arm/arm-cpus.in: Add Cortex-X1 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 bf460ddbcaf..47a343db656 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -1447,6 +1447,17 @@ begin cpu cortex-a77 part d0d end cpu cortex-a77 +begin cpu cortex-x1 + cname cortexx1 + 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 d44 +end cpu cortex-x1 + begin cpu neoverse-n1 cname neoversen1 alias !ares diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt index b57206313e2..dac881874f8 100644 --- a/gcc/config/arm/arm-tables.opt +++ b/gcc/config/arm/arm-tables.opt @@ -240,6 +240,9 @@ Enum(processor_type) String(cortex-a76ae) Value( TARGET_CPU_cortexa76ae) EnumValue Enum(processor_type) String(cortex-a77) Value( TARGET_CPU_cortexa77) +EnumValue +Enum(processor_type) String(cortex-x1) Value( TARGET_CPU_cortexx1) + EnumValue Enum(processor_type) String(neoverse-n1) Value( TARGET_CPU_neoversen1) diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md index 2377037bf7d..86a117d68ce 100644 --- a/gcc/config/arm/arm-tune.md +++ b/gcc/config/arm/arm-tune.md @@ -45,8 +45,8 @@ cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35, cortexa73cortexa53,cortexa55,cortexa75, cortexa76,cortexa76ae,cortexa77, - neoversen1,neoversen2,cortexa75cortexa55, - cortexa76cortexa55,neoversev1,cortexm23, - cortexm33,cortexm35p,cortexm55, - cortexr52" + cortexx1,neoversen1,neoversen2, + cortexa75cortexa55,cortexa76cortexa55,neoversev1, + 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 200ecf7bbf8..274c17ec17a 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -19379,7 +19379,7 @@ Permissible names are: @samp{arm7tdmi}, @samp{arm7tdmi-s}, @samp{arm710t}, @samp{cortex-r5}, @samp{cortex-r7}, @samp{cortex-r8}, @samp{cortex-r52}, @samp{cortex-m0}, @samp{cortex-m0plus}, @samp{cortex-m1}, @samp{cortex-m3}, @samp{cortex-m4}, @samp{cortex-m7}, @samp{cortex-m23}, @samp{cortex-m33}, -@samp{cortex-m35p}, @samp{cortex-m55}, +@samp{cortex-m35p}, @samp{cortex-m55}, @samp{cortex-x1}, @samp{cortex-m1.small-multiply}, @samp{cortex-m0.small-multiply}, @samp{cortex-m0plus.small-multiply}, @samp{exynos-m1}, @samp{marvell-pj4}, @samp{neoverse-n1}, @samp{neoverse-n2}, @samp{neoverse-v1}, @samp{xscale},