On 7/8/20 3:20 PM, Max Filippov wrote:
> pickNaNMulAdd logic on Xtensa is to apply pickNaN to the inputs of the
> expression (a * b) + c. However if default NaN is produces as a result
> of (a * b) calculation it is not considered when c is NaN.
> So with two pickNaN variants there must be two pickNaNMulAdd variants.
> In addition the invalid flag is always set when (a * b) produces NaN.
> 
> Cc: Peter Maydell <peter.mayd...@linaro.org>
> Cc: "Alex Bennée" <alex.ben...@linaro.org>
> Cc: Richard Henderson <richard.hender...@linaro.org>
> Signed-off-by: Max Filippov <jcmvb...@gmail.com>
> ---
> Changes v2->v3:
> - handle infzero case in pickNaNMulAdd properly and reword commit
>   message

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~


Reply via email to