From: Naveen H S <nhurugalawadi@localhost.localdomain>

Please find attached the patch that modifies "__ARM_ARCH" as per latest ACLE.
Built and tested the patch on aarch64-marvell-linux-gnu.
Please review the patch and let me know if it's okay.

2021-04-03  Naveen H S  <nave...@marvell.com>

        PR tree-optimization/99312

        * config/aarch64/aarch64-arches.def (armv8.1-a): Modify ARCH_REV as per 
latest ACLE.
        (armv8.2-a): Likewise.
        (armv8.3-a): Likewise.
        (armv8.4-a): Likewise.
        (armv8.5-a): Likewise.
        (armv8.6-a): Likewise.
---
 gcc/config/aarch64/aarch64-arches.def | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/gcc/config/aarch64/aarch64-arches.def 
b/gcc/config/aarch64/aarch64-arches.def
index b7497277bb8..acaf5566927 100644
--- a/gcc/config/aarch64/aarch64-arches.def
+++ b/gcc/config/aarch64/aarch64-arches.def
@@ -25,18 +25,19 @@
    constant.  The CORE is the identifier for a core representative of
    this architecture.  ARCH_IDENT is the architecture identifier.  It must be
    unique and be syntactically valid to appear as part of an enum identifier.
-   ARCH_REV is an integer specifying the architecture major revision.
+   ARCH_REV is an integer (X * 100 + Y  E.g. for Armv8.1 it's 801. Except for
+   Armv8-a which is still 8) specifying the architecture major revision.
    FLAGS are the flags implied by the architecture.
    Due to the assumptions about the positions of these fields in config.gcc,
    the NAME should be kept as the first argument and FLAGS as the last.  */
 
 AARCH64_ARCH("armv8-a",              generic,       8A,        8,  
AARCH64_FL_FOR_ARCH8)
-AARCH64_ARCH("armv8.1-a",     generic,      8_1A,      8,  
AARCH64_FL_FOR_ARCH8_1)
-AARCH64_ARCH("armv8.2-a",     generic,      8_2A,      8,  
AARCH64_FL_FOR_ARCH8_2)
-AARCH64_ARCH("armv8.3-a",     generic,      8_3A,      8,  
AARCH64_FL_FOR_ARCH8_3)
-AARCH64_ARCH("armv8.4-a",     generic,      8_4A,      8,  
AARCH64_FL_FOR_ARCH8_4)
-AARCH64_ARCH("armv8.5-a",     generic,      8_5A,      8,  
AARCH64_FL_FOR_ARCH8_5)
-AARCH64_ARCH("armv8.6-a",     generic,      8_6A,      8,  
AARCH64_FL_FOR_ARCH8_6)
+AARCH64_ARCH("armv8.1-a",     generic,      8_1A,      801,  
AARCH64_FL_FOR_ARCH8_1)
+AARCH64_ARCH("armv8.2-a",     generic,      8_2A,      802,  
AARCH64_FL_FOR_ARCH8_2)
+AARCH64_ARCH("armv8.3-a",     generic,      8_3A,      803,  
AARCH64_FL_FOR_ARCH8_3)
+AARCH64_ARCH("armv8.4-a",     generic,      8_4A,      804,  
AARCH64_FL_FOR_ARCH8_4)
+AARCH64_ARCH("armv8.5-a",     generic,      8_5A,      805,  
AARCH64_FL_FOR_ARCH8_5)
+AARCH64_ARCH("armv8.6-a",     generic,      8_6A,      806,  
AARCH64_FL_FOR_ARCH8_6)
 AARCH64_ARCH("armv8-r",       generic,      8R  ,      8,  
AARCH64_FL_FOR_ARCH8_R)
 
 #undef AARCH64_ARCH
-- 
2.11.0

Reply via email to