]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/loongarch/loongarch-cpucfg-map.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / loongarch / loongarch-cpucfg-map.h
CommitLineData
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
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3, or (at your option)
11any later version.
12
13GCC is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along 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
27static 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
39static constexpr int cpucfg_useful_idx[] = {
40 0,
41 1,
42 2,
43 3,
44 16,
45 17,
46 18,
47 19,
48};
49
50static constexpr int N_CPUCFG_WORDS = 20;
51#endif /* LOONGARCH_CPUCFG_MAP_H */