RFR: 8378312: [VectorAPI] libraryUnaryOp/libraryBinaryOp failed to intrinsify [v2]
Yasumasa Suenaga
ysuenaga at openjdk.org
Fri Feb 20 23:32:49 UTC 2026
On Fri, 20 Feb 2026 17:51:56 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> We need an IR test, could you investigate if that is possible?
I do not know how do I do... sorry.
> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMathLibrary.java line 295:
>
>> 293: @SuppressWarnings({"unchecked"})
>> 294: Class<V> vt = (Class<V>)vspecies.vectorType();
>> 295: AbstractSpecies<E> asp = (AbstractSpecies<E>)vspecies;
>
> Instead change method signature to use `AbstractSpecies<E>` (from `VectorSpecies<E>`) and at the call site change the argument to be result of `vspecies()` (from `species()`).
Fixed in new commit.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29835#issuecomment-3937631816
PR Review Comment: https://git.openjdk.org/jdk/pull/29835#discussion_r2835486757
More information about the core-libs-dev
mailing list