On Sat, 14 Nov 2026 10:06:56 GMT, Andrew Haley <[email protected]> wrote:

>> Shawn Emery has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - Remove unnecessary tmp variable
>>  - Move to add/sub-shift instructions to separate shift add/sub instruction 
>> set
>
> src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp line 8976:
> 
>> 8974:       __ add(c[i - 5], c[i - 5], vt);
>> 8975:       __ asr(vt, v, 36);
>> 8976:       __ add(c[i - 4], c[i - 4], vt);
> 
> This separation of shift and add instructions is extreme microarchitecture 
> tweakiness, and arguably overfitting generic AArch64 to a silicon 
> implementation of it.
> 
> At least, please create a function for the combined shift-and-add, with a 
> comment which explains why it exists at all, and specify here exactly which 
> microarchitecture you're tuning for. And let's see if this tweak helps an 
> independent implementation.
> 
> Remember we're programming for an ISA, not a specific implementation of it.

I don't feel comfortable adding a general function for operations that support 
shift specifically in this PR.  I believe that this type of work would better 
be served in a separate enhancement, where discussions of general interface 
design and operation combinitorics can be played out.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33618#discussion_r4583071500

Reply via email to