qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v2] target/ppc: Enable hardfloat for PPC


From: Richard Henderson
Subject: Re: [RFC PATCH v2] target/ppc: Enable hardfloat for PPC
Date: Mon, 2 Mar 2020 16:11:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 3/2/20 3:16 PM, BALATON Zoltan wrote:
>> (2) IEEE has a number of implementation choices for corner cases, and we need
>> to implement the target's choices, not the host's choices.
> 
> But how is that related to inexact flag and float_round_nearest_even rounding
> mode which are the only two things can_use_fpu() function checks for?

float_round_nearest_even is the default rounding mode, and is what the host fpu
has been set for.  In order to use hardfloat for a different rounding mode, we
would need to change the host fpu control register, which is slow.

Inexact is the only flag that we cannot compute easily from the inputs and
output.  We check for NaN and Inf as inputs and outputs,
which is the clue that we may have to raise Invalid or Overflow.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]