[aarch64-port-dev ] RFR(S): 8210461 - AArch64: Math.cos intrinsic gives incorrect results
Dmitrij Pochepko
dmitrij.pochepko at bell-sw.com
Fri Sep 7 14:03:18 UTC 2018
I remember debugging this branch while running JCK tests.
Haven't checked precisely, but probably fw was 0 on those cases, so, z
- two24B*fw and z + tmp24B*fw. It would explain such behavior.
On 07/09/18 16:52, Andrew Haley wrote:
> 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?
>
More information about the hotspot-compiler-dev
mailing list