Skip to content

Commit

Permalink
Fix whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidraya Jayagond committed Sep 23, 2024
1 parent 00973c6 commit 34341ae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/cpu/s390/register_s390.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,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 * 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,
// 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.
// There is no requirement that any ordering here matches any ordering c2 gives
Expand Down
8 changes: 4 additions & 4 deletions src/hotspot/cpu/s390/sharedRuntime_s390.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ OopMap* RegisterSaver::save_live_registers(MacroAssembler* masm, RegisterSet reg
__ z_vst(as_VectorRegister(reg_num), Address(Z_SP, offset));

map->set_callee_saved(VMRegImpl::stack2reg(offset>>2),
RegisterSaver_LiveVRegs[i].vmreg);
RegisterSaver_LiveVRegs[i].vmreg);
map->set_callee_saved(VMRegImpl::stack2reg((offset + half_reg_size ) >> 2),
RegisterSaver_LiveVRegs[i].vmreg->next());
RegisterSaver_LiveVRegs[i].vmreg->next());
map->set_callee_saved(VMRegImpl::stack2reg((offset + (half_reg_size * 2)) >> 2),
RegisterSaver_LiveVRegs[i].vmreg->next(2));
RegisterSaver_LiveVRegs[i].vmreg->next(2));
map->set_callee_saved(VMRegImpl::stack2reg((offset + (half_reg_size * 3)) >> 2),
RegisterSaver_LiveVRegs[i].vmreg->next(3));
RegisterSaver_LiveVRegs[i].vmreg->next(3));
}

assert(offset == frame_size_in_bytes, "consistency check");
Expand Down
10 changes: 5 additions & 5 deletions src/hotspot/cpu/s390/vmreg_s390.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ void VMRegImpl::set_regName() {

VectorRegister vreg = ::as_VectorRegister(0);
for (; i < ConcreteRegisterImpl::max_vr;) {
regName[i++] = vreg->name();
regName[i++] = vreg->name();
regName[i++] = vreg->name();
regName[i++] = vreg->name();
vreg = vreg->successor();
regName[i++] = vreg->name();
regName[i++] = vreg->name();
regName[i++] = vreg->name();
regName[i++] = vreg->name();
vreg = vreg->successor();
}

for (; i < ConcreteRegisterImpl::number_of_registers; i ++) {
Expand Down
8 changes: 4 additions & 4 deletions src/hotspot/cpu/s390/vmreg_s390.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ inline Register as_Register() {

inline FloatRegister as_FloatRegister() {
assert(is_FloatRegister() && is_even(value()), "must be");
return ::as_FloatRegister((value() - ConcreteRegisterImpl::max_gpr)
/ FloatRegister::max_slots_per_register);
return ::as_FloatRegister((value() - ConcreteRegisterImpl::max_gpr) /
FloatRegister::max_slots_per_register);
}

inline VectorRegister as_VectorRegister() {
assert(is_VectorRegister(), "must be");
return ::as_VectorRegister((value() - ConcreteRegisterImpl::max_fpr)
/ VectorRegister::max_slots_per_register);
return ::as_VectorRegister((value() - ConcreteRegisterImpl::max_fpr) /
VectorRegister::max_slots_per_register);
}

inline bool is_concrete() {
Expand Down

0 comments on commit 34341ae

Please sign in to comment.