aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/loongarch/genopts/loongarch-strings
blob: e9ebd254bfa8bd6e0c502d50b244bcbe1425ae91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Defines the key strings for LoongArch compiler options.
#
# Copyright (C) 2021-2024 Free Software Foundation, Inc.
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any later
# version.
#
# GCC is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# <http://www.gnu.org/licenses/>.

# -march= / -mtune=
OPTSTR_ARCH	      arch
OPTSTR_TUNE	      tune

STR_CPU_NATIVE	      native
STR_ARCH_ABI_DEFAULT  abi-default
STR_TUNE_GENERIC      generic
STR_CPU_LOONGARCH64   loongarch64
STR_CPU_LA464	      la464
STR_CPU_LA664	      la664
STR_ARCH_LA64V1_0     la64v1.0
STR_ARCH_LA64V1_1     la64v1.1

# Base architecture
STR_ISA_BASE_LA64 la64

# -mfpu
OPTSTR_ISA_EXT_FPU    fpu
STR_NONE	      none
STR_ISA_EXT_FPU0      0
STR_ISA_EXT_FPU32     32
STR_ISA_EXT_FPU64     64

OPTSTR_SOFT_FLOAT     soft-float
OPTSTR_SINGLE_FLOAT   single-float
OPTSTR_DOUBLE_FLOAT   double-float

# SIMD extensions
OPTSTR_ISA_EXT_SIMD   simd
STR_ISA_EXT_LSX       lsx
STR_ISA_EXT_LASX      lasx

# -mabi=
OPTSTR_ABI_BASE	      abi
STR_ABI_BASE_LP64D    lp64d
STR_ABI_BASE_LP64F    lp64f
STR_ABI_BASE_LP64S    lp64s

# ABI extension types
STR_ABI_EXT_BASE      base

# -mcmodel=
OPTSTR_CMODEL	      cmodel
STR_CMODEL_NORMAL     normal
STR_CMODEL_TINY	      tiny
STR_CMODEL_TS	      tiny-static
STR_CMODEL_MEDIUM     medium
STR_CMODEL_LARGE      large
STR_CMODEL_EXTREME    extreme