| 1 |
/* Copyright (C) 2011-2025 Free Software Foundation, Inc. |
| 2 |
Contributed by ARM Ltd. |
| 3 |
|
| 4 |
This file is part of GCC. |
| 5 |
|
| 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. |
| 10 |
|
| 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. |
| 15 |
|
| 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/>. */ |
| 19 |
|
| 20 |
/* Before using #include to read this file, define a macro: |
| 21 |
|
| 22 |
AARCH64_ARCH(NAME, CORE, ARCH_IDENT, ARCH_REV, FLAGS) |
| 23 |
|
| 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_IDENT is the architecture identifier. It must be |
| 27 |
unique and be syntactically valid to appear as part of an enum identifier. |
| 28 |
ARCH_REV is an integer specifying the architecture major revision. |
| 29 |
FLAGS are the flags implied by the architecture. |
| 30 |
Due to the assumptions about the positions of these fields in config.gcc, |
| 31 |
NAME should be kept as the first argument. */ |
| 32 |
|
| 33 |
AARCH64_ARCH("armv8-a", generic_armv8_a, V8A, 8, (SIMD)) |
| 34 |
AARCH64_ARCH("armv8.1-a", generic_armv8_a, V8_1A, 8, (V8A, LSE, CRC, RDMA)) |
| 35 |
AARCH64_ARCH("armv8.2-a", generic_armv8_a, V8_2A, 8, (V8_1A)) |
| 36 |
AARCH64_ARCH("armv8.3-a", generic_armv8_a, V8_3A, 8, (V8_2A, PAUTH, RCPC, FCMA, JSCVT)) |
| 37 |
AARCH64_ARCH("armv8.4-a", generic_armv8_a, V8_4A, 8, (V8_3A, F16FML, DOTPROD, FLAGM, RCPC2)) |
| 38 |
AARCH64_ARCH("armv8.5-a", generic_armv8_a, V8_5A, 8, (V8_4A, SB, SSBS, PREDRES, FRINTTS, FLAGM2)) |
| 39 |
AARCH64_ARCH("armv8.6-a", generic_armv8_a, V8_6A, 8, (V8_5A, I8MM, BF16)) |
| 40 |
AARCH64_ARCH("armv8.7-a", generic_armv8_a, V8_7A, 8, (V8_6A, WFXT, XS)) |
| 41 |
AARCH64_ARCH("armv8.8-a", generic_armv8_a, V8_8A, 8, (V8_7A, MOPS)) |
| 42 |
AARCH64_ARCH("armv8.9-a", generic_armv8_a, V8_9A, 8, (V8_8A, CSSC)) |
| 43 |
AARCH64_ARCH("armv8-r", generic_armv8_a, V8R , 8, (V8_4A)) |
| 44 |
AARCH64_ARCH("armv9-a", generic_armv9_a, V9A , 9, (V8_5A, SVE2)) |
| 45 |
AARCH64_ARCH("armv9.1-a", generic_armv9_a, V9_1A, 9, (V8_6A, V9A)) |
| 46 |
AARCH64_ARCH("armv9.2-a", generic_armv9_a, V9_2A, 9, (V8_7A, V9_1A)) |
| 47 |
AARCH64_ARCH("armv9.3-a", generic_armv9_a, V9_3A, 9, (V8_8A, V9_2A)) |
| 48 |
AARCH64_ARCH("armv9.4-a", generic_armv9_a, V9_4A, 9, (V8_9A, V9_3A, SVE2p1)) |
| 49 |
AARCH64_ARCH("armv9.5-a", generic_armv9_a, V9_5A, 9, (V9_4A, CPA, FAMINMAX, LUT)) |
| 50 |
|
| 51 |
#undef AARCH64_ARCH |