Details
-
Bug
-
Resolution: Won't Fix
-
P4
-
17, 18, 19
Description
According to the Vector API doc, the LSHR operator computes a>>>(n&(ESIZE*8-1)).
However, the current implementation is incorrect for negative bytes/shorts.
Reproduce:
$ java --add-modules jdk.incubator.vector ByteShift.java
Expected output:
Done
Actual output:
(...)
i: 128
a[i]: -128
scalar: -16
vector: 16
However, the current implementation is incorrect for negative bytes/shorts.
Reproduce:
$ java --add-modules jdk.incubator.vector ByteShift.java
Expected output:
Done
Actual output:
(...)
i: 128
a[i]: -128
scalar: -16
vector: 16
Attachments
Issue Links
- links to
-
Review openjdk/jdk/8276