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

Backport-of: ed068469f3852aa69a27fe0f267d1828a0e59aec
  • Loading branch information
Andrew Lu committed Aug 1, 2024
1 parent e478a23 commit 43cb913
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

1 comment on commit 43cb913

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.