| 1 |
# Defines the key strings for LoongArch compiler options. |
| 2 |
# |
| 3 |
# Copyright (C) 2021-2025 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_ARCH_ABI_DEFAULT abi-default |
| 27 |
STR_TUNE_GENERIC generic |
| 28 |
STR_CPU_LOONGARCH64 loongarch64 |
| 29 |
STR_CPU_LA464 la464 |
| 30 |
STR_CPU_LA664 la664 |
| 31 |
STR_ARCH_LA64V1_0 la64v1.0 |
| 32 |
STR_ARCH_LA64V1_1 la64v1.1 |
| 33 |
|
| 34 |
# Base architecture |
| 35 |
STR_ISA_BASE_LA64 la64 |
| 36 |
|
| 37 |
# -mfpu |
| 38 |
OPTSTR_ISA_EXT_FPU fpu |
| 39 |
STR_NONE none |
| 40 |
STR_ISA_EXT_FPU0 0 |
| 41 |
STR_ISA_EXT_FPU32 32 |
| 42 |
STR_ISA_EXT_FPU64 64 |
| 43 |
|
| 44 |
OPTSTR_SOFT_FLOAT soft-float |
| 45 |
OPTSTR_SINGLE_FLOAT single-float |
| 46 |
OPTSTR_DOUBLE_FLOAT double-float |
| 47 |
|
| 48 |
# SIMD extensions |
| 49 |
OPTSTR_ISA_EXT_SIMD simd |
| 50 |
STR_ISA_EXT_LSX lsx |
| 51 |
STR_ISA_EXT_LASX lasx |
| 52 |
|
| 53 |
# -mabi= |
| 54 |
OPTSTR_ABI_BASE abi |
| 55 |
STR_ABI_BASE_LP64D lp64d |
| 56 |
STR_ABI_BASE_LP64F lp64f |
| 57 |
STR_ABI_BASE_LP64S lp64s |
| 58 |
|
| 59 |
# ABI extension types |
| 60 |
STR_ABI_EXT_BASE base |
| 61 |
|
| 62 |
# -mcmodel= |
| 63 |
OPTSTR_CMODEL cmodel |
| 64 |
STR_CMODEL_NORMAL normal |
| 65 |
STR_CMODEL_TINY tiny |
| 66 |
STR_CMODEL_TS tiny-static |
| 67 |
STR_CMODEL_MEDIUM medium |
| 68 |
STR_CMODEL_LARGE large |
| 69 |
STR_CMODEL_EXTREME extreme |