[aarch64-port-dev ] RFR(S): 8210461 - AArch64: Math.cos intrinsic gives incorrect results

Andrew Haley aph at redhat.com
Fri Sep 7 13:52:06 UTC 2018


On 09/07/2018 02:40 PM, Dmitrij Pochepko wrote:
> C-code: of affected place:
> 
> iq[jz] = (int)(z-two24B*fw);
> 
> with bug it was calculated as iq[jz] = (int)(z+two24B*fw);  // by fmadd 
> instruction
> 
> Fix is to change it into fmsub instruction for correct calculation.

Am I right to think that this code branch has never been tested?

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the aarch64-port-dev mailing list