< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/ShortVector.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

*** 1126,1135 **** --- 1126,1137 ---- return (ShortSpecies<S>) Short128Vector.SPECIES; } else if (s == Shapes.S_256_BIT) { return (ShortSpecies<S>) Short256Vector.SPECIES; } else if (s == Shapes.S_512_BIT) { return (ShortSpecies<S>) Short512Vector.SPECIES; + } else if (s == Shapes.S_Scalable_BIT) { + return (ShortSpecies<S>) ShortScalableVector.SPECIES; } else { throw new IllegalArgumentException("Bad shape: " + s); } } }
< prev index next >