Integrated: 8299608: Add Register + imm32 orq to x86_64 assembler
Erik Österlund
eosterlund at openjdk.org
Mon Jan 9 10:05:59 UTC 2023
On Wed, 4 Jan 2023 15:58:20 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> The current x86_64 orq Register + imm32 uses emit_arith, which is rather clever and checks if it can use imm8 instead. However, sometimes you really want it to be imm32 regardless, for example if you are going to patch the code. Such functionality should be added.
>
> Since there seems to be a precedent distinguishing this with testl_imm32(Register, imm32) vs testl(Register, imm32), my proposed patch similarly adds an orq_imm32 that uses emit_arith_imm32.
This pull request has now been integrated.
Changeset: a503ec2c
Author: Erik Österlund <eosterlund at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a503ec2cc7042f0d2427fcbec0237937f324c755
Stats: 8 lines in 2 files changed: 6 ins; 0 del; 2 mod
8299608: Add Register + imm32 orq to x86_64 assembler
Reviewed-by: shade, sviswanathan, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/11850
More information about the hotspot-compiler-dev
mailing list