Skip to content

Commit fb843a0

Browse files
committed
Architectures: add LoongArch
1 parent 30c4faf commit fb843a0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Architectures.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@ CPU|`_M_IA64` (Intel C/C++)
179179
---|---
180180
|64100
181181

182+
## [LoongArch](http://en.wikipedia.org/wiki/LoongArch) ##
183+
184+
Type|Macro|Description
185+
---|---|---
186+
Identification|`__loongarch__`|Defined by GNU C, Clang and official toolchain conventions
187+
Version|`__loongarch_arch` = V|V = Version
188+
Version|`__loongarch_tune` = V|V = Version
189+
Version|`_LOONGARCH_ARCH` = V|V = Version, legacy
190+
Version|`_LOONGARCH_TUNE` = V|V = Version, legacy
191+
192+
More info on [official toolchain convention](https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html#_cc_preprocessor_built_in_macro_definitions)
193+
182194
## [Motorola 68k](http://en.wikipedia.org/wiki/M68k) ##
183195

184196
Type|Macro|Description

0 commit comments

Comments
 (0)