hotspot/test/compiler/c2/cr8004867/TestIntUnsafeVolatile.java
author gtriantafill
Wed, 14 Sep 2016 08:17:50 -0400
changeset 41092 c388d897472d
parent 40059 c2304140ed64
child 41705 332239c052cc
permissions -rw-r--r--
8165889: Remove jdk.test.lib.unsafe.UnsafeHelper Summary: Remove use of setAccessible() to get Unsafe. Reviewed-by: shade, lfoltan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     1
/*
41092
c388d897472d 8165889: Remove jdk.test.lib.unsafe.UnsafeHelper
gtriantafill
parents: 40059
diff changeset
     2
 * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     4
 *
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     8
 *
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    13
 * accompanied this code).
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    14
 *
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    18
 *
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    21
 * questions.
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    22
 *
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    23
 */
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    24
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    25
/**
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    26
 * @test
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    27
 * @bug 8004867
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    28
 * @summary VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    29
 * @modules java.base/jdk.internal.misc
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    30
 *
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    31
 * @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    32
 *    -XX:-OptimizeFill
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    33
 *    compiler.c2.cr8004867.TestIntUnsafeVolatile
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    34
 * @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    35
 *    -XX:+OptimizeFill
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    36
 *    compiler.c2.cr8004867.TestIntUnsafeVolatile
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    37
 */
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    38
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    39
package compiler.c2.cr8004867;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    40
38152
80e5da81fb2c 8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents: 36851
diff changeset
    41
import jdk.internal.misc.Unsafe;
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    42
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    43
import java.lang.reflect.Field;
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    44
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    45
public class TestIntUnsafeVolatile {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    46
  private static final int ARRLEN = 97;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    47
  private static final int ITERS  = 11000;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    48
  private static final int OFFSET = 3;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    49
  private static final int SCALE = 2;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    50
  private static final int ALIGN_OFF = 8;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    51
  private static final int UNALIGN_OFF = 5;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    52
41092
c388d897472d 8165889: Remove jdk.test.lib.unsafe.UnsafeHelper
gtriantafill
parents: 40059
diff changeset
    53
  private static final Unsafe unsafe = Unsafe.getUnsafe();
15755
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    54
  private static final int BASE;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    55
  static {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    56
    try {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    57
      BASE = unsafe.arrayBaseOffset(int[].class);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    58
    } catch (Exception e) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    59
      InternalError err = new InternalError();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    60
      err.initCause(e);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    61
      throw err;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    62
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    63
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    64
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    65
  public static void main(String args[]) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    66
    System.out.println("Testing Integer array unsafe volatile operations");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    67
    int errn = test(false);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    68
    if (errn > 0) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    69
      System.err.println("FAILED: " + errn + " errors");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    70
      System.exit(97);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    71
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    72
    System.out.println("PASSED");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    73
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    74
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    75
  static int test(boolean test_only) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    76
    int[] a1 = new int[ARRLEN];
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    77
    int[] a2 = new int[ARRLEN];
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    78
    // Initialize
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    79
    for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    80
      a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    81
      a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    82
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    83
    System.out.println("Warmup");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    84
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    85
      test_ci(a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    86
      test_vi(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    87
      test_cp(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    88
      test_2ci(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    89
      test_2vi(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    90
      test_ci_neg(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    91
      test_vi_neg(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    92
      test_cp_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    93
      test_2ci_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    94
      test_2vi_neg(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    95
      test_ci_oppos(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    96
      test_vi_oppos(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    97
      test_cp_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    98
      test_2ci_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
    99
      test_2vi_oppos(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   100
      test_ci_off(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   101
      test_vi_off(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   102
      test_cp_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   103
      test_2ci_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   104
      test_2vi_off(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   105
      test_ci_inv(a1, OFFSET, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   106
      test_vi_inv(a2, 123, OFFSET, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   107
      test_cp_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   108
      test_2ci_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   109
      test_2vi_inv(a1, a2, 123, 103, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   110
      test_ci_scl(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   111
      test_vi_scl(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   112
      test_cp_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   113
      test_2ci_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   114
      test_2vi_scl(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   115
      test_cp_alndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   116
      test_cp_alnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   117
      test_2ci_aln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   118
      test_2vi_aln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   119
      test_cp_unalndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   120
      test_cp_unalnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   121
      test_2ci_unaln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   122
      test_2vi_unaln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   123
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   124
    // Initialize
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   125
    for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   126
      a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   127
      a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   128
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   129
    // Test and verify results
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   130
    System.out.println("Verification");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   131
    int errn = 0;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   132
    {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   133
      test_ci(a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   134
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   135
        errn += verify("test_ci: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   136
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   137
      test_vi(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   138
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   139
        errn += verify("test_vi: a2", i, a2[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   140
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   141
      test_cp(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   142
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   143
        errn += verify("test_cp: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   144
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   145
      test_2ci(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   146
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   147
        errn += verify("test_2ci: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   148
        errn += verify("test_2ci: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   149
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   150
      test_2vi(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   151
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   152
        errn += verify("test_2vi: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   153
        errn += verify("test_2vi: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   154
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   155
      // Reset for negative stride
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   156
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   157
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   158
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   159
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   160
      test_ci_neg(a1, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   161
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   162
        errn += verify("test_ci_neg: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   163
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   164
      test_vi_neg(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   165
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   166
        errn += verify("test_vi_neg: a2", i, a2[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   167
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   168
      test_cp_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   169
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   170
        errn += verify("test_cp_neg: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   171
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   172
      test_2ci_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   173
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   174
        errn += verify("test_2ci_neg: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   175
        errn += verify("test_2ci_neg: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   176
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   177
      test_2vi_neg(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   178
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   179
        errn += verify("test_2vi_neg: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   180
        errn += verify("test_2vi_neg: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   181
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   182
      // Reset for opposite stride
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   183
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   184
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   185
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   186
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   187
      test_ci_oppos(a1, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   188
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   189
        errn += verify("test_ci_oppos: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   190
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   191
      test_vi_oppos(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   192
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   193
        errn += verify("test_vi_oppos: a2", i, a2[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   194
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   195
      test_cp_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   196
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   197
        errn += verify("test_cp_oppos: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   198
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   199
      test_2ci_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   200
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   201
        errn += verify("test_2ci_oppos: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   202
        errn += verify("test_2ci_oppos: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   203
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   204
      test_2vi_oppos(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   205
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   206
        errn += verify("test_2vi_oppos: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   207
        errn += verify("test_2vi_oppos: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   208
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   209
      // Reset for indexing with offset
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   210
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   211
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   212
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   213
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   214
      test_ci_off(a1, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   215
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   216
        errn += verify("test_ci_off: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   217
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   218
      test_vi_off(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   219
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   220
        errn += verify("test_vi_off: a2", i, a2[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   221
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   222
      test_cp_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   223
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   224
        errn += verify("test_cp_off: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   225
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   226
      test_2ci_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   227
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   228
        errn += verify("test_2ci_off: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   229
        errn += verify("test_2ci_off: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   230
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   231
      test_2vi_off(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   232
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   233
        errn += verify("test_2vi_off: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   234
        errn += verify("test_2vi_off: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   235
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   236
      for (int i=0; i<OFFSET; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   237
        errn += verify("test_2vi_off: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   238
        errn += verify("test_2vi_off: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   239
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   240
      // Reset for indexing with invariant offset
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   241
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   242
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   243
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   244
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   245
      test_ci_inv(a1, OFFSET, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   246
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   247
        errn += verify("test_ci_inv: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   248
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   249
      test_vi_inv(a2, 123, OFFSET, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   250
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   251
        errn += verify("test_vi_inv: a2", i, a2[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   252
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   253
      test_cp_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   254
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   255
        errn += verify("test_cp_inv: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   256
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   257
      test_2ci_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   258
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   259
        errn += verify("test_2ci_inv: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   260
        errn += verify("test_2ci_inv: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   261
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   262
      test_2vi_inv(a1, a2, 123, 103, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   263
      for (int i=OFFSET; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   264
        errn += verify("test_2vi_inv: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   265
        errn += verify("test_2vi_inv: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   266
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   267
      for (int i=0; i<OFFSET; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   268
        errn += verify("test_2vi_inv: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   269
        errn += verify("test_2vi_inv: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   270
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   271
      // Reset for indexing with scale
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   272
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   273
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   274
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   275
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   276
      test_ci_scl(a1, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   277
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   278
        int val = (i%SCALE != 0) ? -1 : -123;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   279
        errn += verify("test_ci_scl: a1", i, a1[i], val);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   280
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   281
      test_vi_scl(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   282
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   283
        int val = (i%SCALE != 0) ? -1 : 123;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   284
        errn += verify("test_vi_scl: a2", i, a2[i], val);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   285
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   286
      test_cp_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   287
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   288
        int val = (i%SCALE != 0) ? -1 : 123;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   289
        errn += verify("test_cp_scl: a1", i, a1[i], val);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   290
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   291
      test_2ci_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   292
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   293
        if (i%SCALE != 0) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   294
          errn += verify("test_2ci_scl: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   295
        } else if (i*SCALE < ARRLEN) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   296
          errn += verify("test_2ci_scl: a1", i*SCALE, a1[i*SCALE], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   297
        }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   298
        if (i%SCALE != 0) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   299
          errn += verify("test_2ci_scl: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   300
        } else if (i*SCALE < ARRLEN) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   301
          errn += verify("test_2ci_scl: a2", i*SCALE, a2[i*SCALE], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   302
        }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   303
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   304
      test_2vi_scl(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   305
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   306
        if (i%SCALE != 0) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   307
          errn += verify("test_2vi_scl: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   308
        } else if (i*SCALE < ARRLEN) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   309
          errn += verify("test_2vi_scl: a1", i*SCALE, a1[i*SCALE], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   310
        }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   311
        if (i%SCALE != 0) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   312
          errn += verify("test_2vi_scl: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   313
        } else if (i*SCALE < ARRLEN) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   314
          errn += verify("test_2vi_scl: a2", i*SCALE, a2[i*SCALE], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   315
        }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   316
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   317
      // Reset for 2 arrays with relative aligned offset
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   318
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   319
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   320
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   321
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   322
      test_vi(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   323
      test_cp_alndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   324
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   325
        errn += verify("test_cp_alndst: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   326
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   327
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   328
        errn += verify("test_cp_alndst: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   329
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   330
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   331
        a1[i] = 123;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   332
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   333
      test_vi(a2, -123, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   334
      test_cp_alnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   335
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   336
        errn += verify("test_cp_alnsrc: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   337
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   338
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   339
        errn += verify("test_cp_alnsrc: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   340
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   341
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   342
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   343
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   344
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   345
      test_2ci_aln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   346
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   347
        errn += verify("test_2ci_aln: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   348
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   349
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   350
        errn += verify("test_2ci_aln: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   351
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   352
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   353
        errn += verify("test_2ci_aln: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   354
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   355
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   356
        errn += verify("test_2ci_aln: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   357
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   358
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   359
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   360
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   361
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   362
      test_2vi_aln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   363
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   364
        errn += verify("test_2vi_aln: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   365
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   366
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   367
        errn += verify("test_2vi_aln: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   368
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   369
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   370
        errn += verify("test_2vi_aln: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   371
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   372
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   373
        errn += verify("test_2vi_aln: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   374
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   375
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   376
      // Reset for 2 arrays with relative unaligned offset
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   377
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   378
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   379
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   380
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   381
      test_vi(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   382
      test_cp_unalndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   383
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   384
        errn += verify("test_cp_unalndst: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   385
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   386
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   387
        errn += verify("test_cp_unalndst: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   388
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   389
      test_vi(a2, -123, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   390
      test_cp_unalnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   391
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   392
        errn += verify("test_cp_unalnsrc: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   393
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   394
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   395
        errn += verify("test_cp_unalnsrc: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   396
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   397
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   398
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   399
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   400
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   401
      test_2ci_unaln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   402
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   403
        errn += verify("test_2ci_unaln: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   404
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   405
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   406
        errn += verify("test_2ci_unaln: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   407
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   408
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   409
        errn += verify("test_2ci_unaln: a2", i, a2[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   410
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   411
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   412
        errn += verify("test_2ci_unaln: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   413
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   414
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   415
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   416
        a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   417
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   418
      test_2vi_unaln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   419
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   420
        errn += verify("test_2vi_unaln: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   421
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   422
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   423
        errn += verify("test_2vi_unaln: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   424
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   425
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   426
        errn += verify("test_2vi_unaln: a2", i, a2[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   427
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   428
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   429
        errn += verify("test_2vi_unaln: a2", i, a2[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   430
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   431
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   432
      // Reset for aligned overlap initialization
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   433
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   434
        a1[i] = i;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   435
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   436
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   437
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   438
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   439
      test_cp_alndst(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   440
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   441
        int v = i%ALIGN_OFF;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   442
        errn += verify("test_cp_alndst_overlap: a1", i, a1[i], v);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   443
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   444
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   445
        a1[i+ALIGN_OFF] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   446
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   447
      test_cp_alnsrc(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   448
      for (int i=0; i<ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   449
        errn += verify("test_cp_alnsrc_overlap: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   450
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   451
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   452
        int v = i%ALIGN_OFF;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   453
        errn += verify("test_cp_alnsrc_overlap: a1", i, a1[i], v);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   454
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   455
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   456
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   457
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   458
      test_2ci_aln(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   459
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   460
        errn += verify("test_2ci_aln_overlap: a1", i, a1[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   461
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   462
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   463
        errn += verify("test_2ci_aln_overlap: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   464
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   465
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   466
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   467
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   468
      test_2vi_aln(a1, a1, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   469
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   470
        errn += verify("test_2vi_aln_overlap: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   471
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   472
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   473
        errn += verify("test_2vi_aln_overlap: a1", i, a1[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   474
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   475
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   476
      // Reset for unaligned overlap initialization
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   477
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   478
        a1[i] = i;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   479
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   480
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   481
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   482
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   483
      test_cp_unalndst(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   484
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   485
        int v = i%UNALIGN_OFF;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   486
        errn += verify("test_cp_unalndst_overlap: a1", i, a1[i], v);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   487
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   488
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   489
        a1[i+UNALIGN_OFF] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   490
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   491
      test_cp_unalnsrc(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   492
      for (int i=0; i<UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   493
        errn += verify("test_cp_unalnsrc_overlap: a1", i, a1[i], -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   494
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   495
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   496
        int v = i%UNALIGN_OFF;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   497
        errn += verify("test_cp_unalnsrc_overlap: a1", i, a1[i], v);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   498
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   499
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   500
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   501
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   502
      test_2ci_unaln(a1, a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   503
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   504
        errn += verify("test_2ci_unaln_overlap: a1", i, a1[i], -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   505
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   506
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   507
        errn += verify("test_2ci_unaln_overlap: a1", i, a1[i], -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   508
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   509
      for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   510
        a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   511
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   512
      test_2vi_unaln(a1, a1, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   513
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   514
        errn += verify("test_2vi_unaln_overlap: a1", i, a1[i], 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   515
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   516
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   517
        errn += verify("test_2vi_unaln_overlap: a1", i, a1[i], 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   518
      }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   519
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   520
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   521
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   522
    if (errn > 0 || test_only)
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   523
      return errn;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   524
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   525
    // Initialize
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   526
    for (int i=0; i<ARRLEN; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   527
      a1[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   528
      a2[i] = -1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   529
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   530
    System.out.println("Time");
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   531
    long start, end;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   532
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   533
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   534
      test_ci(a1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   535
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   536
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   537
    System.out.println("test_ci: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   538
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   539
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   540
      test_vi(a2, 123, -1);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   541
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   542
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   543
    System.out.println("test_vi: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   544
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   545
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   546
      test_cp(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   547
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   548
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   549
    System.out.println("test_cp: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   550
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   551
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   552
      test_2ci(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   553
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   554
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   555
    System.out.println("test_2ci: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   556
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   557
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   558
      test_2vi(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   559
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   560
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   561
    System.out.println("test_2vi: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   562
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   563
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   564
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   565
      test_ci_neg(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   566
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   567
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   568
    System.out.println("test_ci_neg: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   569
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   570
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   571
      test_vi_neg(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   572
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   573
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   574
    System.out.println("test_vi_neg: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   575
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   576
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   577
      test_cp_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   578
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   579
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   580
    System.out.println("test_cp_neg: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   581
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   582
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   583
      test_2ci_neg(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   584
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   585
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   586
    System.out.println("test_2ci_neg: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   587
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   588
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   589
      test_2vi_neg(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   590
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   591
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   592
    System.out.println("test_2vi_neg: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   593
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   594
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   595
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   596
      test_ci_oppos(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   597
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   598
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   599
    System.out.println("test_ci_oppos: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   600
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   601
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   602
      test_vi_oppos(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   603
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   604
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   605
    System.out.println("test_vi_oppos: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   606
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   607
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   608
      test_cp_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   609
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   610
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   611
    System.out.println("test_cp_oppos: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   612
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   613
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   614
      test_2ci_oppos(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   615
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   616
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   617
    System.out.println("test_2ci_oppos: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   618
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   619
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   620
      test_2vi_oppos(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   621
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   622
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   623
    System.out.println("test_2vi_oppos: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   624
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   625
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   626
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   627
      test_ci_off(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   628
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   629
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   630
    System.out.println("test_ci_off: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   631
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   632
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   633
      test_vi_off(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   634
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   635
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   636
    System.out.println("test_vi_off: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   637
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   638
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   639
      test_cp_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   640
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   641
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   642
    System.out.println("test_cp_off: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   643
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   644
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   645
      test_2ci_off(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   646
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   647
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   648
    System.out.println("test_2ci_off: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   649
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   650
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   651
      test_2vi_off(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   652
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   653
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   654
    System.out.println("test_2vi_off: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   655
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   656
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   657
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   658
      test_ci_inv(a1, OFFSET, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   659
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   660
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   661
    System.out.println("test_ci_inv: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   662
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   663
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   664
      test_vi_inv(a2, 123, OFFSET, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   665
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   666
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   667
    System.out.println("test_vi_inv: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   668
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   669
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   670
      test_cp_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   671
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   672
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   673
    System.out.println("test_cp_inv: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   674
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   675
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   676
      test_2ci_inv(a1, a2, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   677
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   678
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   679
    System.out.println("test_2ci_inv: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   680
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   681
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   682
      test_2vi_inv(a1, a2, 123, 103, OFFSET);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   683
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   684
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   685
    System.out.println("test_2vi_inv: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   686
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   687
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   688
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   689
      test_ci_scl(a1, 123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   690
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   691
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   692
    System.out.println("test_ci_scl: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   693
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   694
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   695
      test_vi_scl(a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   696
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   697
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   698
    System.out.println("test_vi_scl: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   699
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   700
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   701
      test_cp_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   702
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   703
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   704
    System.out.println("test_cp_scl: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   705
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   706
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   707
      test_2ci_scl(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   708
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   709
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   710
    System.out.println("test_2ci_scl: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   711
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   712
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   713
      test_2vi_scl(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   714
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   715
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   716
    System.out.println("test_2vi_scl: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   717
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   718
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   719
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   720
      test_cp_alndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   721
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   722
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   723
    System.out.println("test_cp_alndst: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   724
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   725
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   726
      test_cp_alnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   727
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   728
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   729
    System.out.println("test_cp_alnsrc: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   730
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   731
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   732
      test_2ci_aln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   733
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   734
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   735
    System.out.println("test_2ci_aln: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   736
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   737
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   738
      test_2vi_aln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   739
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   740
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   741
    System.out.println("test_2vi_aln: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   742
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   743
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   744
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   745
      test_cp_unalndst(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   746
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   747
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   748
    System.out.println("test_cp_unalndst: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   749
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   750
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   751
      test_cp_unalnsrc(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   752
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   753
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   754
    System.out.println("test_cp_unalnsrc: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   755
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   756
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   757
      test_2ci_unaln(a1, a2);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   758
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   759
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   760
    System.out.println("test_2ci_unaln: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   761
    start = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   762
    for (int i=0; i<ITERS; i++) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   763
      test_2vi_unaln(a1, a2, 123, 103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   764
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   765
    end = System.currentTimeMillis();
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   766
    System.out.println("test_2vi_unaln: " + (end - start));
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   767
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   768
    return errn;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   769
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   770
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   771
  private final static long byte_offset(int i) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   772
    return ((long)i << 2) + BASE;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   773
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   774
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   775
  static void test_ci(int[] a) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   776
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   777
      unsafe.putIntVolatile(a, byte_offset(i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   778
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   779
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   780
  static void test_vi(int[] a, int b, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   781
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   782
      unsafe.putIntVolatile(a, byte_offset(i), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   783
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   784
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   785
  static void test_cp(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   786
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   787
      unsafe.putIntVolatile(a, byte_offset(i), b[i]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   788
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   789
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   790
  static void test_2ci(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   791
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   792
      unsafe.putIntVolatile(a, byte_offset(i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   793
      unsafe.putIntVolatile(b, byte_offset(i), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   794
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   795
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   796
  static void test_2vi(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   797
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   798
      unsafe.putIntVolatile(a, byte_offset(i), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   799
      unsafe.putIntVolatile(b, byte_offset(i), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   800
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   801
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   802
  static void test_ci_neg(int[] a, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   803
    for (int i = ARRLEN-1; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   804
      unsafe.putIntVolatile(a, byte_offset(i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   805
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   806
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   807
  static void test_vi_neg(int[] a, int b, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   808
    for (int i = ARRLEN-1; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   809
      unsafe.putIntVolatile(a, byte_offset(i), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   810
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   811
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   812
  static void test_cp_neg(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   813
    for (int i = ARRLEN-1; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   814
      unsafe.putIntVolatile(a, byte_offset(i), b[i]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   815
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   816
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   817
  static void test_2ci_neg(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   818
    for (int i = ARRLEN-1; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   819
      unsafe.putIntVolatile(a, byte_offset(i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   820
      unsafe.putIntVolatile(b, byte_offset(i), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   821
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   822
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   823
  static void test_2vi_neg(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   824
    for (int i = ARRLEN-1; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   825
      unsafe.putIntVolatile(a, byte_offset(i), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   826
      unsafe.putIntVolatile(b, byte_offset(i), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   827
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   828
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   829
  static void test_ci_oppos(int[] a, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   830
    int limit = ARRLEN-1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   831
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   832
      unsafe.putIntVolatile(a, byte_offset(limit-i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   833
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   834
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   835
  static void test_vi_oppos(int[] a, int b, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   836
    int limit = ARRLEN-1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   837
    for (int i = limit; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   838
      unsafe.putIntVolatile(a, byte_offset(limit-i), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   839
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   840
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   841
  static void test_cp_oppos(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   842
    int limit = ARRLEN-1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   843
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   844
      unsafe.putIntVolatile(a, byte_offset(i), b[limit-i]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   845
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   846
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   847
  static void test_2ci_oppos(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   848
    int limit = ARRLEN-1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   849
    for (int i = 0; i < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   850
      unsafe.putIntVolatile(a, byte_offset(limit-i), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   851
      unsafe.putIntVolatile(b, byte_offset(i), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   852
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   853
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   854
  static void test_2vi_oppos(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   855
    int limit = ARRLEN-1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   856
    for (int i = limit; i >= 0; i-=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   857
      unsafe.putIntVolatile(a, byte_offset(i), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   858
      unsafe.putIntVolatile(b, byte_offset(limit-i), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   859
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   860
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   861
  static void test_ci_off(int[] a, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   862
    for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   863
      unsafe.putIntVolatile(a, byte_offset(i+OFFSET), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   864
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   865
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   866
  static void test_vi_off(int[] a, int b, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   867
    for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   868
      unsafe.putIntVolatile(a, byte_offset(i+OFFSET), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   869
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   870
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   871
  static void test_cp_off(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   872
    for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   873
      unsafe.putIntVolatile(a, byte_offset(i+OFFSET), b[i+OFFSET]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   874
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   875
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   876
  static void test_2ci_off(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   877
    for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   878
      unsafe.putIntVolatile(a, byte_offset(i+OFFSET), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   879
      unsafe.putIntVolatile(b, byte_offset(i+OFFSET), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   880
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   881
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   882
  static void test_2vi_off(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   883
    for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   884
      unsafe.putIntVolatile(a, byte_offset(i+OFFSET), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   885
      unsafe.putIntVolatile(b, byte_offset(i+OFFSET), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   886
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   887
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   888
  static void test_ci_inv(int[] a, int k, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   889
    for (int i = 0; i < ARRLEN-k; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   890
      unsafe.putIntVolatile(a, byte_offset(i+k), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   891
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   892
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   893
  static void test_vi_inv(int[] a, int b, int k, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   894
    for (int i = 0; i < ARRLEN-k; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   895
      unsafe.putIntVolatile(a, byte_offset(i+k), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   896
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   897
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   898
  static void test_cp_inv(int[] a, int[] b, int k) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   899
    for (int i = 0; i < ARRLEN-k; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   900
      unsafe.putIntVolatile(a, byte_offset(i+k), b[i+k]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   901
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   902
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   903
  static void test_2ci_inv(int[] a, int[] b, int k) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   904
    for (int i = 0; i < ARRLEN-k; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   905
      unsafe.putIntVolatile(a, byte_offset(i+k), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   906
      unsafe.putIntVolatile(b, byte_offset(i+k), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   907
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   908
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   909
  static void test_2vi_inv(int[] a, int[] b, int c, int d, int k) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   910
    for (int i = 0; i < ARRLEN-k; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   911
      unsafe.putIntVolatile(a, byte_offset(i+k), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   912
      unsafe.putIntVolatile(b, byte_offset(i+k), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   913
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   914
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   915
  static void test_ci_scl(int[] a, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   916
    for (int i = 0; i*SCALE < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   917
      unsafe.putIntVolatile(a, byte_offset(i*SCALE), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   918
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   919
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   920
  static void test_vi_scl(int[] a, int b, int old) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   921
    for (int i = 0; i*SCALE < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   922
      unsafe.putIntVolatile(a, byte_offset(i*SCALE), b);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   923
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   924
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   925
  static void test_cp_scl(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   926
    for (int i = 0; i*SCALE < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   927
      unsafe.putIntVolatile(a, byte_offset(i*SCALE), b[i*SCALE]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   928
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   929
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   930
  static void test_2ci_scl(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   931
    for (int i = 0; i*SCALE < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   932
      unsafe.putIntVolatile(a, byte_offset(i*SCALE), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   933
      unsafe.putIntVolatile(b, byte_offset(i*SCALE), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   934
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   935
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   936
  static void test_2vi_scl(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   937
    for (int i = 0; i*SCALE < ARRLEN; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   938
      unsafe.putIntVolatile(a, byte_offset(i*SCALE), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   939
      unsafe.putIntVolatile(b, byte_offset(i*SCALE), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   940
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   941
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   942
  static void test_cp_alndst(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   943
    for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   944
      unsafe.putIntVolatile(a, byte_offset(i+ALIGN_OFF), b[i]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   945
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   946
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   947
  static void test_cp_alnsrc(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   948
    for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   949
      unsafe.putIntVolatile(a, byte_offset(i), b[i+ALIGN_OFF]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   950
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   951
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   952
  static void test_2ci_aln(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   953
    for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   954
      unsafe.putIntVolatile(a, byte_offset(i+ALIGN_OFF), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   955
      unsafe.putIntVolatile(b, byte_offset(i), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   956
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   957
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   958
  static void test_2vi_aln(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   959
    for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   960
      unsafe.putIntVolatile(a, byte_offset(i), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   961
      unsafe.putIntVolatile(b, byte_offset(i+ALIGN_OFF), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   962
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   963
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   964
  static void test_cp_unalndst(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   965
    for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   966
      unsafe.putIntVolatile(a, byte_offset(i+UNALIGN_OFF), b[i]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   967
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   968
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   969
  static void test_cp_unalnsrc(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   970
    for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   971
      unsafe.putIntVolatile(a, byte_offset(i), b[i+UNALIGN_OFF]);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   972
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   973
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   974
  static void test_2ci_unaln(int[] a, int[] b) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   975
    for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   976
      unsafe.putIntVolatile(a, byte_offset(i+UNALIGN_OFF), -123);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   977
      unsafe.putIntVolatile(b, byte_offset(i), -103);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   978
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   979
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   980
  static void test_2vi_unaln(int[] a, int[] b, int c, int d) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   981
    for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   982
      unsafe.putIntVolatile(a, byte_offset(i), c);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   983
      unsafe.putIntVolatile(b, byte_offset(i+UNALIGN_OFF), d);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   984
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   985
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   986
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   987
  static int verify(String text, int i, int elem, int val) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   988
    if (elem != val) {
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   989
      System.err.println(text + "[" + i + "] = " + elem + " != " + val);
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   990
      return 1;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   991
    }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   992
    return 0;
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   993
  }
c54cbfb4b37f 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff changeset
   994
}