Mercurial > hg > graal-jvmci-8
changeset 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 | 3d58a4983660 |
children | b1c22848507b |
files | src/cpu/x86/vm/vm_version_x86.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/x86/vm/vm_version_x86.cpp Mon Mar 28 03:58:07 2011 -0700 +++ b/src/cpu/x86/vm/vm_version_x86.cpp Tue Mar 29 09:11:51 2011 -0700 @@ -429,6 +429,11 @@ UseXmmI2D = false; } } + if( FLAG_IS_DEFAULT(UseSSE42Intrinsics) ) { + if( supports_sse4_2() && UseSSE >= 4 ) { + UseSSE42Intrinsics = true; + } + } // Use count leading zeros count instruction if available. if (supports_lzcnt()) {