2 # Generate csky_tables.opt from the lists in *.def.
3 # Copyright (C) 2018 Free Software Foundation, Inc.
4 # Contributed by C-SKY Microsystems and Mentor Graphics.
6 # This file is part of GCC.
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)
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.
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/>.
23 ; -*- buffer-read-only: t -*-
24 ; Generated automatically by csky_genopt.sh from csky_cores.def.
26 ; Copyright (C) 2018 Free Software Foundation, Inc.
28 ; This file is part of GCC.
30 ; GCC is free software; you can redistribute it and/or modify it under
31 ; the terms of the GNU General Public License as published by the Free
32 ; Software Foundation; either version 3, or (at your option) any later
35 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
36 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
37 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
40 ; You should have received a copy of the GNU General Public License
41 ; along with GCC; see the file COPYING3. If not see
42 ; <http://www.gnu.org/licenses/>.
45 Name(csky_processor_type) Type(enum csky_processor_type)
46 Known CSKY CPUs (for use with the -mcpu= options):
50 awk -F'[(, ]+' '/^CSKY_CORE/ {
55 print "Enum(csky_processor_type) String(" name ") Value( TARGET_CPU_" enum ")"
61 Name(csky_arch) Type(int)
62 Known CSKY architectures (for use with the -march= option):
66 awk -F'[(, ]+' 'BEGIN {
73 print "Enum(csky_arch) String(" name ") Value(" value ")"
80 Name(csky_fpu) Type(enum csky_fpu_type)
81 Known CSKY FPUs (for use with the -mfpu= option):
91 print "Enum(csky_fpu) String(" name ") Value(TARGET_FPU_" enum ")"
96 print "Enum(csky_fpu) String(auto) Value(TARGET_FPU_auto)"