src/hotspot/cpu/ppc/register_ppc.hpp

Print this page

        

@@ -461,11 +461,11 @@
 CONSTANT_REGISTER_DECLARATION(VectorRegister, VR29, (29));
 CONSTANT_REGISTER_DECLARATION(VectorRegister, VR30, (30));
 CONSTANT_REGISTER_DECLARATION(VectorRegister, VR31, (31));
 
 #ifndef DONT_USE_REGISTER_DEFINES
-#define vnoreg ((VectorRegister)(vnoreg_VectorRegisterEnumValue))
+#define vnoregi ((VectorRegister)(vnoreg_VectorRegisterEnumValue))
 #define VR0    ((VectorRegister)(   VR0_VectorRegisterEnumValue))
 #define VR1    ((VectorRegister)(   VR1_VectorRegisterEnumValue))
 #define VR2    ((VectorRegister)(   VR2_VectorRegisterEnumValue))
 #define VR3    ((VectorRegister)(   VR3_VectorRegisterEnumValue))
 #define VR4    ((VectorRegister)(   VR4_VectorRegisterEnumValue))

@@ -518,10 +518,13 @@
 
   // testers
   bool is_valid() const { return 0 <=  value() &&  value() < number_of_registers; }
 
   const char* name() const;
+
+  // convert to VR
+  VectorRegister to_vr() const;
 };
 
 // The Vector-Scalar (VSX) registers of the POWER architecture.
 
 CONSTANT_REGISTER_DECLARATION(VectorSRegister, vsnoreg, (-1));