8335860: compiler/vectorization/TestFloat16VectorConvChain.java fails with non-standard AVX/SSE settings

Reviewed-by: sviswanathan, kvn
This commit is contained in:
Jatin Bhateja 2024-07-18 11:22:58 +00:00
parent 7bf5313244
commit 35df48e1b3
2 changed files with 1 additions and 4 deletions
test/hotspot/jtreg

@ -69,8 +69,6 @@ compiler/startup/StartupOutput.java 8326615 generic-x64
compiler/codecache/CodeCacheFullCountTest.java 8332954 generic-all
compiler/vectorization/TestFloat16VectorConvChain.java 8335860 generic-all
compiler/interpreter/Test6833129.java 8335266 generic-i586
#############################################################################

@ -24,7 +24,6 @@
/**
* @test
* @summary Test Float16 vector conversion chain.
* @requires vm.compiler2.enabled
* @library /test/lib /
* @run driver compiler.vectorization.TestFloat16VectorConvChain
*/
@ -39,7 +38,7 @@ import java.util.Arrays;
public class TestFloat16VectorConvChain {
@Test
@IR(counts = {IRNode.VECTOR_CAST_HF2F, IRNode.VECTOR_SIZE_ANY, ">= 1", IRNode.VECTOR_CAST_F2HF, IRNode.VECTOR_SIZE_ANY, " >= 1"})
@IR(applyIfCPUFeatureOr = {"f16c", "true", "avx512vl", "true"}, counts = {IRNode.VECTOR_CAST_HF2F, IRNode.VECTOR_SIZE_ANY, ">= 1", IRNode.VECTOR_CAST_F2HF, IRNode.VECTOR_SIZE_ANY, " >= 1"})
public static void test(short [] res, short [] src1, short [] src2) {
for (int i = 0; i < res.length; i++) {
res[i] = (short)Float.float16ToFloat(Float.floatToFloat16(Float.float16ToFloat(src1[i]) + Float.float16ToFloat(src2[i])));