1.1 --- a/src/cpu/x86/vm/vmreg_x86.inline.hpp Thu Jun 14 14:59:52 2012 -0700 1.2 +++ b/src/cpu/x86/vm/vmreg_x86.inline.hpp Fri Jun 15 01:25:19 2012 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -39,7 +39,7 @@ 1.11 } 1.12 1.13 inline VMReg XMMRegisterImpl::as_VMReg() { 1.14 - return VMRegImpl::as_VMReg((encoding() << 1) + ConcreteRegisterImpl::max_fpr); 1.15 + return VMRegImpl::as_VMReg((encoding() << 3) + ConcreteRegisterImpl::max_fpr); 1.16 } 1.17 1.18 1.19 @@ -75,7 +75,7 @@ 1.20 inline XMMRegister VMRegImpl::as_XMMRegister() { 1.21 assert( is_XMMRegister() && is_even(value()), "must be" ); 1.22 // Yuk 1.23 - return ::as_XMMRegister((value() - ConcreteRegisterImpl::max_fpr) >> 1); 1.24 + return ::as_XMMRegister((value() - ConcreteRegisterImpl::max_fpr) >> 3); 1.25 } 1.26 1.27 inline bool VMRegImpl::is_concrete() {