comparison src/cpu/x86/vm/vm_version_x86.cpp @ 2406:a988a7bb3b8a

7032133: Enable sse4.2 for new AMD processors Summary: New AMD processors support sse4.2. Enable corresponding instructions in Hotspot. Reviewed-by: kvn Contributed-by: eric.caspole@amd.com
author kvn
date Tue, 29 Mar 2011 09:11:51 -0700
parents 82de9bd880e3
children 1d1603768966
comparison
equal deleted inserted replaced
2405:3d58a4983660 2406:a988a7bb3b8a
427 UseXmmI2D = true; 427 UseXmmI2D = true;
428 } else { 428 } else {
429 UseXmmI2D = false; 429 UseXmmI2D = false;
430 } 430 }
431 } 431 }
432 if( FLAG_IS_DEFAULT(UseSSE42Intrinsics) ) {
433 if( supports_sse4_2() && UseSSE >= 4 ) {
434 UseSSE42Intrinsics = true;
435 }
436 }
432 437
433 // Use count leading zeros count instruction if available. 438 // Use count leading zeros count instruction if available.
434 if (supports_lzcnt()) { 439 if (supports_lzcnt()) {
435 if (FLAG_IS_DEFAULT(UseCountLeadingZerosInstruction)) { 440 if (FLAG_IS_DEFAULT(UseCountLeadingZerosInstruction)) {
436 UseCountLeadingZerosInstruction = true; 441 UseCountLeadingZerosInstruction = true;