Skip to content

Commit eada1ea

Browse files
author
Hamlin Li
committedFeb 28, 2025
8350855: RISC-V: print offset by assert of patch_offset_in_conditional_branch
Reviewed-by: fyang
1 parent 2af76de commit eada1ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/cpu/riscv/macroAssembler_riscv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ static int patch_offset_in_jal(address branch, int64_t offset) {
23002300

23012301
static int patch_offset_in_conditional_branch(address branch, int64_t offset) {
23022302
assert(Assembler::is_simm13(offset) && ((offset % 2) == 0),
2303-
"offset is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!\n");
2303+
"offset (%ld) is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!\n", offset);
23042304
Assembler::patch(branch, 31, 31, (offset >> 12) & 0x1); // offset[12] ==> branch[31]
23052305
Assembler::patch(branch, 30, 25, (offset >> 5) & 0x3f); // offset[10:5] ==> branch[30:25]
23062306
Assembler::patch(branch, 7, 7, (offset >> 11) & 0x1); // offset[11] ==> branch[7]

0 commit comments

Comments
 (0)