[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-core-libs-dev
Subject:    Re: RFR: 8327964: Simplify BigInteger.implMultiplyToLen intrinsic [v3]
From:       Damon Fenacci <dfenacci () openjdk ! org>
Date:       2024-03-26 16:02:23
Message-ID: IEbiW8OAUyzLJ9NWnSZEI_iOYBfJrsIy-wc8KF-R92I=.72f6c6e6-af4f-495e-8612-f1bb6318ec67 () github ! com
[Download RAW message or body]

On Tue, 19 Mar 2024 21:09:31 GMT, Yudi Zheng <yzheng@openjdk.org> wrote:

> > Moving array construction within BigInteger.implMultiplyToLen intrinsic candidate \
> > to its caller simplifies the intrinsic implementation in JIT compiler.
> 
> Yudi Zheng has updated the pull request incrementally with one additional commit \
> since the last revision: 
> address comment.

`multiply_to_len` seems to be used by `generate_squareToLen` as well for aarch64 and \
riscv but `zlen` is still passed in a register.

https://github.com/openjdk/jdk/blob/870a6127cf54264c691f7322d775b202705c3bfa/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp#L4710
 https://github.com/openjdk/jdk/blob/870a6127cf54264c691f7322d775b202705c3bfa/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp#L2881


I think it might work anyway but it might be better to adapt them if only for \
completeness.

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

PR Review: https://git.openjdk.org/jdk/pull/18226#pullrequestreview-1960906919


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic