Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8299323: Allow extended registers for cmpw #11776

Closed
wants to merge 1 commit into from

Conversation

fisk
Copy link
Contributor

@fisk fisk commented Dec 23, 2022

The current instruction encoder for cmpw(Address, int16_t) on x64 does not allow rex extended registers. Generational ZGC needs to use this for arbitrary registers. Let's add support for it instead of asserting the input Address uses a subset of registers.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11776/head:pull/11776
$ git checkout pull/11776

Update a local copy of the PR:
$ git checkout pull/11776
$ git pull https://git.openjdk.org/jdk pull/11776/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 11776

View PR using the GUI difftool:
$ git pr show -t 11776

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11776.diff

@fisk
Copy link
Contributor Author

fisk commented Dec 23, 2022

/contributor add xmas92

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 23, 2022

👋 Welcome back eosterlund! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 23, 2022
@openjdk
Copy link

openjdk bot commented Dec 23, 2022

@fisk xmas92 was not found in the census.

Syntax: /contributor (add|remove) [@user | openjdk-user | Full Name <email@address>]. For example:

  • /contributor add @openjdk-bot
  • /contributor add duke
  • /contributor add J. Duke <duke@openjdk.org>

User names can only be used for users in the census associated with this repository. For other contributors you need to supply the full name and email address.

@openjdk
Copy link

openjdk bot commented Dec 23, 2022

@fisk The following label will be automatically applied to this pull request:

  • hotspot-compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Dec 23, 2022
@mlbridge
Copy link

mlbridge bot commented Dec 23, 2022

Webrevs

Copy link

@sviswa7 sviswa7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openjdk
Copy link

openjdk bot commented Jan 3, 2023

@fisk This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8299323: Allow extended registers for cmpw

Reviewed-by: sviswanathan, kvn

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 316 new commits pushed to the master branch:

  • f52f6e6: 8299972: Remove metaprogramming/removeReference.hpp
  • 4c1e66e: 8299971: Remove metaprogramming/conditional.hpp
  • 4073b68: 8298047: Remove all non-significant trailing whitespace from properties files
  • 506c818: 8296401: ConcurrentHashTable::bulk_delete might miss to delete some objects
  • 319de6a: 8300124: Remove unnecessary assert in GenCollectedHeap::initialize
  • 289aed4: 8298128: runtime/ErrorHandling/TestSigInfoInHsErrFile.java fails to find pattern with slowdebug
  • a2f6766: 8288415: java/awt/PopupMenu/PopupMenuLocation.java is unstable in MacOS machines
  • a734285: 8299879: CollectedHeap hierarchy should use override
  • 98d75f1: 8299038: Add AArch64 backend support for auto-vectorized FP16 conversions
  • cac72a6: 8300053: Shenandoah: Handle more GCCauses in ShenandoahControlThread::request_gc
  • ... and 306 more: https://git.openjdk.org/jdk/compare/fa322e40b68abf0a253040d14414d41f4e01e028...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 3, 2023
@fisk
Copy link
Contributor Author

fisk commented Jan 4, 2023

Thanks for the review @sviswa7!

@fisk
Copy link
Contributor Author

fisk commented Jan 16, 2023

Any takers?

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.
Did you verify that the code works when extended registers are used? It does match how we encode other 16bit instructions.

@fisk
Copy link
Contributor Author

fisk commented Jan 17, 2023

Thanks for the review, @vnkozlov! I did indeed check that the code generation is accurate for extended registers.

@fisk
Copy link
Contributor Author

fisk commented Jan 17, 2023

/integrate

@openjdk
Copy link

openjdk bot commented Jan 17, 2023

Going to push as commit b7fb8ef.
Since your change was applied there have been 327 commits pushed to the master branch:

  • 07d5753: 8300168: Typo in AccessibleJTableHeaderEntry javadoc
  • e82dc69: 8300205: Swing test bug8078268 make latch timeout configurable
  • 9a36f8a: 8299673: Simplify object pinning interactions with string deduplication
  • 3462438: 8299576: Reimplement java.io.Bits using VarHandle access
  • f829a67: 8300227: [macos_aarch64] assert(cpu_has("hw.optional.arm.FEAT_AES")) failed after JDK-8297092
  • 6a81d52: 8299213: Bad cast in GrowableArrayWithAllocator<>::grow
  • 8365c67: 8300084: AquaFileChooserUI.getDefaultButton returns null
  • 382fe51: 8163229: several regression tests have a main method that is never executed
  • 06f9374: 8298867: Basics.java fails with SSL handshake exception
  • 859ccd1: 8299847: RISC-V: Improve PrintOptoAssembly output of CMoveI/L nodes
  • ... and 317 more: https://git.openjdk.org/jdk/compare/fa322e40b68abf0a253040d14414d41f4e01e028...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 17, 2023
@openjdk openjdk bot closed this Jan 17, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 17, 2023
@openjdk
Copy link

openjdk bot commented Jan 17, 2023

@fisk Pushed as commit b7fb8ef.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated
4 participants