Commit 1022929
riscv: allow single-precision float ABI (lp64f / ilp32f)
The header rejected __riscv_float_abi_single with an #error, but
the F and D extensions share the same FCSR. The hard-float inline
implementations below the guard use only csrr/csrw/csrc on fcsr
and fflags, both of which are present whenever F is present. So
lp64f / ilp32f can use the same code path as the double ABI.
Closes #262.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3329022 commit 1022929
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 77 | + | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
| |||
0 commit comments