< prev index next >

test/hotspot/jtreg/compiler/c2/irTests/TestVectorizationMismatchedAccess.java

Print this page
@@ -148,11 +148,12 @@
              }
          }
      }
  
      @Test
-     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" })
+     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" },
+         applyIf = {"UseCompactObjectHeaders", "false"})
      public static void testByteLong1(byte[] dest, long[] src) {
          for (int i = 0; i < src.length; i++) {
              UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * i, src[i]);
          }
      }

@@ -161,11 +162,12 @@
      public static void testByteLong1_runner() {
          runAndVerify(() -> testByteLong1(byteArray, longArray), 0);
      }
  
      @Test
-     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" })
+     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" },
+         applyIf = {"UseCompactObjectHeaders", "false"})
      public static void testByteLong2(byte[] dest, long[] src) {
          for (int i = 1; i < src.length; i++) {
              UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * (i - 1), src[i]);
          }
      }

@@ -174,11 +176,12 @@
      public static void testByteLong2_runner() {
          runAndVerify(() -> testByteLong2(byteArray, longArray), -8);
      }
  
      @Test
-     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" })
+     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" },
+         applyIf = {"UseCompactObjectHeaders", "false"})
      public static void testByteLong3(byte[] dest, long[] src) {
          for (int i = 0; i < src.length - 1; i++) {
              UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * (i + 1), src[i]);
          }
      }

@@ -201,11 +204,12 @@
          baseOffset = UNSAFE.ARRAY_BYTE_BASE_OFFSET;
          runAndVerify(() -> testByteLong4(byteArray, longArray, 0, size), 0);
      }
  
      @Test
-     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" })
+     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" },
+         applyIf = {"UseCompactObjectHeaders", "false"})
      public static void testByteLong5(byte[] dest, long[] src, int start, int stop) {
          for (int i = start; i < stop; i++) {
              UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * (i + baseOffset), src[i]);
          }
      }

@@ -215,11 +219,12 @@
          baseOffset = 1;
          runAndVerify(() -> testByteLong5(byteArray, longArray, 0, size-1), 8);
      }
  
      @Test
-     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" })
+     @IR(counts = { IRNode.LOAD_VECTOR_L, ">=1", IRNode.STORE_VECTOR, ">=1" },
+         applyIf = {"UseCompactObjectHeaders", "false"})
      public static void testByteByte1(byte[] dest, byte[] src) {
          for (int i = 0; i < src.length / 8; i++) {
              UNSAFE.putLongUnaligned(dest, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * i, UNSAFE.getLongUnaligned(src, UNSAFE.ARRAY_BYTE_BASE_OFFSET + 8 * i));
          }
      }
< prev index next >