|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
3 |
| - * Copyright (c) 2016, 2017 SAP SE. All rights reserved. |
| 2 | + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. |
| 3 | + * Copyright (c) 2016, 2023 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
|
|
27 | 27 | #include "register_s390.hpp"
|
28 | 28 |
|
29 | 29 |
|
30 |
| -const int ConcreteRegisterImpl::max_gpr = RegisterImpl::number_of_registers * 2; |
| 30 | +const int ConcreteRegisterImpl::max_gpr = Register::number_of_registers * 2; |
31 | 31 | const int ConcreteRegisterImpl::max_fpr = ConcreteRegisterImpl::max_gpr +
|
32 |
| - FloatRegisterImpl::number_of_registers * 2; |
| 32 | + FloatRegister::number_of_registers * 2; |
33 | 33 |
|
34 |
| -const char* RegisterImpl::name() const { |
| 34 | +const char* Register::name() const { |
35 | 35 | const char* names[number_of_registers] = {
|
36 | 36 | "Z_R0", "Z_R1", "Z_R2", "Z_R3", "Z_R4", "Z_R5", "Z_R6", "Z_R7",
|
37 | 37 | "Z_R8", "Z_R9", "Z_R10", "Z_R11", "Z_R12", "Z_R13", "Z_R14", "Z_R15"
|
38 | 38 | };
|
39 | 39 | return is_valid() ? names[encoding()] : "noreg";
|
40 | 40 | }
|
41 | 41 |
|
42 |
| -const char* FloatRegisterImpl::name() const { |
| 42 | +const char* FloatRegister::name() const { |
43 | 43 | const char* names[number_of_registers] = {
|
44 |
| - "Z_F0", "Z_F1", "Z_F2", "Z_F3", "Z_F4", "Z_F5", "Z_F6", "Z_F7", "Z_F8", "Z_F9", |
45 |
| - "Z_F10", "Z_F11", "Z_F12", "Z_F13", "Z_F14", "Z_F15" |
| 44 | + "Z_F0", "Z_F1", "Z_F2", "Z_F3", "Z_F4", "Z_F5", "Z_F6", "Z_F7", |
| 45 | + "Z_F8", "Z_F9", "Z_F10", "Z_F11", "Z_F12", "Z_F13", "Z_F14", "Z_F15" |
46 | 46 | };
|
47 | 47 | return is_valid() ? names[encoding()] : "fnoreg";
|
48 | 48 | }
|
49 | 49 |
|
50 |
| -const char* VectorRegisterImpl::name() const { |
| 50 | +const char* VectorRegister::name() const { |
51 | 51 | const char* names[number_of_registers] = {
|
52 | 52 | "Z_V0", "Z_V1", "Z_V2", "Z_V3", "Z_V4", "Z_V5", "Z_V6", "Z_V7",
|
53 | 53 | "Z_V8", "Z_V9", "Z_V10", "Z_V11", "Z_V12", "Z_V13", "Z_V14", "Z_V15",
|
|
0 commit comments