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