Integrated: 8301036: RISC-V: Factor out functions baseOffset & baseOffset32 from MacroAssembler

Fei Yang fyang at openjdk.org
Mon Jan 30 12:28:28 UTC 2023


On Wed, 25 Jan 2023 04:50:40 GMT, Fei Yang <fyang at openjdk.org> wrote:

> On RISC-V, functions baseOffset & baseOffset32 from MacroAssembler receive an Address in base_plus_offset mode. These two functions check the range of the offset, add it and base and put the result in a destination register. This duplicates function MacroAssembler::la in functionality. We could refactor this part moving the logic of Address legitimization into MacroAssembler::la and use this function instead.
> 
> Testing:
>   - [x] Bootcycle (release & fastdebug)
>   - [x] Tier1-4 (release)
>   - [x] Benchmarks: SPECjbb2015 (release)

This pull request has now been integrated.

Changeset: ebb84ad7
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ebb84ad70d3295d9a429904fcdacdb8ecd1bf434
Stats:     64 lines in 3 files changed: 15 ins; 31 del; 18 mod

8301036: RISC-V: Factor out functions baseOffset & baseOffset32 from MacroAssembler

Reviewed-by: luhenry, fjiang, shade

-------------

PR: https://git.openjdk.org/jdk/pull/12177


More information about the hotspot-dev mailing list