comparison src/cpu/x86/vm/vm_version_x86.cpp @ 6943:dbeaeee28bc2

8002294: assert(VM_Version::supports_ssse3()) failed Summary: Add missing UseSSE check for AES intrinsics. Reviewed-by: roland, twisti
author kvn
date Tue, 06 Nov 2012 09:22:55 -0800
parents a3ecd773a7b9
children e522a00b91aa cd3d6a6b95d9
comparison
equal deleted inserted replaced
6942:64672b22ef05 6943:dbeaeee28bc2
486 warning("AES instructions not available on this CPU"); 486 warning("AES instructions not available on this CPU");
487 FLAG_SET_DEFAULT(UseAES, false); 487 FLAG_SET_DEFAULT(UseAES, false);
488 } 488 }
489 489
490 // The AES intrinsic stubs require AES instruction support (of course) 490 // The AES intrinsic stubs require AES instruction support (of course)
491 // but also require AVX mode for misaligned SSE access 491 // but also require AVX and sse3 modes for instructions it use.
492 if (UseAES && (UseAVX > 0)) { 492 if (UseAES && (UseAVX > 0) && (UseSSE > 2)) {
493 if (FLAG_IS_DEFAULT(UseAESIntrinsics)) { 493 if (FLAG_IS_DEFAULT(UseAESIntrinsics)) {
494 UseAESIntrinsics = true; 494 UseAESIntrinsics = true;
495 } 495 }
496 } else if (UseAESIntrinsics) { 496 } else if (UseAESIntrinsics) {
497 if (!FLAG_IS_DEFAULT(UseAESIntrinsics)) 497 if (!FLAG_IS_DEFAULT(UseAESIntrinsics))