Skip to content

Commit 97a9ec6

Browse files
committed
Add EF_RISCV_FLOAT_ABI mask macro
1 parent a128983 commit 97a9ec6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

riscv-elf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ rules about 2✕XLEN aligned arguments being passed in "aligned" register pairs.
434434
store "float" and "double" values in F registers, but would not store "long
435435
double" values in F registers. If none of the float ABI flags are set, the
436436
object is taken to use the soft-float ABI.
437+
* EF_RISCV_FLOAT_ABI (0x0006): This macro is used as a mask to test for one
438+
of the above floating-point ABIs, e.g.,
439+
`(e_flags & EF_RISCV_FLOAT_ABI) == EF_RISCV_FLOAT_ABI_DOUBLE`.
437440
* EF_RISCV_RVE (0x0008): This bit is set when the binary targets the E ABI.
438441
* EF_RISCV_TSO (0x0010): This bit is set when the binary requires the RVTSO
439442
memory consistency model.

0 commit comments

Comments
 (0)