RFR: 8279508: Auto-vectorize Math.round API [v6]
Jatin Bhateja
jbhateja at openjdk.java.net
Wed Feb 23 09:03:39 UTC 2022
On Wed, 23 Feb 2022 01:31:24 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:
>> Jatin Bhateja has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8279508: Fixing for windows failure.
>
> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 4146:
>
>> 4144: vaddpd(xtmp1, src , xtmp1, vec_enc);
>> 4145: vrndscalepd(dst, xtmp1, 0x4, vec_enc);
>> 4146: evcvtpd2qq(dst, dst, vec_enc);
>
> Why do we need vrndscalepd in between, could we not directly use cvtpd2qq after vaddpd?
Thanks @sviswa7 , when a conversion is inexact, the value returned is rounded according to the rounding control bits in the MXCSR register or the embedded rounding control bits. DONE.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7094
More information about the hotspot-compiler-dev
mailing list