RFR: 8319406: x86: Shorter movptr(reg, imm) for 32-bit immediates [v2]

Aleksey Shipilev shade at openjdk.org
Tue Nov 7 12:47:51 UTC 2023


On Fri, 3 Nov 2023 19:49:55 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

> Can we create `MacroAssembler::mov64` that does the branching instead, I think it is more natural there. And things that need 8-byte immediates will call into `Assembler::mov64`.

Right, that would capture more cases. I am a bit concerned that we would not catch all the places where `mov64` is actually needed to be full-blown immediate. Maybe it would be safer to keep `mov64` intact, and introduce `mov_immediate` that can be arbitrarily shortened? AArch64 does this, for example.

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

PR Comment: https://git.openjdk.org/jdk/pull/16497#issuecomment-1798430468


More information about the hotspot-dev mailing list