[vectorIntrinsics] RFR: 8274631: assert(false) failed: bad AD file with -XX:UseKNLSetting

Paul Sandoz psandoz at openjdk.java.net
Fri Oct 1 16:48:49 UTC 2021


On Fri, 1 Oct 2021 10:14:38 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> - Fix for assertion failure in test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java crashes during compilation over KNL target.
> - A safety check has been added to prevent intrinsification of VectorMask.cast API if source and destination have incompatible ideal types i.e one is predicate vector type (TypeVectMask) and other a vector type (TypeVect).

Verified test now passes with fix.

src/hotspot/share/opto/vectorIntrinsics.cpp line 2416:

> 2414:       ((src_type->isa_vect() && dst_type->isa_vectmask()) ||
> 2415:       (dst_type->isa_vect() && src_type->isa_vectmask()))) {
> 2416:     return false;

Should we add `if (C->print_intrinsics()) { ... }` in this case?

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

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


More information about the panama-dev mailing list