< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/X-Vector.java.template

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

@@ -2159,10 +2159,12 @@
             return ($Type$Species<S>) $Type$128Vector.SPECIES;
         } else if (s == Shapes.S_256_BIT) {
             return ($Type$Species<S>) $Type$256Vector.SPECIES;
         } else if (s == Shapes.S_512_BIT) {
             return ($Type$Species<S>) $Type$512Vector.SPECIES;
+        } else if (s == Shapes.S_Scalable_BIT) {
+            return ($Type$Species<S>) $Type$ScalableVector.SPECIES;
         } else {
             throw new IllegalArgumentException("Bad shape: " + s);
         }
     }
 }
< prev index next >