Skip to content

Conversation

@bradfordwetmore
Copy link
Contributor

I am here.

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 29, 2020

Welcome to the OpenJDK organization on GitHub!

This repository is currently a read-only git mirror of the official Mercurial repository (located at https://hg.openjdk.java.net/). As such, we are not currently accepting pull requests here. If you would like to contribute to the OpenJDK project, please see https://openjdk.java.net/contribute/ on how to proceed.

This pull request will be automatically closed.

@bridgekeeper bridgekeeper bot closed this Aug 29, 2020
@bradfordwetmore bradfordwetmore deleted the bradfordwetmore-patch-1 branch August 29, 2020 17:28
cushon pushed a commit to cushon/jdk that referenced this pull request Apr 2, 2021
openjdk-notifier bot pushed a commit that referenced this pull request Oct 27, 2022
Fix call to SymbolLookup::find
JimLaskey pushed a commit to JimLaskey/jdk that referenced this pull request Nov 23, 2022
changpeng1997 added a commit to changpeng1997/jdk that referenced this pull request Mar 28, 2023
…te for SVE

We can use SVE compare-with-integer-immediate instructions like
cmpgt(immediate)[1] to avoid the extra scalar2vector
operations.

The following instruction sequence

```
movi    v17.16b, openjdk#12
cmpgt   p0.b, p7/z, z16.b, z17.b
```

can be optimized to:

```
cmpgt   p0.b, p7/z, z16.b, openjdk#12
```

This patch does the following:
1. Add SVE compare-with-7bit-unsigned-immediate instructions to C2's backend.

SVE cmp<cc>(immediate) instructions can support vector comparing with
7bit unsigned integer immediate (range from 0 to 127) or 5bit signed
integer immediate (range from -16 to 15).

2. Add optimized match rules to generate the compare-with-immediate
instructions.

[1]: https://developer.arm.com/documentation/ddi0596/2021-12/SVE-Instructions/CMP-cc---immediate---Compare-vector-to-immediate-

TEST_LABEL: v1 || n2, aarch64&&ubuntu&&conformance-enabled
JDK_SCOPE: hotspot:compiler/vectorapi, jdk:jdk/incubator/vector/

Jira: ENTLLT-5294
Change-Id: I6b915864308faf9a8ec6e35ca1b4948666d75dca
caojoshua pushed a commit to caojoshua/jdk that referenced this pull request Mar 29, 2023
Co-authored-by: Xin Liu <xxinliu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant