From e278ae6fdc213ed102e970b5ad115caa8076e761 Mon Sep 17 00:00:00 2001 From: Evandro Menezes Date: Mon, 6 Apr 2015 19:19:34 +0000 Subject: [PATCH] add option for the Samsung Exynos M1 core * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option. * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1". * config/arm/arm-cores.def (exynos-m1): New core. * config/arm/arm-tune.md: Regenerate. * config/arm/arm-tables.opt: Add entry for "exynos-m1". * config/arm/bpabi.h: Likewise. From-SVN: r221883 --- gcc/ChangeLog | 9 +++++++++ gcc/config/arm/arm-cores.def | 1 + gcc/config/arm/arm-tables.opt | 3 +++ gcc/config/arm/arm-tune.md | 3 ++- gcc/config/arm/arm.c | 1 + gcc/config/arm/bpabi.h | 2 ++ gcc/doc/invoke.texi | 1 + 7 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13436290b4c..d40cd516d78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-04-06 Evandro Menezes + + * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option. + * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1". + * config/arm/arm-cores.def (exynos-m1): New core. + * config/arm/arm-tune.md: Regenerate. + * config/arm/arm-tables.opt: Add entry for "exynos-m1". + * config/arm/bpabi.h: Likewise. + 2015-04-06 Ilya Enkovich * ipa-cp (set_single_call_flag): Remove too diff --git a/gcc/config/arm/arm-cores.def b/gcc/config/arm/arm-cores.def index b22ea7fd6d4..7ade8a11f13 100644 --- a/gcc/config/arm/arm-cores.def +++ b/gcc/config/arm/arm-cores.def @@ -168,6 +168,7 @@ ARM_CORE("cortex-a17.cortex-a7", cortexa17cortexa7, cortexa7, 7A, FL_LDSCHED | ARM_CORE("cortex-a53", cortexa53, cortexa53, 8A, FL_LDSCHED | FL_CRC32, cortex_a53) ARM_CORE("cortex-a57", cortexa57, cortexa57, 8A, FL_LDSCHED | FL_CRC32, cortex_a57) ARM_CORE("cortex-a72", cortexa72, cortexa57, 8A, FL_LDSCHED | FL_CRC32, cortex_a57) +ARM_CORE("exynos-m1", exynosm1, cortexa57, 8A, FL_LDSCHED | FL_CRC32, cortex_a57) ARM_CORE("xgene1", xgene1, xgene1, 8A, FL_LDSCHED, xgene1) /* V8 big.LITTLE implementations */ diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt index 3450e5b62af..510e7456119 100644 --- a/gcc/config/arm/arm-tables.opt +++ b/gcc/config/arm/arm-tables.opt @@ -312,6 +312,9 @@ Enum(processor_type) String(cortex-a57) Value(cortexa57) EnumValue Enum(processor_type) String(cortex-a72) Value(cortexa72) +EnumValue +Enum(processor_type) String(exynos-m1) Value(exynosm1) + EnumValue Enum(processor_type) String(xgene1) Value(xgene1) diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md index d459f27c98c..8b21d179e04 100644 --- a/gcc/config/arm/arm-tune.md +++ b/gcc/config/arm/arm-tune.md @@ -33,5 +33,6 @@ cortexm7,cortexm4,cortexm3, marvell_pj4,cortexa15cortexa7,cortexa17cortexa7, cortexa53,cortexa57,cortexa72, - xgene1,cortexa57cortexa53,cortexa72cortexa53" + exynosm1,xgene1,cortexa57cortexa53, + cortexa72cortexa53" (const (symbol_ref "((enum attr_tune) arm_tune)"))) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 50bd3ebab83..3b2b9a699c1 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -27209,6 +27209,7 @@ arm_issue_rate (void) case cortexa15: case cortexa57: + case exynosm1: return 3; case cortexm7: diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h index c62130d7919..ceaf2cc3385 100644 --- a/gcc/config/arm/bpabi.h +++ b/gcc/config/arm/bpabi.h @@ -73,6 +73,7 @@ |mcpu=cortex-a57.cortex-a53 \ |mcpu=cortex-a72 \ |mcpu=cortex-a72.cortex-a53 \ + |mcpu=exynos-m1 \ |mcpu=xgene1 \ |mcpu=cortex-m1.small-multiply \ |mcpu=cortex-m0.small-multiply \ @@ -97,6 +98,7 @@ |mcpu=cortex-a57.cortex-a53 \ |mcpu=cortex-a72 \ |mcpu=cortex-a72.cortex-a53 \ + |mcpu=exynos-m1 \ |mcpu=xgene1 \ |mcpu=cortex-m1.small-multiply \ |mcpu=cortex-m0.small-multiply \ diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 22710932a66..38e0f650aea 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -13211,6 +13211,7 @@ Permissible names are: @samp{arm2}, @samp{arm250}, @samp{cortex-m1.small-multiply}, @samp{cortex-m0.small-multiply}, @samp{cortex-m0plus.small-multiply}, +@samp{exynos-m1}, @samp{marvell-pj4}, @samp{xscale}, @samp{iwmmxt}, @samp{iwmmxt2}, @samp{ep9312}, @samp{fa526}, @samp{fa626}, -- 2.30.2