RFR: 8299608: Add Register + imm32 orq to x86_64 assembler [v2]

Erik Österlund eosterlund at openjdk.org
Thu Jan 5 13:18:13 UTC 2023


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

Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:

  Fix copyright year

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11850/files
  - new: https://git.openjdk.org/jdk/pull/11850/files/c7f6e63c..c5a0a1e9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11850&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11850&range=00-01

  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/11850.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11850/head:pull/11850

PR: https://git.openjdk.org/jdk/pull/11850


More information about the hotspot-compiler-dev mailing list