1
1
/*
2
- * Copyright (c) 2000, 2018 , Oracle and/or its affiliates. All rights reserved.
3
- * Copyright (c) 2012, 2018 SAP SE. All rights reserved.
2
+ * Copyright (c) 2000, 2022 , Oracle and/or its affiliates. All rights reserved.
3
+ * Copyright (c) 2012, 2022 SAP SE. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
6
6
* This code is free software; you can redistribute it and/or modify it
26
26
#include " precompiled.hpp"
27
27
#include " register_ppc.hpp"
28
28
29
-
30
- const char * RegisterImpl::name () const {
29
+ const char * Register::name () const {
31
30
const char * names[number_of_registers] = {
32
31
" R0" , " R1" , " R2" , " R3" , " R4" , " R5" , " R6" , " R7" ,
33
32
" R8" , " R9" , " R10" , " R11" , " R12" , " R13" , " R14" , " R15" ,
@@ -37,14 +36,14 @@ const char* RegisterImpl::name() const {
37
36
return is_valid () ? names[encoding ()] : " noreg" ;
38
37
}
39
38
40
- const char * ConditionRegisterImpl ::name () const {
39
+ const char * ConditionRegister ::name () const {
41
40
const char * names[number_of_registers] = {
42
41
" CR0" , " CR1" , " CR2" , " CR3" , " CR4" , " CR5" , " CR6" , " CR7"
43
42
};
44
43
return is_valid () ? names[encoding ()] : " cnoreg" ;
45
44
}
46
45
47
- const char * FloatRegisterImpl ::name () const {
46
+ const char * FloatRegister ::name () const {
48
47
const char * names[number_of_registers] = {
49
48
" F0" , " F1" , " F2" , " F3" , " F4" , " F5" , " F6" , " F7" ,
50
49
" F8" , " F9" , " F10" , " F11" , " F12" , " F13" , " F14" , " F15" ,
@@ -54,14 +53,14 @@ const char* FloatRegisterImpl::name() const {
54
53
return is_valid () ? names[encoding ()] : " fnoreg" ;
55
54
}
56
55
57
- const char * SpecialRegisterImpl ::name () const {
56
+ const char * SpecialRegister ::name () const {
58
57
const char * names[number_of_registers] = {
59
58
" SR_XER" , " SR_LR" , " SR_CTR" , " SR_VRSAVE" , " SR_SPEFSCR" , " SR_PPR"
60
59
};
61
60
return is_valid () ? names[encoding ()] : " snoreg" ;
62
61
}
63
62
64
- const char * VectorRegisterImpl ::name () const {
63
+ const char * VectorRegister ::name () const {
65
64
const char * names[number_of_registers] = {
66
65
" VR0" , " VR1" , " VR2" , " VR3" , " VR4" , " VR5" , " VR6" , " VR7" ,
67
66
" VR8" , " VR9" , " VR10" , " VR11" , " VR12" , " VR13" , " VR14" , " VR15" ,
@@ -71,7 +70,7 @@ const char* VectorRegisterImpl::name() const {
71
70
return is_valid () ? names[encoding ()] : " vnoreg" ;
72
71
}
73
72
74
- const char * VectorSRegisterImpl ::name () const {
73
+ const char * VectorSRegister ::name () const {
75
74
const char * names[number_of_registers] = {
76
75
" VSR0" , " VSR1" , " VSR2" , " VSR3" , " VSR4" , " VSR5" , " VSR6" , " VSR7" ,
77
76
" VSR8" , " VSR9" , " VSR10" , " VSR11" , " VSR12" , " VSR13" , " VSR14" , " VSR15" ,
@@ -86,19 +85,19 @@ const char* VectorSRegisterImpl::name() const {
86
85
}
87
86
88
87
// Method to convert a FloatRegister to a Vector-Scalar Register (VectorSRegister)
89
- VectorSRegister FloatRegisterImpl ::to_vsr () const {
90
- if (this == fnoreg) { return vsnoreg; }
88
+ VectorSRegister FloatRegister ::to_vsr () const {
89
+ if (* this == fnoreg) { return vsnoreg; }
91
90
return as_VectorSRegister (encoding ());
92
91
}
93
92
94
93
// Method to convert a VectorRegister to a Vector-Scalar Register (VectorSRegister)
95
- VectorSRegister VectorRegisterImpl ::to_vsr () const {
96
- if (this == vnoreg) { return vsnoreg; }
94
+ VectorSRegister VectorRegister ::to_vsr () const {
95
+ if (* this == vnoreg) { return vsnoreg; }
97
96
return as_VectorSRegister (encoding () + 32 );
98
97
}
99
98
100
99
// Method to convert a VectorSRegister to a Vector Register (VectorRegister)
101
- VectorRegister VectorSRegisterImpl ::to_vr () const {
102
- if (this == vsnoreg) { return vnoreg; }
100
+ VectorRegister VectorSRegister ::to_vr () const {
101
+ if (* this == vsnoreg) { return vnoreg; }
103
102
return as_VectorRegister (encoding () - 32 );
104
103
}
0 commit comments