RFR: 8285868: x86_64 intrinsics for floating point methods isNaN, isFinite and isInfinite [v4]
Srinivas Vamsi Parasa
duke at openjdk.java.net
Wed May 18 05:17:44 UTC 2022
On Wed, 18 May 2022 04:26:23 GMT, Srinivas Vamsi Parasa <duke at openjdk.java.net> wrote:
>> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 4785:
>>
>>> 4783: kmovbl(dst, tmp);
>>> 4784: if (opcode == Op_IsFiniteF) {
>>> 4785: xorl(dst, 0x00000001);
>>
>> `notl(dst)`?
>
> I can't recall why `notl(dst)` didn't work. Will try it and let you know.
notl(dst) doesn't work. we need to flip only the last bit as the kreg stores the result in the last bit.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8459
More information about the hotspot-compiler-dev
mailing list