Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Turns out __loongarch64 is also likely a carryover from MIPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n authored and FreeFlyingSheep committed Aug 17, 2022
1 parent bfd5334 commit 4691aca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/LoongArch-toolchain-conventions-CN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ LoongArch 平台特有的预处理器内建宏。下表列举了这些架构相
|ABI 使用 64 位浮点寄存器传参
|===

由于历史原因,最早期的 LoongArch C/C++ 编译器提供了一批类似 MIPS 的预处理器内建宏
由于历史原因,最早期的 LoongArch C/C++ 编译器提供了一批 MIPS 风格的预处理器内建宏
因为用到这些宏的旧代码可能仍在被使用,符合本规范的编译器实现可以选择提供下表所述的预处理器内建宏。

由于这些宏的命名风格、使用姿势多多少少都与上表中的宏不一致,
Expand All @@ -508,6 +508,10 @@ LoongArch 平台特有的预处理器内建宏。下表列举了这些架构相
|等价于
|备注

|`__loongarch64`
|`__loongarch_grlen == 64`
|行为类似 `__mips64` ,当且仅当 `__loongarch_grlen == 64` 时被定义。

|`_LOONGARCH_ARCH`
|`__loongarch_arch`
|(无)
Expand Down
4 changes: 4 additions & 0 deletions docs/LoongArch-toolchain-conventions-EN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ portable code should not assume existence of these macros, nor use them.
|Equivalent to
|Description

|`__loongarch64`
|`__loongarch_grlen == 64`
|Similar to `__mips64`; defined iff `__loongarch_grlen == 64`.

|`_LOONGARCH_ARCH`
|`__loongarch_arch`
|n/a
Expand Down

0 comments on commit 4691aca

Please sign in to comment.