|
1 | 1 | // Written in the D programming language. |
| 2 | +// |
| 3 | +// NOTE: This must be kept in sync with std/system.d |
2 | 4 |
|
3 | 5 | /** |
4 | 6 | * Information about the target operating system, environment, and CPU. |
@@ -126,6 +128,9 @@ immutable |
126 | 128 | sh, /// The SuperH architecture, 32-bit |
127 | 129 | webAssembly, /// The WebAssembly virtual ISA (instruction set architecture), 32-bit |
128 | 130 | alpha, /// The Alpha architecture |
| 131 | + loongArch32, /// The LoongAtch architecture, 32-bit |
| 132 | + loongArch64, /// The LoongArch architecture, 64-bit |
| 133 | + xtensa, /// The Xtensa architecture, 32-bit |
129 | 134 | unknown, /// Unknown |
130 | 135 | } |
131 | 136 |
|
@@ -156,5 +161,8 @@ immutable |
156 | 161 | else version (SH) ISA instructionSetArchitecture = ISA.sh; |
157 | 162 | else version (WebAssembly) ISA instructionSetArchitecture = ISA.webAssembly; |
158 | 163 | else version (Alpha) ISA instructionSetArchitecture = ISA.alpha; |
| 164 | + else version (LoongArch32) ISA instructionSetArchitecture = ISA.loongArch32; |
| 165 | + else version (loongArch64) ISA instructionSetArchitecture = ISA.loongArch64; |
| 166 | + else version (Xtensa) ISA instructionSetArchitecture = ISA.xtensa; |
159 | 167 | else ISA instructionSetArchitecture = ISA.unknown; |
160 | 168 | } |
0 commit comments