RFR: 8296916: RISC-V: Move some small macro-assembler functions to header file
Feilong Jiang
fjiang at openjdk.org
Mon Nov 14 02:41:13 UTC 2022
On Mon, 14 Nov 2022 02:19:30 GMT, Fei Yang <fyang at openjdk.org> wrote:
> Witnessed that there are some small macro-assembler functions located in file macroAssembler_riscv.cpp.
> These are small functions which mostly contain only a single line of code. We should move them to the
> corresponding header file so that they have a chance to be inlined.
>
> Testing: Tier1 on linux-riscv64 HiFive unmatched board.
src/hotspot/cpu/riscv/assembler_riscv.hpp line 2757:
> 2755: // Bit-manipulation extension pseudo instructions
> 2756: // zero extend word
> 2757: void zext_w(Register Rd, Register Rs) {
Seems we can move `zext_w` to MacroAssembler too.
-------------
PR: https://git.openjdk.org/jdk/pull/11130
More information about the hotspot-dev
mailing list