public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][AARCH64]Use AARCH64_FL_FPSIMD flags for all cores in aarch64-cores.def
@ 2014-12-10 16:34 Renlin Li
  2014-12-11 15:11 ` Marcus Shawcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Renlin Li @ 2014-12-10 16:34 UTC (permalink / raw)
  To: gcc-patches; +Cc: Marcus Shawcroft, ramana Radhakrishnan

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

Hi all,

This patch will change AARCH64_FL_FPSIMD flags in aarch64-cores.def to 
AARCH64_FL_FOR_ARCH8 for all cores. In addition, duplicated flags from 
AARCH64_CORE expansion macro is removed.

After the change, flags for a core should only be defined in 
aarch64-cores.def file.


aarch64-none-elf has been tested on the model. No new issue.
Okay for trunk?

Regards,
Renlin Li


gcc/ChangeLog:

2014-12-10  Renlin Li  <renlin.li@arm.com>

     * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
     AARCH64_FL_FOR_ARCH8.
     * config/aarch64/aarch64.c (all_cores): Use FLAGS from 
aarch64-cores.def file
     only.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001new.patch --]
[-- Type: text/x-patch; name=0001new.patch, Size: 1993 bytes --]

diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def
index 312941f..110b41f 100644
--- a/gcc/config/aarch64/aarch64-cores.def
+++ b/gcc/config/aarch64/aarch64-cores.def
@@ -34,10 +34,10 @@
 
 /* V8 Architecture Processors.  */
 
-AARCH64_CORE("cortex-a53",  cortexa53, cortexa53, 8,  AARCH64_FL_FPSIMD | AARCH64_FL_CRC, cortexa53)
-AARCH64_CORE("cortex-a57",  cortexa15, cortexa15, 8,  AARCH64_FL_FPSIMD | AARCH64_FL_CRC, cortexa57)
-AARCH64_CORE("thunderx",    thunderx,  thunderx, 8,  AARCH64_FL_FPSIMD | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx)
+AARCH64_CORE("cortex-a53",  cortexa53, cortexa53, 8,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC, cortexa53)
+AARCH64_CORE("cortex-a57",  cortexa15, cortexa15, 8,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC, cortexa57)
+AARCH64_CORE("thunderx",    thunderx,  thunderx, 8,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx)
 
 /* V8 big.LITTLE implementations.  */
 
-AARCH64_CORE("cortex-a57.cortex-a53",  cortexa57cortexa53, cortexa53, 8,  AARCH64_FL_FPSIMD | AARCH64_FL_CRC, cortexa57)
+AARCH64_CORE("cortex-a57.cortex-a53",  cortexa57cortexa53, cortexa53, 8,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC, cortexa57)
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index e682edd..0e3b2be 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -374,12 +374,10 @@ struct processor
 static const struct processor all_cores[] =
 {
 #define AARCH64_CORE(NAME, IDENT, SCHED, ARCH, FLAGS, COSTS) \
-  {NAME, SCHED, #ARCH, ARCH,\
-    FLAGS | AARCH64_FL_FOR_ARCH##ARCH, &COSTS##_tunings},
+  {NAME, SCHED, #ARCH, ARCH, FLAGS, &COSTS##_tunings},
 #include "aarch64-cores.def"
 #undef AARCH64_CORE
-  {"generic", cortexa53, "8", 8,\
-    AARCH64_FL_FPSIMD | AARCH64_FL_FOR_ARCH8, &generic_tunings},
+  {"generic", cortexa53, "8", 8, AARCH64_FL_FOR_ARCH8, &generic_tunings},
   {NULL, aarch64_none, NULL, 0, 0, NULL}
 };
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][AARCH64]Use AARCH64_FL_FPSIMD flags for all cores in aarch64-cores.def
  2014-12-10 16:34 [PATCH][AARCH64]Use AARCH64_FL_FPSIMD flags for all cores in aarch64-cores.def Renlin Li
@ 2014-12-11 15:11 ` Marcus Shawcroft
  0 siblings, 0 replies; 2+ messages in thread
From: Marcus Shawcroft @ 2014-12-11 15:11 UTC (permalink / raw)
  To: Renlin Li; +Cc: gcc-patches

On 10 December 2014 at 16:34, Renlin Li <renlin.li@arm.com> wrote:

> 2014-12-10  Renlin Li  <renlin.li@arm.com>
>
>     * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
>     AARCH64_FL_FOR_ARCH8.
>     * config/aarch64/aarch64.c (all_cores): Use FLAGS from aarch64-cores.def
> file
>     only.

OK /Marcus

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-11 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-10 16:34 [PATCH][AARCH64]Use AARCH64_FL_FPSIMD flags for all cores in aarch64-cores.def Renlin Li
2014-12-11 15:11 ` Marcus Shawcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).