diff src/cpu/x86/vm/assembler_x86.hpp @ 7477:038dd2875b94

8005419: Improve intrinsics code performance on x86 by using AVX2 Summary: use 256bit vpxor,vptest instructions in String.compareTo() and equals() intrinsics. Reviewed-by: twisti
author kvn
date Tue, 08 Jan 2013 11:30:51 -0800
parents e2e6bf86682c
children b30b3c2a0cf2 8b46b0196eb0
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.hpp	Mon Jan 07 14:08:28 2013 -0800
+++ b/src/cpu/x86/vm/assembler_x86.hpp	Tue Jan 08 11:30:51 2013 -0800
@@ -1444,9 +1444,12 @@
   // 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);