src/hotspot/cpu/ppc/register_ppc.cpp
changeset 51777 9c6d5e31618e
parent 51711 3aafd7015d87
equal deleted inserted replaced
51776:925d79f56c05 51777:9c6d5e31618e
    83     "VSR56", "VSR57", "VSR58", "VSR59", "VSR60", "VSR61", "VSR62", "VSR63"
    83     "VSR56", "VSR57", "VSR58", "VSR59", "VSR60", "VSR61", "VSR62", "VSR63"
    84   };
    84   };
    85   return is_valid() ? names[encoding()] : "vsnoreg";
    85   return is_valid() ? names[encoding()] : "vsnoreg";
    86 }
    86 }
    87 
    87 
       
    88 // Method to convert a FloatRegister to a Vector-Scalar Register (VectorSRegister)
       
    89 VectorSRegister FloatRegisterImpl::to_vsr() const {
       
    90   if (this == fnoreg) { return vsnoreg; }
       
    91   return as_VectorSRegister(encoding());
       
    92 }
       
    93 
    88 // Method to convert a VectorRegister to a Vector-Scalar Register (VectorSRegister)
    94 // Method to convert a VectorRegister to a Vector-Scalar Register (VectorSRegister)
    89 VectorSRegister VectorRegisterImpl::to_vsr() const {
    95 VectorSRegister VectorRegisterImpl::to_vsr() const {
    90   if (this == vnoreg) { return vsnoreg; }
    96   if (this == vnoreg) { return vsnoreg; }
    91   return as_VectorSRegister(encoding() + 32);
    97   return as_VectorSRegister(encoding() + 32);
    92 }
    98 }