8325037: x86: enable and fix hotspot/jtreg/compiler/vectorization/TestRoundVectFloat.java

Reviewed-by: thartmann, kvn, jbhateja
This commit is contained in:
Hamlin Li 2024-02-04 09:46:15 +00:00
parent a18b03b86f
commit ed068469f3

@ -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
@ -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]);