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 06:37:49 UTC 2022


On Wed, 18 May 2022 06:02:27 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

>> setb either writes a 0 or 1 based on the condition. So, will it cause partial writes?
>
> Actually `setb` only writes the byte portion and leaves the remaining of the register intact, so it would be wrong without clearing the register beforehand.

`setb` is producing the correct results and also adding the `xor dst, dst` didn't give any performance improvement. Is it still necessary?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8459


More information about the hotspot-compiler-dev mailing list