Skip to content

Commit

Permalink
Updated assert
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Oct 14, 2024
1 parent b60789e commit 135686b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,8 @@ void MacroAssembler::j(const address dest, Register temp) {
if (is_simm21(distance) && ((distance % 2) == 0)) {
Assembler::jal(x0, distance);
} else {
assert(temp != x5 && temp != x1, "Register x5/x1 not used for jumps.");
assert(temp != noreg && temp != x0, "Expecting a register");
assert(temp != x1 && temp != x5, "temp register must not be x1/x5.");
int32_t offset = 0;
la(temp, dest, offset);
jr(temp, offset);
Expand Down

0 comments on commit 135686b

Please sign in to comment.