8005419: Improve intrinsics code performance on x86 by using AVX2

Use 256bit vpxor,vptest instructions in String.compareTo() and equals() intrinsics.

Reviewed-by: twisti
This commit is contained in:
Vladimir Kozlov 2013-01-08 11:30:51 -08:00
parent b3fe91a803
commit 38c81fb411
5 changed files with 290 additions and 35 deletions

View file

@ -1444,9 +1444,12 @@ private:
// Shift Right by bytes Logical DoubleQuadword Immediate
void psrldq(XMMRegister dst, int shift);
// Logical Compare Double Quadword
// Logical Compare 128bit
void ptest(XMMRegister dst, XMMRegister src);
void ptest(XMMRegister dst, Address src);
// Logical Compare 256bit
void vptest(XMMRegister dst, XMMRegister src);
void vptest(XMMRegister dst, Address src);
// Interleave Low Bytes
void punpcklbw(XMMRegister dst, XMMRegister src);