1 /* ARM CPU architectures.
2 Copyright (C
) 1991-2015 Free Software Foundation
, Inc.
4 This file is part of GCC.
6 GCC is free software
; you can redistribute it and
/or modify it
7 under the terms of the GNU General Public License as published
8 by the Free Software Foundation
; either version
3, or (at your
9 option
) any later version.
11 GCC is distributed in the hope that it will be useful
, but WITHOUT
12 ANY WARRANTY
; without even the implied warranty of MERCHANTABILITY
13 or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC
; see the file COPYING3. If not see
18 <http
://www.gnu.org
/licenses
/>.
*/
20 /* Before using #include to read this file
, define a macro
:
22 ARM_ARCH(NAME
, CORE
, ARCH
, FLAGS
)
24 The NAME is the name of the architecture
, represented as a string
25 constant. The CORE is the identifier for a core representative of
26 this architecture. ARCH is the architecture revision. FLAGS are
27 the flags implied by the architecture.
29 genopt.sh assumes no whitespace up to the first
"," in each entry.
*/
31 ARM_ARCH("armv2", arm2
, 2, FL_CO_PROC | FL_MODE26 | FL_FOR_ARCH2
)
32 ARM_ARCH("armv2a", arm2
, 2, FL_CO_PROC | FL_MODE26 | FL_FOR_ARCH2
)
33 ARM_ARCH("armv3", arm6
, 3, FL_CO_PROC | FL_MODE26 | FL_FOR_ARCH3
)
34 ARM_ARCH("armv3m", arm7m
, 3M
, FL_CO_PROC | FL_MODE26 | FL_FOR_ARCH3M
)
35 ARM_ARCH("armv4", arm7tdmi
, 4, FL_CO_PROC | FL_MODE26 | FL_FOR_ARCH4
)
36 /* Strictly
, FL_MODE26 is a permitted option for v4t
, but there are no
37 implementations that support it
, so we will leave it out for now.
*/
38 ARM_ARCH("armv4t", arm7tdmi
, 4T
, FL_CO_PROC | FL_FOR_ARCH4T
)
39 ARM_ARCH("armv5", arm10tdmi
, 5, FL_CO_PROC | FL_FOR_ARCH5
)
40 ARM_ARCH("armv5t", arm10tdmi
, 5T
, FL_CO_PROC | FL_FOR_ARCH5T
)
41 ARM_ARCH("armv5e", arm1026ejs
, 5E
, FL_CO_PROC | FL_FOR_ARCH5E
)
42 ARM_ARCH("armv5te", arm1026ejs
, 5TE
, FL_CO_PROC | FL_FOR_ARCH5TE
)
43 ARM_ARCH("armv6", arm1136js
, 6, FL_CO_PROC | FL_FOR_ARCH6
)
44 ARM_ARCH("armv6j", arm1136js
, 6J
, FL_CO_PROC | FL_FOR_ARCH6J
)
45 ARM_ARCH("armv6k", mpcore
, 6K
, FL_CO_PROC | FL_FOR_ARCH6K
)
46 ARM_ARCH("armv6z", arm1176jzs
, 6Z
, FL_CO_PROC | FL_FOR_ARCH6Z
)
47 ARM_ARCH("armv6zk", arm1176jzs
, 6ZK
, FL_CO_PROC | FL_FOR_ARCH6ZK
)
48 ARM_ARCH("armv6t2", arm1156t2s
, 6T2
, FL_CO_PROC | FL_FOR_ARCH6T2
)
49 ARM_ARCH("armv6-m", cortexm1
, 6M
, FL_FOR_ARCH6M
)
50 ARM_ARCH("armv6s-m", cortexm1
, 6M
, FL_FOR_ARCH6M
)
51 ARM_ARCH("armv7", cortexa8
, 7, FL_CO_PROC | FL_FOR_ARCH7
)
52 ARM_ARCH("armv7-a", cortexa8
, 7A
, FL_CO_PROC | FL_FOR_ARCH7A
)
53 ARM_ARCH("armv7ve", cortexa8
, 7A
, FL_CO_PROC | FL_FOR_ARCH7VE
)
54 ARM_ARCH("armv7-r", cortexr4
, 7R
, FL_CO_PROC | FL_FOR_ARCH7R
)
55 ARM_ARCH("armv7-m", cortexm3
, 7M
, FL_CO_PROC | FL_FOR_ARCH7M
)
56 ARM_ARCH("armv7e-m", cortexm4
, 7EM
, FL_CO_PROC | FL_FOR_ARCH7EM
)
57 ARM_ARCH("armv8-a", cortexa53
, 8A
, FL_CO_PROC | FL_FOR_ARCH8A
)
58 ARM_ARCH("armv8-a+crc",cortexa53
, 8A
,FL_CO_PROC | FL_CRC32 | FL_FOR_ARCH8A
)
59 ARM_ARCH("iwmmxt", iwmmxt
, 5TE
, FL_LDSCHED | FL_STRONG | FL_FOR_ARCH5TE | FL_XSCALE | FL_IWMMXT
)
60 ARM_ARCH("iwmmxt2", iwmmxt2
, 5TE
, FL_LDSCHED | FL_STRONG | FL_FOR_ARCH5TE | FL_XSCALE | FL_IWMMXT | FL_IWMMXT2
)