Integrated: 8278171: [vectorapi] Mask incorrectly computed for zero extending cast
Mai Đặng Quân Anh
duke at openjdk.java.net
Fri Dec 3 17:12:24 UTC 2021
On Wed, 1 Dec 2021 12:03:15 GMT, Mai Đặng Quân Anh <duke at openjdk.java.net> wrote:
> When doing an unsigned upcast, we perform a signed cast followed by a bitwise and operation to clip the extended signed bit. The sign clip mask is currently calculated incorrectly, the correct mask should have the number of least significant bit set equal to the size of the source elements. This patch fixes this trivial issue and adds several tests for zero extension casts.
>
> Thank you very much.
This pull request has now been integrated.
Changeset: 2e30fa93
Author: merykitty <anhmdq99 at gmail.com>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/2e30fa936dd5fffceb17d338271f5e725c85801c
Stats: 322 lines in 2 files changed: 321 ins; 0 del; 1 mod
8278171: [vectorapi] Mask incorrectly computed for zero extending cast
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.java.net/jdk/pull/6634
More information about the core-libs-dev
mailing list