Skip to content

Commit e0de8c9

Browse files
committed
Manually inline all macros into functions as discussions
1 parent a2f6c1f commit e0de8c9

File tree

2 files changed

+314
-254
lines changed

2 files changed

+314
-254
lines changed

src/hotspot/cpu/riscv/assembler_riscv.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ void Assembler::subw(Register Rd, Register Rn, int64_t decrement, Register temp)
7979
}
8080
}
8181

82-
void Assembler::li(Register Rd, int64_t imm) {
83-
CHECK_RVC_AND_COMPRESSIBLE(is_imm_in_range(imm, 6, 0) && Rd != x0) {
84-
c_li(Rd, imm);
85-
return;
86-
}
87-
82+
void Assembler::_li(Register Rd, int64_t imm) {
8883
// int64_t is in range 0x8000 0000 0000 0000 ~ 0x7fff ffff ffff ffff
8984
int shift = 12;
9085
int64_t upper = imm, lower = imm;

0 commit comments

Comments
 (0)