< prev index next >

test/hotspot/jtreg/compiler/vectorization/TestFloatConversionsVector.java

Print this page
*** 60,21 ***
          System.out.println("PASSED");
      }
  
      @Test
      @IR(counts = {IRNode.VECTOR_CAST_F2HF, IRNode.VECTOR_SIZE + "min(max_float, max_short)", "> 0"},
-         applyIfOr = {"UseCompactObjectHeaders", "false", "AlignVector", "false"},
          applyIfPlatformOr = {"x64", "true", "aarch64", "true", "riscv64", "true"},
          applyIfCPUFeatureOr = {"f16c", "true", "avx512f", "true", "zvfh", "true", "asimd", "true", "sve", "true"})
      public void test_float_float16(short[] sout, float[] finp) {
          for (int i = 0; i < finp.length; i++) {
              sout[i] = Float.floatToFloat16(finp[i]);
-             // With AlignVector, we need 8-byte alignment of vector loads/stores.
-             // UseCompactObjectHeaders=false                 UseCompactObjectHeaders=true
-             // F_adr = base + 16 + 4*i   ->  i % 2 = 0       F_adr = base + 12 + 4*i   ->  i % 2 = 1
-             // S_adr = base + 16 + 2*i   ->  i % 4 = 0       S_adr = base + 12 + 2*i   ->  i % 4 = 2
-             // -> vectorize                                  -> no vectorization
          }
      }
  
      @Test
      public void test_float_float16_strided(short[] sout, float[] finp) {
--- 60,15 ---

*** 129,21 ***
          }
      }
  
      @Test
      @IR(counts = {IRNode.VECTOR_CAST_HF2F, IRNode.VECTOR_SIZE + "min(max_float, max_short)", "> 0"},
-         applyIfOr = {"UseCompactObjectHeaders", "false", "AlignVector", "false"},
          applyIfPlatformOr = {"x64", "true", "aarch64", "true", "riscv64", "true"},
          applyIfCPUFeatureOr = {"f16c", "true", "avx512f", "true", "zvfh", "true", "asimd", "true", "sve", "true"})
      public void test_float16_float(float[] fout, short[] sinp) {
          for (int i = 0; i < sinp.length; i++) {
              fout[i] = Float.float16ToFloat(sinp[i]);
-             // With AlignVector, we need 8-byte alignment of vector loads/stores.
-             // UseCompactObjectHeaders=false                 UseCompactObjectHeaders=true
-             // F_adr = base + 16 + 4*i   ->  i % 2 = 0       F_adr = base + 12 + 4*i   ->  i % 2 = 1
-             // S_adr = base + 16 + 2*i   ->  i % 4 = 0       S_adr = base + 12 + 2*i   ->  i % 4 = 2
-             // -> vectorize                                  -> no vectorization
          }
      }
  
      @Test
      public void test_float16_float_strided(float[] fout, short[] sinp) {
--- 123,15 ---
< prev index next >