loongarch-strings revision 1.1 1 # Defines the key strings for LoongArch compiler options.
2 #
3 # Copyright (C) 2021-2022 Free Software Foundation, Inc.
4 #
5 # This file is part of GCC.
6 #
7 # GCC is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation; either version 3, or (at your option) any later
10 # version.
11 #
12 # GCC is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 # License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GCC; see the file COPYING3. If not see
19 # <http://www.gnu.org/licenses/>.
20
21 # -march= / -mtune=
22 OPTSTR_ARCH arch
23 OPTSTR_TUNE tune
24
25 STR_CPU_NATIVE native
26 STR_CPU_LOONGARCH64 loongarch64
27 STR_CPU_LA464 la464
28
29 # Base architecture
30 STR_ISA_BASE_LA64V100 la64
31
32 # -mfpu
33 OPTSTR_ISA_EXT_FPU fpu
34 STR_ISA_EXT_NOFPU none
35 STR_ISA_EXT_FPU0 0
36 STR_ISA_EXT_FPU32 32
37 STR_ISA_EXT_FPU64 64
38
39 OPTSTR_SOFT_FLOAT soft-float
40 OPTSTR_SINGLE_FLOAT single-float
41 OPTSTR_DOUBLE_FLOAT double-float
42
43 # -mabi=
44 OPTSTR_ABI_BASE abi
45 STR_ABI_BASE_LP64D lp64d
46 STR_ABI_BASE_LP64F lp64f
47 STR_ABI_BASE_LP64S lp64s
48
49 # ABI extension types
50 STR_ABI_EXT_BASE base
51
52 # -mcmodel=
53 OPTSTR_CMODEL cmodel
54 STR_CMODEL_NORMAL normal
55 STR_CMODEL_TINY tiny
56 STR_CMODEL_TS tiny-static
57 STR_CMODEL_LARGE large
58 STR_CMODEL_EXTREME extreme
59