src/hotspot/cpu/ppc/register_ppc.cpp
changeset 51777 9c6d5e31618e
parent 51711 3aafd7015d87
--- a/src/hotspot/cpu/ppc/register_ppc.cpp	Tue Sep 18 11:09:18 2018 +0800
+++ b/src/hotspot/cpu/ppc/register_ppc.cpp	Mon Sep 17 23:35:00 2018 -0400
@@ -85,6 +85,12 @@
   return is_valid() ? names[encoding()] : "vsnoreg";
 }
 
+// Method to convert a FloatRegister to a Vector-Scalar Register (VectorSRegister)
+VectorSRegister FloatRegisterImpl::to_vsr() const {
+  if (this == fnoreg) { return vsnoreg; }
+  return as_VectorSRegister(encoding());
+}
+
 // Method to convert a VectorRegister to a Vector-Scalar Register (VectorSRegister)
 VectorSRegister VectorRegisterImpl::to_vsr() const {
   if (this == vnoreg) { return vsnoreg; }