RFR: 8347352: RISC-V: Cleanup bitwise AND assembler routines
Feilong Jiang
fjiang at openjdk.org
Sun Jan 12 03:03:40 UTC 2025
On Thu, 9 Jan 2025 14:38:46 GMT, Fei Yang <fyang at openjdk.org> wrote:
> Hi, Please consider this small refactoring work.
>
> It's a bit strange that we have `Assembler::_and_imm12` and `MacroAssembler::andi`, which is quite different from friends `Assembler::ori` and `Assembler::xori`. And it doesn't seem necessary to have this `MacroAssembler::andi` which checks the immediate range as I find it is within 12-bit range for most of the cases. One exception is in file `sharedRuntime_riscv.cpp` where we can do `mv` and `andr` instead.
>
> Testing on Premier P550 SBC:
> - [x] tier1-3 and gtest:all (release)
> - [x] hotspot:tier1 (fastdebug)
Looks more consistent now, thanks!
-------------
Marked as reviewed by fjiang (Committer).
PR Review: https://git.openjdk.org/jdk/pull/23008#pullrequestreview-2545327024
More information about the hotspot-dev
mailing list