src/hotspot/cpu/ppc/register_ppc.cpp

Print this page

        

*** 93,97 **** --- 93,103 ---- // Method to convert a VectorRegister to a Vector-Scalar Register (VectorSRegister) VectorSRegister VectorRegisterImpl::to_vsr() const { if (this == vnoreg) { return vsnoregi; } return as_VectorSRegister(encoding() + 32); } + + // Method to convert a VectorSRegister to a Vector Register (VectorRegister) + VectorRegister VectorSRegisterImpl::to_vr() const { + if (this == vsnoreg) { return vnoregi; } + return as_VectorRegister(encoding() - 32); + }