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