Skip to content

Commit 0c095e6

Browse files
committed
Manually inline all macros into functions as discussions
1 parent d10ba0e commit 0c095e6

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
@@ -83,12 +83,7 @@ void Assembler::zext_w(Register Rd, Register Rs) {
8383
add_uw(Rd, Rs, zr);
8484
}
8585

86-
void Assembler::li(Register Rd, int64_t imm) {
87-
CHECK_RVC_AND_COMPRESSIBLE(is_imm_in_range(imm, 6, 0) && Rd != x0) {
88-
c_li(Rd, imm);
89-
return;
90-
}
91-
86+
void Assembler::_li(Register Rd, int64_t imm) {
9287
// int64_t is in range 0x8000 0000 0000 0000 ~ 0x7fff ffff ffff ffff
9388
int shift = 12;
9489
int64_t upper = imm, lower = imm;

0 commit comments

Comments
 (0)