< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/LongVector.java

Print this page
rev 52233 : Add scalable shapes for Arm Scalable Vector Extension.
Summary: Add scalable vector shapes to support Arm SVE better.
Reviewed-by: duke

@@ -1376,10 +1376,12 @@
             return (LongSpecies<S>) Long128Vector.SPECIES;
         } else if (s == Shapes.S_256_BIT) {
             return (LongSpecies<S>) Long256Vector.SPECIES;
         } else if (s == Shapes.S_512_BIT) {
             return (LongSpecies<S>) Long512Vector.SPECIES;
+        } else if (s == Shapes.S_Scalable_BIT) {
+            return (LongSpecies<S>) LongScalableVector.SPECIES;
         } else {
             throw new IllegalArgumentException("Bad shape: " + s);
         }
     }
 }
< prev index next >