[vector] Fix compiler errors
Paul Sandoz
paul.sandoz at oracle.com
Wed Dec 4 18:02:44 UTC 2019
Fix some compiler errors (warnings as errors) for some logical expressions:
http://cr.openjdk.java.net/~psandoz/panama/vector-hs-errors/webrev/ <http://cr.openjdk.java.net/~psandoz/panama/vector-hs-errors/webrev/>
Separately when running all the tests I observed this single failure on by Mac book:
test Short64VectorTests.MINShort64VectorTests(short[i * 5]): failure
java.lang.IndexOutOfBoundsException: Index 1560 out of bounds for length 1557
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:373)
at jdk.incubator.vector/jdk.incubator.vector.VectorIntrinsics.checkFromIndexSize(VectorIntrinsics.java:496)
at jdk.incubator.vector/jdk.incubator.vector.ShortVector.fromArray(ShortVector.java:2799)
at Short64VectorTests.MINShort64VectorTests(Short64VectorTests.java:2171)
I have not yet looked more closely as to the cause, but it is a curious one since over tests pass, such as MAXShort64VectorTests(short[i * 5]).
Paul.
More information about the panama-dev
mailing list