Tue, 29 Mar 2011 09:11:51 -0700
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
src/cpu/x86/vm/vm_version_x86.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cpu/x86/vm/vm_version_x86.cpp Mon Mar 28 03:58:07 2011 -0700 1.2 +++ b/src/cpu/x86/vm/vm_version_x86.cpp Tue Mar 29 09:11:51 2011 -0700 1.3 @@ -429,6 +429,11 @@ 1.4 UseXmmI2D = false; 1.5 } 1.6 } 1.7 + if( FLAG_IS_DEFAULT(UseSSE42Intrinsics) ) { 1.8 + if( supports_sse4_2() && UseSSE >= 4 ) { 1.9 + UseSSE42Intrinsics = true; 1.10 + } 1.11 + } 1.12 1.13 // Use count leading zeros count instruction if available. 1.14 if (supports_lzcnt()) {