[libre-riscv-dev] fp special functions
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Mon Aug 5 07:34:32 BST 2019
On Monday, August 5, 2019, Luke Kenneth Casson Leighton <lkcl at lkcl.net>
> On Monday, August 5, 2019, Jacob Lifshay <programmerjake at gmail.com> wrote:
>> On Sun, Aug 4, 2019, 22:41 Luke Kenneth Casson Leighton <lkcl at lkcl.net>
>> > https://libre-riscv.org/rv_major_opcode_1010011/#transcendentals_1op
>> > wow, that filled up *real* fast. i'd missed atan, in a 2nd reading of
>> > bug #127 - got it now.
>> note that atan(x) and atanpi(x) are just atan2(x, 1.0) and atan2pi(x,
>> so the atan and atanpi instructions are not needed
> Ok great, will move them to pseudo op aliases.
Hang on... there's no immed for loading 1.0 into an FP reg, it's one of the
downsides of RISCV, a FLD is a hard requirement.
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
More information about the libre-riscv-dev