On Fri, 24 May 2024 18:37:13 GMT, Vladimir Kozlov <k...@openjdk.org> wrote:

>> 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.

Right. Our assembler implements rip-relative addressing for some instructions, 
but apparently lea isn't one of them.
I'll experiment with it.

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

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

Reply via email to