Skip to content

Commit

Permalink
Use Op_VecX instead of Op_RegF
Browse files Browse the repository at this point in the history
Signed-off-by: Sidraya <[email protected]>
  • Loading branch information
sid8606 committed Mar 19, 2024
1 parent 487c57d commit 3caa470
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 264 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/s390/globals_s390.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ define_pd_global(intx, InitArrayShortSize, 1*BytesPerLong);
/* special instructions */ \
product(bool, SuperwordUseVX, false, \
"Use Z15 Vector instructions for superword optimization.") \
product(bool, UseSFPV, false, \
product(bool, UseSFPV, false, DIAGNOSTIC, \
"Use SFPV Vector instructions for superword optimization.") \
\
product(bool, PreferLAoverADD, false, DIAGNOSTIC, \
Expand Down
9 changes: 3 additions & 6 deletions src/hotspot/cpu/s390/register_s390.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class Register {
public:
enum {
number_of_registers = 16,
max_slots_per_register = 2,
number_of_arg_registers = 5
};

Expand Down Expand Up @@ -171,7 +170,6 @@ class FloatRegister {
public:
enum {
number_of_registers = 16,
max_slots_per_register = 2,
number_of_arg_registers = 4
};

Expand Down Expand Up @@ -289,7 +287,6 @@ class VectorRegister {
public:
enum {
number_of_registers = 32,
max_slots_per_register = 4,
number_of_arg_registers = 0
};

Expand Down Expand Up @@ -387,9 +384,9 @@ constexpr VectorRegister Z_V31 = as_VectorRegister(31);
class ConcreteRegisterImpl : public AbstractRegisterImpl {
public:
enum {
max_gpr = Register::number_of_registers * Register::max_slots_per_register,
max_fpr = max_gpr + FloatRegister::number_of_registers * FloatRegister::max_slots_per_register,
max_vr = max_fpr + VectorRegister::number_of_registers * VectorRegister::max_slots_per_register,
max_gpr = Register::number_of_registers * 2,
max_fpr = max_gpr + FloatRegister::number_of_registers * 2,
max_vr = max_fpr + VectorRegister::number_of_registers,

// A big enough number for C2: all the registers plus flags
// This number must be large enough to cover REG_COUNT (defined by c2) registers.
Expand Down
Loading

0 comments on commit 3caa470

Please sign in to comment.