]>
Commit | Line | Data |
---|---|---|
88352420 XR |
1 | /* Generated automatically by "genstr" from "isa-evolution.in". |
2 | Please do not edit this file directly. | |
3 | ||
a945c346 | 4 | Copyright (C) 2023-2024 Free Software Foundation, Inc. |
88352420 XR |
5 | |
6 | This file is part of GCC. | |
7 | ||
8 | GCC is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 3, or (at your option) | |
11 | any later version. | |
12 | ||
13 | GCC is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GCC; see the file COPYING3. If not see | |
20 | <http://www.gnu.org/licenses/>. */ | |
21 | ||
22 | #ifndef LOONGARCH_CPUCFG_MAP_H | |
23 | #define LOONGARCH_CPUCFG_MAP_H | |
24 | ||
25 | #include "options.h" | |
26 | ||
27 | static constexpr struct { | |
28 | int cpucfg_word; | |
29 | unsigned int cpucfg_bit; | |
30 | HOST_WIDE_INT isa_evolution_bit; | |
31 | } cpucfg_map[] = { | |
61f1001f | 32 | { 2, 1u << 25, OPTION_MASK_ISA_FRECIPE }, |
88352420 | 33 | { 2, 1u << 26, OPTION_MASK_ISA_DIV32 }, |
51bda9f1 XR |
34 | { 2, 1u << 27, OPTION_MASK_ISA_LAM_BH }, |
35 | { 2, 1u << 28, OPTION_MASK_ISA_LAMCAS }, | |
88352420 XR |
36 | { 3, 1u << 23, OPTION_MASK_ISA_LD_SEQ_SA }, |
37 | }; | |
38 | ||
39 | static constexpr int cpucfg_useful_idx[] = { | |
40 | 0, | |
41 | 1, | |
42 | 2, | |
43 | 3, | |
44 | 16, | |
45 | 17, | |
46 | 18, | |
47 | 19, | |
48 | }; | |
49 | ||
50 | static constexpr int N_CPUCFG_WORDS = 20; | |
51 | #endif /* LOONGARCH_CPUCFG_MAP_H */ |