--- old/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/IntMaxVector.java 2019-04-26 14:50:45.860233600 -0700 +++ new/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/IntMaxVector.java 2019-04-26 14:50:45.277605500 -0700 @@ -163,7 +163,7 @@ return VectorIntrinsics.cast( IntMaxVector.class, int.class, LENGTH, - s.boxType(), + s.vectorType(), s.elementType(), LENGTH, this, s, (species, vector) -> vector.castDefault(species) @@ -301,7 +301,7 @@ @ForceInline public IntVector reshape(VectorSpecies s) { Objects.requireNonNull(s); - if (s.bitSize() == 64 && (s.boxType() == Int64Vector.class)) { + if (s.bitSize() == 64 && (s.vectorType() == Int64Vector.class)) { return VectorIntrinsics.reinterpret( IntMaxVector.class, int.class, LENGTH, @@ -310,7 +310,7 @@ this, s, (species, vector) -> (IntVector) vector.defaultReinterpret(species) ); - } else if (s.bitSize() == 128 && (s.boxType() == Int128Vector.class)) { + } else if (s.bitSize() == 128 && (s.vectorType() == Int128Vector.class)) { return VectorIntrinsics.reinterpret( IntMaxVector.class, int.class, LENGTH, @@ -319,7 +319,7 @@ this, s, (species, vector) -> (IntVector) vector.defaultReinterpret(species) ); - } else if (s.bitSize() == 256 && (s.boxType() == Int256Vector.class)) { + } else if (s.bitSize() == 256 && (s.vectorType() == Int256Vector.class)) { return VectorIntrinsics.reinterpret( IntMaxVector.class, int.class, LENGTH, @@ -328,7 +328,7 @@ this, s, (species, vector) -> (IntVector) vector.defaultReinterpret(species) ); - } else if (s.bitSize() == 512 && (s.boxType() == Int512Vector.class)) { + } else if (s.bitSize() == 512 && (s.vectorType() == Int512Vector.class)) { return VectorIntrinsics.reinterpret( IntMaxVector.class, int.class, LENGTH, @@ -338,7 +338,7 @@ (species, vector) -> (IntVector) vector.defaultReinterpret(species) ); } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048) - && (s.bitSize() % 128 == 0) && (s.boxType() == IntMaxVector.class)) { + && (s.bitSize() % 128 == 0) && (s.vectorType() == IntMaxVector.class)) { return VectorIntrinsics.reinterpret( IntMaxVector.class, int.class, LENGTH, @@ -665,7 +665,7 @@ @Override @ForceInline - public IntMaxVector shiftL(int s) { + public IntMaxVector shiftLeft(int s) { return VectorIntrinsics.broadcastInt( VECTOR_OP_LSHIFT, IntMaxVector.class, int.class, LENGTH, this, s, @@ -674,13 +674,13 @@ @Override @ForceInline - public IntMaxVector shiftL(int s, VectorMask m) { - return blend(shiftL(s), m); + public IntMaxVector shiftLeft(int s, VectorMask m) { + return blend(shiftLeft(s), m); } @Override @ForceInline - public IntMaxVector shiftR(int s) { + public IntMaxVector shiftRight(int s) { return VectorIntrinsics.broadcastInt( VECTOR_OP_URSHIFT, IntMaxVector.class, int.class, LENGTH, this, s, @@ -689,13 +689,13 @@ @Override @ForceInline - public IntMaxVector shiftR(int s, VectorMask m) { - return blend(shiftR(s), m); + public IntMaxVector shiftRight(int s, VectorMask m) { + return blend(shiftRight(s), m); } @Override @ForceInline - public IntMaxVector aShiftR(int s) { + public IntMaxVector shiftArithmeticRight(int s) { return VectorIntrinsics.broadcastInt( VECTOR_OP_RSHIFT, IntMaxVector.class, int.class, LENGTH, this, s, @@ -704,13 +704,13 @@ @Override @ForceInline - public IntMaxVector aShiftR(int s, VectorMask m) { - return blend(aShiftR(s), m); + public IntMaxVector shiftArithmeticRight(int s, VectorMask m) { + return blend(shiftArithmeticRight(s), m); } @Override @ForceInline - public IntMaxVector shiftL(Vector s) { + public IntMaxVector shiftLeft(Vector s) { IntMaxVector shiftv = (IntMaxVector)s; // As per shift specification for Java, mask the shift count. shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f)); @@ -722,7 +722,7 @@ @Override @ForceInline - public IntMaxVector shiftR(Vector s) { + public IntMaxVector shiftRight(Vector s) { IntMaxVector shiftv = (IntMaxVector)s; // As per shift specification for Java, mask the shift count. shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f)); @@ -734,7 +734,7 @@ @Override @ForceInline - public IntMaxVector aShiftR(Vector s) { + public IntMaxVector shiftArithmeticRight(Vector s) { IntMaxVector shiftv = (IntMaxVector)s; // As per shift specification for Java, mask the shift count. shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f)); @@ -750,7 +750,7 @@ @Override @ForceInline - public int addAll() { + public int addLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_ADD, IntMaxVector.class, int.class, LENGTH, this, @@ -759,7 +759,7 @@ @Override @ForceInline - public int andAll() { + public int andLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_AND, IntMaxVector.class, int.class, LENGTH, this, @@ -768,13 +768,13 @@ @Override @ForceInline - public int andAll(VectorMask m) { - return IntVector.broadcast(SPECIES, (int) -1).blend(this, m).andAll(); + public int andLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, (int) -1).blend(this, m).andLanes(); } @Override @ForceInline - public int minAll() { + public int minLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_MIN, IntMaxVector.class, int.class, LENGTH, this, @@ -783,7 +783,7 @@ @Override @ForceInline - public int maxAll() { + public int maxLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_MAX, IntMaxVector.class, int.class, LENGTH, this, @@ -792,7 +792,7 @@ @Override @ForceInline - public int mulAll() { + public int mulLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_MUL, IntMaxVector.class, int.class, LENGTH, this, @@ -801,7 +801,7 @@ @Override @ForceInline - public int orAll() { + public int orLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_OR, IntMaxVector.class, int.class, LENGTH, this, @@ -810,13 +810,13 @@ @Override @ForceInline - public int orAll(VectorMask m) { - return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).orAll(); + public int orLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).orLanes(); } @Override @ForceInline - public int xorAll() { + public int xorLanes() { return (int) VectorIntrinsics.reductionCoerced( VECTOR_OP_XOR, IntMaxVector.class, int.class, LENGTH, this, @@ -825,34 +825,34 @@ @Override @ForceInline - public int xorAll(VectorMask m) { - return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).xorAll(); + public int xorLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).xorLanes(); } @Override @ForceInline - public int addAll(VectorMask m) { - return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).addAll(); + public int addLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, (int) 0).blend(this, m).addLanes(); } @Override @ForceInline - public int mulAll(VectorMask m) { - return IntVector.broadcast(SPECIES, (int) 1).blend(this, m).mulAll(); + public int mulLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, (int) 1).blend(this, m).mulLanes(); } @Override @ForceInline - public int minAll(VectorMask m) { - return IntVector.broadcast(SPECIES, Integer.MAX_VALUE).blend(this, m).minAll(); + public int minLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, Integer.MAX_VALUE).blend(this, m).minLanes(); } @Override @ForceInline - public int maxAll(VectorMask m) { - return IntVector.broadcast(SPECIES, Integer.MIN_VALUE).blend(this, m).maxAll(); + public int maxLanes(VectorMask m) { + return IntVector.broadcast(SPECIES, Integer.MIN_VALUE).blend(this, m).maxLanes(); } @Override @@ -1107,7 +1107,7 @@ } @Override - public IntMaxVector rotateEL(int j) { + public IntMaxVector rotateLanesLeft(int j) { int[] vec = getElements(); int[] res = new int[length()]; for (int i = 0; i < length(); i++){ @@ -1117,7 +1117,7 @@ } @Override - public IntMaxVector rotateER(int j) { + public IntMaxVector rotateLanesRight(int j) { int[] vec = getElements(); int[] res = new int[length()]; for (int i = 0; i < length(); i++){ @@ -1132,7 +1132,7 @@ } @Override - public IntMaxVector shiftEL(int j) { + public IntMaxVector shiftLanesLeft(int j) { int[] vec = getElements(); int[] res = new int[length()]; for (int i = 0; i < length() - j; i++) { @@ -1142,7 +1142,7 @@ } @Override - public IntMaxVector shiftER(int j) { + public IntMaxVector shiftLanesRight(int j) { int[] vec = getElements(); int[] res = new int[length()]; for (int i = 0; i < length() - j; i++){