Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366588

VectorAPI: Re-intrinsify VectorMask.laneIsSet where the input index is a variable

XMLWordPrintable

      For the following case, laneIsSet should be intrinsified but not. This intrinsic was supported in https://github.com/openjdk/jdk/pull/14200 but broken by https://github.com/openjdk/jdk/pull/25673, maybe this is a mistake, fix this issue.

      public static int testLaneIsSet(int idx) {
      VectorMask<Double> m=VectorMask.fromArray(D_SPECIES, ma, 0);
      if (m.laneIsSet(idx))

      { returnm.trueCount(); }
      return0;
      }

            xgong Xiaohong Gong
            xgong Xiaohong Gong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: