changeset 4318:c56c6ba9c1d2

8007708: compiler/6855215 assert(VM_Version::supports_sse4_2()) Summary: Added missing UseSSE42 check. Reviewed-by: roland, twisti
author kvn
date Fri, 08 Feb 2013 15:07:17 -0800
parents 1efffc8cd1e5
children 71a67ff5e673
files src/cpu/x86/vm/assembler_x86.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp	Wed Feb 06 11:33:49 2013 -0800
+++ b/src/cpu/x86/vm/assembler_x86.cpp	Fri Feb 08 15:07:17 2013 -0800
@@ -10984,7 +10984,7 @@
   Address::ScaleFactor scale = Address::times_2;
   int stride = 8;
 
-  if (UseAVX >= 2) {
+  if (UseAVX >= 2 && UseSSE42Intrinsics) {
     Label COMPARE_WIDE_VECTORS, VECTOR_NOT_EQUAL, COMPARE_WIDE_TAIL, COMPARE_SMALL_STR;
     Label COMPARE_WIDE_VECTORS_LOOP, COMPARE_16_CHARS, COMPARE_INDEX_CHAR;
     Label COMPARE_TAIL_LONG;