Skip to content

Add support for RV64E and LP64E #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions riscv-c-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ https://creativecommons.org/licenses/by/4.0/.
| __riscv | 1 | Always defined. |
| __riscv_xlen | <ul><li>32 for rv32</li><li>64 for rv64</li><li>128 for rv128</ul> | Always defined. |
| __riscv_flen | <ul><li>32 if the F extension is available **or**</li><li>64 if `D` extension available **or**</li><li>128 if `Q` extension available</li></ul> | `F` extension is available. |
| __riscv_32e | 1 | `E` extension is available. |
| __riscv_32e | 1 | RV32E is available. |
| __riscv_64e | 1 | RV64E is available. |
| __riscv_vector | 1 | Implies that any of the vector extensions (`v` or `zve*`) is available |
| __riscv_v_min_vlen | <N> (see [__riscv_v_min_vlen](#__riscv_v_min_vlen)) | The `V` extension or one of the `Zve*` extensions is available. |
| __riscv_v_elen | <N> (see [__riscv_v_elen](#__riscv_v_elen)) | The `V` extension or one of the `Zve*` extensions is available. |
Expand Down Expand Up @@ -147,8 +148,8 @@ For example:

| Name | Value | When defined |
| ------------------------ | ----- | ----------------------------- |
| __riscv_abi_rve | 1 | Defined if using `ilp32e` ABI |
| __riscv_float_abi_soft | 1 | Defined if using `ilp32`, `ilp32e` or `lp64` ABI. |
| __riscv_abi_rve | 1 | Defined if using `ilp32e` or `lp64e` ABI |
| __riscv_float_abi_soft | 1 | Defined if using `ilp32`, `ilp32e`, `lp64` or `lp64e` ABI. |
| __riscv_float_abi_single | 1 | Defined if using `ilp32f` or `lp64f` ABI. |
| __riscv_float_abi_double | 1 | Defined if using `ilp32d` or `lp64d` ABI. |
| __riscv_float_abi_quad | 1 | Defined if using `ilp32q` or `lp64q` ABI. |
Expand Down