annotate gcc/config/arc/arc-cpus.def @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* ARC CPU architectures.
kono
parents:
diff changeset
2 Copyright (C) 2016-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
7 under the terms of the GNU General Public License as published
kono
parents:
diff changeset
8 by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
9 option) any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
14 License for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* List of various ARC CPU configurations. If updated, cd to
kono
parents:
diff changeset
21 $(builddir)/gcc and run
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 $ make arc-cpus
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 This will regenerate / update the following source files:
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 - $(srcdir)/config/arc/t-multilib
kono
parents:
diff changeset
28 - $(srcdir)/config/arc/arc-tables.opt
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 After that, rebuild everything and check-in the new sources to the
kono
parents:
diff changeset
31 repo. This file defines the accepted values for -mcpu=<CPU>
kono
parents:
diff changeset
32 option.
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 Before including this file, define a macro:
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 ARC_CPU (NAME, ARCH, FLAGS, TUNE)
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 where the arguments are the fields of arc_cpu_t:
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 NAME A given arbitrary name.
kono
parents:
diff changeset
41 ARCH Base architecture for the given CPU.
kono
parents:
diff changeset
42 FLAGS Specific hardware flags that are enabled by this CPU configuration,
kono
parents:
diff changeset
43 as defined in arc-options.def file, and allowed by arc-arches.def
kono
parents:
diff changeset
44 file. The specific hardware flags are enumerated without using
kono
parents:
diff changeset
45 spaces between the '|' character and consequtive flags.
kono
parents:
diff changeset
46 TUNE Tune value for the given configuration, otherwise NONE. */
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 ARC_CPU (em, em, 0, NONE)
kono
parents:
diff changeset
49 ARC_CPU (arcem, em, FL_MPYOPT_2|FL_CD|FL_BS, NONE)
kono
parents:
diff changeset
50 ARC_CPU (em4, em, FL_CD, NONE)
kono
parents:
diff changeset
51 ARC_CPU (em4_dmips, em, FL_MPYOPT_2|FL_CD|FL_DIVREM|FL_NORM|FL_SWAP|FL_BS, NONE)
kono
parents:
diff changeset
52 ARC_CPU (em4_fpus, em, FL_MPYOPT_2|FL_CD|FL_DIVREM|FL_NORM|FL_SWAP|FL_BS|FL_FPU_FPUS, NONE)
kono
parents:
diff changeset
53 ARC_CPU (em4_fpuda, em, FL_MPYOPT_2|FL_CD|FL_DIVREM|FL_NORM|FL_SWAP|FL_BS|FL_FPU_FPUDA, NONE)
kono
parents:
diff changeset
54 ARC_CPU (quarkse_em, em, FL_MPYOPT_3|FL_CD|FL_DIVREM|FL_NORM|FL_SWAP|FL_BS|FL_FPX_QUARK|FL_SPFP|FL_DPFP, NONE)
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 ARC_CPU (hs, hs, 0, NONE)
kono
parents:
diff changeset
57 ARC_CPU (archs, hs, FL_MPYOPT_2|FL_DIVREM|FL_LL64, NONE)
kono
parents:
diff changeset
58 ARC_CPU (hs34, hs, FL_MPYOPT_2, NONE)
kono
parents:
diff changeset
59 ARC_CPU (hs38, hs, FL_MPYOPT_9|FL_DIVREM|FL_LL64, NONE)
kono
parents:
diff changeset
60 ARC_CPU (hs38_linux, hs, FL_MPYOPT_9|FL_DIVREM|FL_LL64|FL_FPU_FPUD_ALL, NONE)
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 ARC_CPU (arc600, 6xx, FL_BS, ARC600)
kono
parents:
diff changeset
63 ARC_CPU (arc600_norm, 6xx, FL_BS|FL_NORM, ARC600)
kono
parents:
diff changeset
64 ARC_CPU (arc600_mul64, 6xx, FL_BS|FL_NORM|FL_MUL64, ARC600)
kono
parents:
diff changeset
65 ARC_CPU (arc600_mul32x16, 6xx, FL_BS|FL_NORM|FL_MUL32x16, ARC600)
kono
parents:
diff changeset
66 ARC_CPU (arc601, 6xx, 0, ARC600)
kono
parents:
diff changeset
67 ARC_CPU (arc601_norm, 6xx, FL_NORM, ARC600)
kono
parents:
diff changeset
68 ARC_CPU (arc601_mul64, 6xx, FL_NORM|FL_MUL64, ARC600)
kono
parents:
diff changeset
69 ARC_CPU (arc601_mul32x16, 6xx, FL_NORM|FL_MUL32x16, ARC600)
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 ARC_CPU (arc700, 700, 0, ARC700_4_2_STD)
kono
parents:
diff changeset
72 ARC_CPU (nps400, 700, 0, ARC700_4_2_STD)
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 /* Local Variables: */
kono
parents:
diff changeset
75 /* mode: c */
kono
parents:
diff changeset
76 /* End: */