On Fri, 24 May 2024 15:33:46 GMT, Scott Gibbons <sgibb...@openjdk.org> wrote:

>> Thanks for checking. Well I know that the 
>> `MacroAssembler::movdqu(XMMRegister dst, AddressLiteral src, Register 
>> rscratch)` method actually generates rip-relative addresses. Maybe we could 
>> copy some of that code.
>
> Changed to `lea` with `InternalAddress()`.  Generates the exact same code, 
> but makes more sense.  I looked at `movdqu` and see no code that generates 
> RIP-relative loads.  It merely checks `reachable()` and adds an intermediate 
> `lea` if not reachable.  @djelinski can you clarify please?

I think HotSpot prefer to have full addresses in `lea` for possible patching.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16753#discussion_r1613874603

Reply via email to