Skip to content

Commit

Permalink
no more ignoring vector registers
Browse files Browse the repository at this point in the history
  • Loading branch information
offamitkumar committed Nov 18, 2024
1 parent 92b2631 commit 697ec32
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/hotspot/cpu/s390/gc/shared/barrierSetAssembler_s390.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,19 @@ int SaveLiveRegisters::iterate_over_register_mask(IterationAction action, int of
assert(action == ACTION_COUNT_ONLY, "Sanity");
}
}
} else if (false /* vm_reg->is_VectorRegister() */){
fatal("Vector register support is not there yet!");
} else if (vm_reg->is_VectorRegister()){
VectorRegister vs_reg = vm_reg->as_VectorRegister();
if (vs_reg->encoding() >= Z_V2->encoding() && vs_reg->encoding() <= Z_V31->encoding()) {
reg_save_index += 2;
Register spill_addr = Z_R0;
if (action == ACTION_SAVE) {
__ z_vst(vs_reg, Address(Z_SP, offset - reg_save_index * BytesPerWord));
} else if (action == ACTION_RESTORE) {
__ z_vl(vs_reg, Address(Z_SP, offset - reg_save_index * BytesPerWord));
} else {
assert(action == ACTION_COUNT_ONLY, "Sanity");
}
}
} else {
fatal("Register type is not known");
}
Expand Down

0 comments on commit 697ec32

Please sign in to comment.