Skip to content

Commit

Permalink
8325037: x86: enable and fix hotspot/jtreg/compiler/vectorization/Tes…
Browse files Browse the repository at this point in the history
…tRoundVectFloat.java

Reviewed-by: thartmann, kvn, jbhateja
  • Loading branch information
Hamlin Li committed Feb 4, 2024
1 parent a18b03b commit ed06846
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -44,13 +44,12 @@ public class TestRoundVectFloat {

public static void main(String args[]) {
TestFramework.runWithFlags("-XX:-TieredCompilation",
"-XX:UseAVX=1",
"-XX:CompileThresholdScaling=0.3");
System.out.println("PASSED");
}

@Test
@IR(applyIf = {"UseAVX", " > 1"}, counts = {"RoundVF" , " > 0 "})
@IR(applyIf = {"UseAVX", " > 1"}, counts = {IRNode.ROUND_VF , " > 0 "})
public void test_round_float(int[] iout, float[] finp) {
for (int i = 0; i < finp.length; i+=1) {
iout[i] = Math.round(finp[i]);
Expand Down

3 comments on commit ed06846

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@luchenlin
Copy link

Choose a reason for hiding this comment

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

/backport jdk21u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on ed06846 Jul 30, 2024

Choose a reason for hiding this comment

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

@luchenlin the backport was successfully created on the branch backport-luchenlin-ed068469-master in my personal fork of openjdk/jdk21u-dev. To create a pull request with this backport targeting openjdk/jdk21u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit ed068469 from the openjdk/jdk repository.

The commit being backported was authored by Hamlin Li on 4 Feb 2024 and was reviewed by Tobias Hartmann, Vladimir Kozlov and Jatin Bhateja.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk21u-dev:

$ git fetch https://github.com/openjdk-bots/jdk21u-dev.git backport-luchenlin-ed068469-master:backport-luchenlin-ed068469-master
$ git checkout backport-luchenlin-ed068469-master
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk21u-dev.git backport-luchenlin-ed068469-master

Please sign in to comment.