author | dholmes |
Fri, 13 Sep 2013 21:36:27 -0400 | |
changeset 19977 | 90bac254adac |
parent 15755 | c54cbfb4b37f |
permissions | -rw-r--r-- |
15755
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
1 |
/* |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
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" |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
29 |
* |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
30 |
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:-OptimizeFill TestIntAtomicOrdered |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
31 |
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:+OptimizeFill TestIntAtomicOrdered |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
32 |
*/ |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
33 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
34 |
import java.util.concurrent.atomic.AtomicIntegerArray; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
35 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
36 |
public class TestIntAtomicOrdered { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
37 |
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
|
38 |
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
|
39 |
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
|
40 |
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
|
41 |
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
|
42 |
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
|
43 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
44 |
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
|
45 |
System.out.println("Testing Integer array atomic ordered operations"); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
46 |
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
|
47 |
if (errn > 0) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
48 |
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
|
49 |
System.exit(97); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
50 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
51 |
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
|
52 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
53 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
54 |
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
|
55 |
AtomicIntegerArray a1 = new AtomicIntegerArray(ARRLEN); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
56 |
AtomicIntegerArray a2 = new AtomicIntegerArray(ARRLEN); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
57 |
// Initialize |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
58 |
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
|
59 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
60 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
61 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
62 |
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
|
63 |
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
|
64 |
test_ci(a1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
65 |
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
|
66 |
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
|
67 |
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
|
68 |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
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
|
73 |
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
|
74 |
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
|
75 |
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
|
76 |
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
|
77 |
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
|
78 |
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
|
79 |
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
|
80 |
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
|
81 |
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
|
82 |
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
|
83 |
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
|
84 |
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
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
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
|
89 |
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
|
90 |
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
|
91 |
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
|
92 |
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
|
93 |
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
|
94 |
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
|
95 |
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
|
96 |
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
|
97 |
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
|
98 |
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
|
99 |
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
|
100 |
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
|
101 |
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
|
102 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
103 |
// Initialize |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
104 |
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
|
105 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
106 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
107 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
108 |
// 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
|
109 |
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
|
110 |
int errn = 0; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
111 |
{ |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
112 |
test_ci(a1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
113 |
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
|
114 |
errn += verify("test_ci: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
115 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
116 |
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
|
117 |
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
|
118 |
errn += verify("test_vi: a2", i, a2.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
119 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
120 |
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
|
121 |
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
|
122 |
errn += verify("test_cp: a1", i, a1.get(i), 123); |
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 |
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
|
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 |
errn += verify("test_2ci: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
127 |
errn += verify("test_2ci: a2", i, a2.get(i), -103); |
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_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
|
130 |
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
|
131 |
errn += verify("test_2vi: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
132 |
errn += verify("test_2vi: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
133 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
134 |
// 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
|
135 |
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
|
136 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
137 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
138 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
139 |
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
|
140 |
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
|
141 |
errn += verify("test_ci_neg: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
142 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
143 |
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
|
144 |
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
|
145 |
errn += verify("test_vi_neg: a2", i, a2.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
146 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
147 |
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
|
148 |
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
|
149 |
errn += verify("test_cp_neg: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
150 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
151 |
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
|
152 |
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
|
153 |
errn += verify("test_2ci_neg: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
154 |
errn += verify("test_2ci_neg: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
155 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
156 |
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
|
157 |
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
|
158 |
errn += verify("test_2vi_neg: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
159 |
errn += verify("test_2vi_neg: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
160 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
161 |
// 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
|
162 |
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
|
163 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
164 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
165 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
166 |
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
|
167 |
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
|
168 |
errn += verify("test_ci_oppos: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
169 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
170 |
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
|
171 |
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
|
172 |
errn += verify("test_vi_oppos: a2", i, a2.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
173 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
174 |
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
|
175 |
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
|
176 |
errn += verify("test_cp_oppos: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
177 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
178 |
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
|
179 |
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
|
180 |
errn += verify("test_2ci_oppos: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
181 |
errn += verify("test_2ci_oppos: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
182 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
183 |
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
|
184 |
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
|
185 |
errn += verify("test_2vi_oppos: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
186 |
errn += verify("test_2vi_oppos: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
187 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
188 |
// 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
|
189 |
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
|
190 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
191 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
192 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
193 |
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
|
194 |
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
|
195 |
errn += verify("test_ci_off: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
196 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
197 |
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
|
198 |
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
|
199 |
errn += verify("test_vi_off: a2", i, a2.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
200 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
201 |
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
|
202 |
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
|
203 |
errn += verify("test_cp_off: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
204 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
205 |
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
|
206 |
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
|
207 |
errn += verify("test_2ci_off: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
208 |
errn += verify("test_2ci_off: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
209 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
210 |
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
|
211 |
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
|
212 |
errn += verify("test_2vi_off: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
213 |
errn += verify("test_2vi_off: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
214 |
} |
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=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
|
216 |
errn += verify("test_2vi_off: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
217 |
errn += verify("test_2vi_off: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
218 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
219 |
// 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
|
220 |
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
|
221 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
222 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
223 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
224 |
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
|
225 |
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
|
226 |
errn += verify("test_ci_inv: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
227 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
228 |
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
|
229 |
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
|
230 |
errn += verify("test_vi_inv: a2", i, a2.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
231 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
232 |
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
|
233 |
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
|
234 |
errn += verify("test_cp_inv: a1", i, a1.get(i), 123); |
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 |
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
|
237 |
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
|
238 |
errn += verify("test_2ci_inv: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
239 |
errn += verify("test_2ci_inv: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
240 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
241 |
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
|
242 |
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
|
243 |
errn += verify("test_2vi_inv: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
244 |
errn += verify("test_2vi_inv: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
245 |
} |
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=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
|
247 |
errn += verify("test_2vi_inv: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
248 |
errn += verify("test_2vi_inv: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
249 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
250 |
// 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
|
251 |
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
|
252 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
253 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
254 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
255 |
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
|
256 |
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
|
257 |
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
|
258 |
errn += verify("test_ci_scl: a1", i, a1.get(i), val); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
259 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
260 |
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
|
261 |
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
|
262 |
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
|
263 |
errn += verify("test_vi_scl: a2", i, a2.get(i), val); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
264 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
265 |
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
|
266 |
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
|
267 |
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
|
268 |
errn += verify("test_cp_scl: a1", i, a1.get(i), val); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
269 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
270 |
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
|
271 |
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
|
272 |
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
|
273 |
errn += verify("test_2ci_scl: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
274 |
} 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
|
275 |
errn += verify("test_2ci_scl: a1", i*SCALE, a1.get(i*SCALE), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
276 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
277 |
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
|
278 |
errn += verify("test_2ci_scl: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
279 |
} 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
|
280 |
errn += verify("test_2ci_scl: a2", i*SCALE, a2.get(i*SCALE), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
281 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
282 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
283 |
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
|
284 |
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
|
285 |
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
|
286 |
errn += verify("test_2vi_scl: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
287 |
} 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
|
288 |
errn += verify("test_2vi_scl: a1", i*SCALE, a1.get(i*SCALE), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
289 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
290 |
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
|
291 |
errn += verify("test_2vi_scl: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
292 |
} 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
|
293 |
errn += verify("test_2vi_scl: a2", i*SCALE, a2.get(i*SCALE), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
294 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
295 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
296 |
// 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
|
297 |
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
|
298 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
299 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
300 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
301 |
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
|
302 |
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
|
303 |
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
|
304 |
errn += verify("test_cp_alndst: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
305 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
306 |
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
|
307 |
errn += verify("test_cp_alndst: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
308 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
309 |
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
|
310 |
a1.lazySet(i, 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
311 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
312 |
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
|
313 |
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
|
314 |
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
|
315 |
errn += verify("test_cp_alnsrc: a1", i, a1.get(i), -123); |
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 |
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
|
318 |
errn += verify("test_cp_alnsrc: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
319 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
320 |
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
|
321 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
322 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
323 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
324 |
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
|
325 |
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
|
326 |
errn += verify("test_2ci_aln: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
327 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
328 |
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
|
329 |
errn += verify("test_2ci_aln: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
330 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
331 |
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
|
332 |
errn += verify("test_2ci_aln: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
333 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
334 |
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
|
335 |
errn += verify("test_2ci_aln: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
336 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
337 |
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
|
338 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
339 |
a2.lazySet(i, -1); |
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 |
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
|
342 |
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
|
343 |
errn += verify("test_2vi_aln: a1", i, a1.get(i), 123); |
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 |
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
|
346 |
errn += verify("test_2vi_aln: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
347 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
348 |
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
|
349 |
errn += verify("test_2vi_aln: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
350 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
351 |
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
|
352 |
errn += verify("test_2vi_aln: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
353 |
} |
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 |
// 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
|
356 |
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
|
357 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
358 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
359 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
360 |
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
|
361 |
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
|
362 |
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
|
363 |
errn += verify("test_cp_unalndst: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
364 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
365 |
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
|
366 |
errn += verify("test_cp_unalndst: a1", i, a1.get(i), 123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
367 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
368 |
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
|
369 |
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
|
370 |
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
|
371 |
errn += verify("test_cp_unalnsrc: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
372 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
373 |
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
|
374 |
errn += verify("test_cp_unalnsrc: a1", i, a1.get(i), 123); |
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 |
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
|
377 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
378 |
a2.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
379 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
380 |
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
|
381 |
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
|
382 |
errn += verify("test_2ci_unaln: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
383 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
384 |
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
|
385 |
errn += verify("test_2ci_unaln: a1", i, a1.get(i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
386 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
387 |
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
|
388 |
errn += verify("test_2ci_unaln: a2", i, a2.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
389 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
390 |
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
|
391 |
errn += verify("test_2ci_unaln: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
392 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
393 |
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
|
394 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
395 |
a2.lazySet(i, -1); |
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 |
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
|
398 |
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
|
399 |
errn += verify("test_2vi_unaln: a1", i, a1.get(i), 123); |
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 |
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
|
402 |
errn += verify("test_2vi_unaln: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
403 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
404 |
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
|
405 |
errn += verify("test_2vi_unaln: a2", i, a2.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
406 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
407 |
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
|
408 |
errn += verify("test_2vi_unaln: a2", i, a2.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
409 |
} |
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 |
// 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
|
412 |
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
|
413 |
a1.lazySet(i, i); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
414 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
415 |
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
|
416 |
a1.lazySet(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_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
|
419 |
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
|
420 |
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
|
421 |
errn += verify("test_cp_alndst_overlap: a1", i, a1.get(i), v); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
422 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
423 |
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
|
424 |
a1.lazySet((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
|
425 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
426 |
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
|
427 |
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
|
428 |
errn += verify("test_cp_alnsrc_overlap: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
429 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
430 |
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
|
431 |
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
|
432 |
errn += verify("test_cp_alnsrc_overlap: a1", i, a1.get(i), v); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
433 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
434 |
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
|
435 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
436 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
437 |
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
|
438 |
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
|
439 |
errn += verify("test_2ci_aln_overlap: a1", i, a1.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
440 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
441 |
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
|
442 |
errn += verify("test_2ci_aln_overlap: a1", i, a1.get(i), -123); |
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<ARRLEN; i++) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
445 |
a1.lazySet(i, -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_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
|
448 |
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
|
449 |
errn += verify("test_2vi_aln_overlap: a1", i, a1.get(i), 123); |
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=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
|
452 |
errn += verify("test_2vi_aln_overlap: a1", i, a1.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
453 |
} |
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 |
// 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
|
456 |
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
|
457 |
a1.lazySet(i, i); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
458 |
} |
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=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
|
460 |
a1.lazySet(i, -1); |
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 |
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
|
463 |
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
|
464 |
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
|
465 |
errn += verify("test_cp_unalndst_overlap: a1", i, a1.get(i), v); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
466 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
467 |
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
|
468 |
a1.lazySet((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
|
469 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
470 |
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
|
471 |
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
|
472 |
errn += verify("test_cp_unalnsrc_overlap: a1", i, a1.get(i), -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
473 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
474 |
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
|
475 |
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
|
476 |
errn += verify("test_cp_unalnsrc_overlap: a1", i, a1.get(i), v); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
477 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
478 |
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
|
479 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
480 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
481 |
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
|
482 |
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
|
483 |
errn += verify("test_2ci_unaln_overlap: a1", i, a1.get(i), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
484 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
485 |
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
|
486 |
errn += verify("test_2ci_unaln_overlap: a1", i, a1.get(i), -123); |
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<ARRLEN; i++) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
489 |
a1.lazySet(i, -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_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
|
492 |
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
|
493 |
errn += verify("test_2vi_unaln_overlap: a1", i, a1.get(i), 123); |
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=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
|
496 |
errn += verify("test_2vi_unaln_overlap: a1", i, a1.get(i), 103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
497 |
} |
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 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
500 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
501 |
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
|
502 |
return errn; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
503 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
504 |
// Initialize |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
505 |
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
|
506 |
a1.lazySet(i, -1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
507 |
a2.lazySet(i, -1); |
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 |
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
|
510 |
long start, end; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
511 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
512 |
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
|
513 |
test_ci(a1); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
514 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
515 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
516 |
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
|
517 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
518 |
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
|
519 |
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
|
520 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
521 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
522 |
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
|
523 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
524 |
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
|
525 |
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
|
526 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
527 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
528 |
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
|
529 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
530 |
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
|
531 |
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
|
532 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
533 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
534 |
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
|
535 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
536 |
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
|
537 |
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
|
538 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
539 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
540 |
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
|
541 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
542 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
543 |
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
|
544 |
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
|
545 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
546 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
547 |
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
|
548 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
549 |
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
|
550 |
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
|
551 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
552 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
553 |
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
|
554 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
555 |
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
|
556 |
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
|
557 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
558 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
559 |
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
|
560 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
561 |
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
|
562 |
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
|
563 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
564 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
565 |
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
|
566 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
567 |
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
|
568 |
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
|
569 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
570 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
571 |
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
|
572 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
573 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
574 |
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
|
575 |
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
|
576 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
577 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
578 |
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
|
579 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
580 |
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
|
581 |
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
|
582 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
583 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
584 |
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
|
585 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
586 |
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
|
587 |
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
|
588 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
589 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
590 |
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
|
591 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
592 |
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
|
593 |
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
|
594 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
595 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
596 |
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
|
597 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
598 |
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
|
599 |
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
|
600 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
601 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
602 |
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
|
603 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
604 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
605 |
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
|
606 |
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
|
607 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
608 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
609 |
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
|
610 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
611 |
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
|
612 |
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
|
613 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
614 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
615 |
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
|
616 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
617 |
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
|
618 |
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
|
619 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
620 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
621 |
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
|
622 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
623 |
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
|
624 |
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
|
625 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
626 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
627 |
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
|
628 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
629 |
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
|
630 |
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
|
631 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
632 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
633 |
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
|
634 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
635 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
636 |
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
|
637 |
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
|
638 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
639 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
640 |
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
|
641 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
642 |
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
|
643 |
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
|
644 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
645 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
646 |
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
|
647 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
648 |
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
|
649 |
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
|
650 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
651 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
652 |
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
|
653 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
654 |
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
|
655 |
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
|
656 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
657 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
658 |
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
|
659 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
660 |
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
|
661 |
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
|
662 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
663 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
664 |
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
|
665 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
666 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
667 |
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
|
668 |
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
|
669 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
670 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
671 |
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
|
672 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
673 |
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
|
674 |
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
|
675 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
676 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
677 |
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
|
678 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
679 |
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
|
680 |
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
|
681 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
682 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
683 |
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
|
684 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
685 |
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
|
686 |
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
|
687 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
688 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
689 |
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
|
690 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
691 |
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
|
692 |
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
|
693 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
694 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
695 |
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
|
696 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
697 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
698 |
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
|
699 |
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
|
700 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
701 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
702 |
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
|
703 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
704 |
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
|
705 |
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
|
706 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
707 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
708 |
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
|
709 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
710 |
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
|
711 |
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
|
712 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
713 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
714 |
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
|
715 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
716 |
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
|
717 |
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
|
718 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
719 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
720 |
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
|
721 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
722 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
723 |
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
|
724 |
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
|
725 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
726 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
727 |
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
|
728 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
729 |
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
|
730 |
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
|
731 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
732 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
733 |
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
|
734 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
735 |
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
|
736 |
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
|
737 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
738 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
739 |
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
|
740 |
start = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
741 |
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
|
742 |
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
|
743 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
744 |
end = System.currentTimeMillis(); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
745 |
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
|
746 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
747 |
return errn; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
748 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
749 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
750 |
static void test_ci(AtomicIntegerArray a) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
751 |
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
|
752 |
a.lazySet(i, -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
753 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
754 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
755 |
static void test_vi(AtomicIntegerArray 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
|
756 |
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
|
757 |
a.lazySet(i, b); |
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 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
760 |
static void test_cp(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
761 |
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
|
762 |
a.lazySet(i, b.get(i)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
763 |
} |
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 |
static void test_2ci(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
766 |
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
|
767 |
a.lazySet(i, -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
768 |
b.lazySet(i, -103); |
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 |
static void test_2vi(AtomicIntegerArray a, AtomicIntegerArray 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
|
772 |
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
|
773 |
a.lazySet(i, c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
774 |
b.lazySet(i, d); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
775 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
776 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
777 |
static void test_ci_neg(AtomicIntegerArray a, int old) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
778 |
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
|
779 |
a.lazySet(i,-123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
780 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
781 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
782 |
static void test_vi_neg(AtomicIntegerArray 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
|
783 |
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
|
784 |
a.lazySet(i, b); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
785 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
786 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
787 |
static void test_cp_neg(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
788 |
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
|
789 |
a.lazySet(i, b.get(i)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
790 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
791 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
792 |
static void test_2ci_neg(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
793 |
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
|
794 |
a.lazySet(i, -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
795 |
b.lazySet(i, -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
796 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
797 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
798 |
static void test_2vi_neg(AtomicIntegerArray a, AtomicIntegerArray 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
|
799 |
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
|
800 |
a.lazySet(i, c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
801 |
b.lazySet(i, d); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
802 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
803 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
804 |
static void test_ci_oppos(AtomicIntegerArray a, int old) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
805 |
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
|
806 |
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
|
807 |
a.lazySet((limit-i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
808 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
809 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
810 |
static void test_vi_oppos(AtomicIntegerArray 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
|
811 |
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
|
812 |
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
|
813 |
a.lazySet((limit-i), b); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
814 |
} |
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 |
static void test_cp_oppos(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
817 |
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
|
818 |
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
|
819 |
a.lazySet(i, b.get(limit-i)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
820 |
} |
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 |
static void test_2ci_oppos(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
823 |
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
|
824 |
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
|
825 |
a.lazySet((limit-i), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
826 |
b.lazySet(i, -103); |
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_2vi_oppos(AtomicIntegerArray a, AtomicIntegerArray 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
|
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 = 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
|
832 |
a.lazySet(i, c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
833 |
b.lazySet((limit-i), d); |
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 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
836 |
static void test_ci_off(AtomicIntegerArray a, int old) { |
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 = 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
|
838 |
a.lazySet((i+OFFSET), -123); |
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_vi_off(AtomicIntegerArray 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
|
842 |
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
|
843 |
a.lazySet((i+OFFSET), b); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
844 |
} |
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 |
static void test_cp_off(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
847 |
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
|
848 |
a.lazySet((i+OFFSET), b.get(i+OFFSET)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
849 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
850 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
851 |
static void test_2ci_off(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
852 |
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
|
853 |
a.lazySet((i+OFFSET), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
854 |
b.lazySet((i+OFFSET), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
855 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
856 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
857 |
static void test_2vi_off(AtomicIntegerArray a, AtomicIntegerArray 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
|
858 |
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
|
859 |
a.lazySet((i+OFFSET), c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
860 |
b.lazySet((i+OFFSET), d); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
861 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
862 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
863 |
static void test_ci_inv(AtomicIntegerArray 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
|
864 |
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
|
865 |
a.lazySet((i+k),-123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
866 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
867 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
868 |
static void test_vi_inv(AtomicIntegerArray 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
|
869 |
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
|
870 |
a.lazySet((i+k), b); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
871 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
872 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
873 |
static void test_cp_inv(AtomicIntegerArray a, AtomicIntegerArray b, int k) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
874 |
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
|
875 |
a.lazySet((i+k), b.get(i+k)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
876 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
877 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
878 |
static void test_2ci_inv(AtomicIntegerArray a, AtomicIntegerArray b, int k) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
879 |
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
|
880 |
a.lazySet((i+k), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
881 |
b.lazySet((i+k), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
882 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
883 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
884 |
static void test_2vi_inv(AtomicIntegerArray a, AtomicIntegerArray 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
|
885 |
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
|
886 |
a.lazySet((i+k), c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
887 |
b.lazySet((i+k), d); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
888 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
889 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
890 |
static void test_ci_scl(AtomicIntegerArray a, int old) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
891 |
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
|
892 |
a.lazySet((i*SCALE), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
893 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
894 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
895 |
static void test_vi_scl(AtomicIntegerArray 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
|
896 |
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
|
897 |
a.lazySet((i*SCALE), b); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
898 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
899 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
900 |
static void test_cp_scl(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
901 |
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
|
902 |
a.lazySet((i*SCALE), b.get(i*SCALE)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
903 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
904 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
905 |
static void test_2ci_scl(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
906 |
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
|
907 |
a.lazySet((i*SCALE), -123); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
908 |
b.lazySet((i*SCALE), -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
909 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
910 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
911 |
static void test_2vi_scl(AtomicIntegerArray a, AtomicIntegerArray 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
|
912 |
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
|
913 |
a.lazySet((i*SCALE), c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
914 |
b.lazySet((i*SCALE), d); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
915 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
916 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
917 |
static void test_cp_alndst(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
918 |
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
|
919 |
a.lazySet((i+ALIGN_OFF), b.get(i)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
920 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
921 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
922 |
static void test_cp_alnsrc(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
923 |
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
|
924 |
a.lazySet(i, b.get(i+ALIGN_OFF)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
925 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
926 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
927 |
static void test_2ci_aln(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
928 |
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
|
929 |
a.lazySet((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
|
930 |
b.lazySet(i, -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
931 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
932 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
933 |
static void test_2vi_aln(AtomicIntegerArray a, AtomicIntegerArray 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
|
934 |
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
|
935 |
a.lazySet(i, c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
936 |
b.lazySet((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
|
937 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
938 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
939 |
static void test_cp_unalndst(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
940 |
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
|
941 |
a.lazySet((i+UNALIGN_OFF), b.get(i)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
942 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
943 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
944 |
static void test_cp_unalnsrc(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
945 |
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
|
946 |
a.lazySet(i, b.get(i+UNALIGN_OFF)); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
947 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
948 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
949 |
static void test_2ci_unaln(AtomicIntegerArray a, AtomicIntegerArray b) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
950 |
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
|
951 |
a.lazySet((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
|
952 |
b.lazySet(i, -103); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
953 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
954 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
955 |
static void test_2vi_unaln(AtomicIntegerArray a, AtomicIntegerArray 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
|
956 |
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
|
957 |
a.lazySet(i, c); |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
958 |
b.lazySet((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
|
959 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
960 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
961 |
|
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
962 |
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
|
963 |
if (elem != val) { |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
964 |
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
|
965 |
return 1; |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
966 |
} |
c54cbfb4b37f
8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
kvn
parents:
diff
changeset
|
967 |
return 0; |
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 |
} |