[vectorIntrinsics+mask] RFR: 8264563: Add masked vector intrinsics for binary/store operations [v5]

Xiaohong Gong xgong at openjdk.java.net
Fri Apr 16 03:10:33 UTC 2021


On Thu, 15 Apr 2021 16:15:59 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> Thanks for looking at this PR @PaulSandoz ! Yes, this is actually required for masked division operation. I think it has to make sure no div/0 exception happens during hotspot compiling the intrinsic? Am I missing something? Thanks!
>
> Did you observe any issues without this? I don't understand how such exceptions can occur when compiling the instrinsic, but could be missing something.

I tried to remove `that = that.lanewise(NOT, eqz)`, but not issues are found. I think this is because currently the hotspot doesn't implement the intrinsic for integer division. And it seems this is only added for the division with integer types which might not be useful. And there are no need with any zero checks for `float/double` types in JAVA.

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

PR: https://git.openjdk.java.net/panama-vector/pull/57


More information about the panama-dev mailing list