Mercurial > hg > truffle
annotate test/compiler/6340864/TestIntVect.java @ 6752:9646b7ff4d14
7198130: G1: PrintReferenceGC output comes out of order
Summary: Move the first part of the GC logging, including timestamp, to the start of the GC
Reviewed-by: johnc, jwilhelm
author | brutisso |
---|---|
date | Mon, 17 Sep 2012 10:33:13 +0200 |
parents | 006050192a5a |
children | b2c669fd8114 |
rev | line source |
---|---|
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1 /* |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
4 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
8 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
13 * accompanied this code). |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
14 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
18 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
21 * questions. |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
22 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
23 */ |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
24 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
25 /** |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
26 * @test |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
27 * @bug 6340864 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
28 * @summary Implement vectorization optimizations in hotspot-server |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
29 * |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
30 * @run main/othervm/timeout=400 -Xbatch -Xmx64m TestIntVect |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
31 */ |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
32 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
33 public class TestIntVect { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
34 private static final int ARRLEN = 997; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
35 private static final int ITERS = 11000; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
36 private static final int ADD_INIT = Integer.MAX_VALUE-500; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
37 private static final int BIT_MASK = 0xEC80F731; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
38 private static final int VALUE = 15; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
39 private static final int SHIFT = 32; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
40 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
41 public static void main(String args[]) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
42 System.out.println("Testing Integer vectors"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
43 int errn = test(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
44 if (errn > 0) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
45 System.err.println("FAILED: " + errn + " errors"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
46 System.exit(97); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
47 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
48 System.out.println("PASSED"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
49 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
50 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
51 static int test() { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
52 int[] a0 = new int[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
53 int[] a1 = new int[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
54 int[] a2 = new int[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
55 int[] a3 = new int[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
56 int[] a4 = new int[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
57 long[] p2 = new long[ARRLEN/2]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
58 // Initialize |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
59 int gold_sum = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
60 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
61 int val = (int)(ADD_INIT+i); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
62 gold_sum += val; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
63 a1[i] = val; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
64 a2[i] = (int)VALUE; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
65 a3[i] = (int)-VALUE; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
66 a4[i] = (int)BIT_MASK; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
67 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
68 System.out.println("Warmup"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
69 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
70 test_sum(a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
71 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
72 test_addv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
73 test_adda(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
74 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
75 test_subv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
76 test_suba(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
77 test_mulc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
78 test_mulv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
79 test_mula(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
80 test_divc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
81 test_divv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
82 test_diva(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
83 test_mulc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
84 test_mulv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
85 test_mula(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
86 test_divc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
87 test_divv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
88 test_diva(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
89 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
90 test_andv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
91 test_anda(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
92 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
93 test_orv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
94 test_ora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
95 test_xorc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
96 test_xorv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
97 test_xora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
98 test_sllc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
99 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
100 test_srlc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
101 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
102 test_srac(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
103 test_srav(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
104 test_sllc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
105 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
106 test_srlc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
107 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
108 test_srac_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
109 test_srav(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
110 test_sllc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
111 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
112 test_srlc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
113 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
114 test_srac_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
115 test_srav(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
116 test_sllc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
117 test_sllv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
118 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
119 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
120 test_srac_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
121 test_srav(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
122 test_pack2(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
123 test_unpack2(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
124 test_pack2_swap(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
125 test_unpack2_swap(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
126 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
127 // Test and verify results |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
128 System.out.println("Verification"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
129 int errn = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
130 { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
131 int sum = test_sum(a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
132 if (sum != gold_sum) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
133 System.err.println("test_sum: " + sum + " != " + gold_sum); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
134 errn++; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
135 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
136 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
137 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
138 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
139 errn += verify("test_addc: ", i, a0[i], (int)((int)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
140 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
141 test_addv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
142 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
143 errn += verify("test_addv: ", i, a0[i], (int)((int)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
144 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
145 test_adda(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
146 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
147 errn += verify("test_adda: ", i, a0[i], (int)((int)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
148 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
149 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
150 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
151 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
152 errn += verify("test_subc: ", i, a0[i], (int)((int)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
153 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
154 test_subv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
155 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
156 errn += verify("test_subv: ", i, a0[i], (int)((int)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
157 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
158 test_suba(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
159 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
160 errn += verify("test_suba: ", i, a0[i], (int)((int)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
161 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
162 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
163 test_mulc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
164 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
165 errn += verify("test_mulc: ", i, a0[i], (int)((int)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
166 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
167 test_mulv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
168 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
169 errn += verify("test_mulv: ", i, a0[i], (int)((int)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
170 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
171 test_mula(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
172 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
173 errn += verify("test_mula: ", i, a0[i], (int)((int)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
174 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
175 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
176 test_divc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
177 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
178 errn += verify("test_divc: ", i, a0[i], (int)((int)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
179 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
180 test_divv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
181 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
182 errn += verify("test_divv: ", i, a0[i], (int)((int)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
183 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
184 test_diva(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
185 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
186 errn += verify("test_diva: ", i, a0[i], (int)((int)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
187 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
188 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
189 test_mulc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
190 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
191 errn += verify("test_mulc_n: ", i, a0[i], (int)((int)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
192 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
193 test_mulv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
194 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
195 errn += verify("test_mulv_n: ", i, a0[i], (int)((int)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
196 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
197 test_mula(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
198 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
199 errn += verify("test_mula_n: ", i, a0[i], (int)((int)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
200 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
201 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
202 test_divc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
203 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
204 errn += verify("test_divc_n: ", i, a0[i], (int)((int)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
205 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
206 test_divv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
207 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
208 errn += verify("test_divv_n: ", i, a0[i], (int)((int)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
209 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
210 test_diva(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
211 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
212 errn += verify("test_diva_n: ", i, a0[i], (int)((int)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
213 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
214 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
215 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
216 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
217 errn += verify("test_andc: ", i, a0[i], (int)((int)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
218 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
219 test_andv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
220 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
221 errn += verify("test_andv: ", i, a0[i], (int)((int)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
222 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
223 test_anda(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
224 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
225 errn += verify("test_anda: ", i, a0[i], (int)((int)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
226 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
227 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
228 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
229 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
230 errn += verify("test_orc: ", i, a0[i], (int)((int)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
231 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
232 test_orv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
233 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
234 errn += verify("test_orv: ", i, a0[i], (int)((int)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
235 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
236 test_ora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
237 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
238 errn += verify("test_ora: ", i, a0[i], (int)((int)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
239 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
240 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
241 test_xorc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
242 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
243 errn += verify("test_xorc: ", i, a0[i], (int)((int)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
244 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
245 test_xorv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
246 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
247 errn += verify("test_xorv: ", i, a0[i], (int)((int)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
248 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
249 test_xora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
250 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
251 errn += verify("test_xora: ", i, a0[i], (int)((int)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
252 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
253 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
254 test_sllc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
255 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
256 errn += verify("test_sllc: ", i, a0[i], (int)((int)(ADD_INIT+i)<<VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
257 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
258 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
259 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
260 errn += verify("test_sllv: ", i, a0[i], (int)((int)(ADD_INIT+i)<<VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
261 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
262 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
263 test_srlc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
264 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
265 errn += verify("test_srlc: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
266 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
267 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
268 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
269 errn += verify("test_srlv: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
270 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
271 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
272 test_srac(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
273 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
274 errn += verify("test_srac: ", i, a0[i], (int)((int)(ADD_INIT+i)>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
275 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
276 test_srav(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
277 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
278 errn += verify("test_srav: ", i, a0[i], (int)((int)(ADD_INIT+i)>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
279 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
280 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
281 test_sllc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
282 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
283 errn += verify("test_sllc_n: ", i, a0[i], (int)((int)(ADD_INIT+i)<<(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
284 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
285 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
286 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
287 errn += verify("test_sllv_n: ", i, a0[i], (int)((int)(ADD_INIT+i)<<(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
288 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
289 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
290 test_srlc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
291 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
292 errn += verify("test_srlc_n: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
293 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
294 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
295 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
296 errn += verify("test_srlv_n: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
297 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
298 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
299 test_srac_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
300 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
301 errn += verify("test_srac_n: ", i, a0[i], (int)((int)(ADD_INIT+i)>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
302 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
303 test_srav(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
304 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
305 errn += verify("test_srav_n: ", i, a0[i], (int)((int)(ADD_INIT+i)>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
306 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
307 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
308 test_sllc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
309 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
310 errn += verify("test_sllc_o: ", i, a0[i], (int)((int)(ADD_INIT+i)<<SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
311 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
312 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
313 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
314 errn += verify("test_sllv_o: ", i, a0[i], (int)((int)(ADD_INIT+i)<<SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
315 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
316 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
317 test_srlc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
318 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
319 errn += verify("test_srlc_o: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
320 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
321 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
322 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
323 errn += verify("test_srlv_o: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
324 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
325 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
326 test_srac_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
327 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
328 errn += verify("test_srac_o: ", i, a0[i], (int)((int)(ADD_INIT+i)>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
329 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
330 test_srav(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
331 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
332 errn += verify("test_srav_o: ", i, a0[i], (int)((int)(ADD_INIT+i)>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
333 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
334 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
335 test_sllc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
336 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
337 errn += verify("test_sllc_on: ", i, a0[i], (int)((int)(ADD_INIT+i)<<(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
338 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
339 test_sllv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
340 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
341 errn += verify("test_sllv_on: ", i, a0[i], (int)((int)(ADD_INIT+i)<<(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
342 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
343 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
344 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
345 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
346 errn += verify("test_srlc_on: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
347 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
348 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
349 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
350 errn += verify("test_srlv_on: ", i, a0[i], (int)((int)(ADD_INIT+i)>>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
351 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
352 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
353 test_srac_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
354 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
355 errn += verify("test_srac_on: ", i, a0[i], (int)((int)(ADD_INIT+i)>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
356 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
357 test_srav(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
358 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
359 errn += verify("test_srav_on: ", i, a0[i], (int)((int)(ADD_INIT+i)>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
360 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
361 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
362 test_pack2(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
363 for (int i=0; i<ARRLEN/2; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
364 errn += verify("test_pack2: ", i, p2[i], ((long)(ADD_INIT+2*i) & 0xFFFFFFFFl) | ((long)(ADD_INIT+2*i+1) << 32)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
365 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
366 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
367 a0[i] = -1; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
368 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
369 test_unpack2(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
370 for (int i=0; i<(ARRLEN&(-2)); i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
371 errn += verify("test_unpack2: ", i, a0[i], (ADD_INIT+i)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
372 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
373 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
374 test_pack2_swap(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
375 for (int i=0; i<ARRLEN/2; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
376 errn += verify("test_pack2_swap: ", i, p2[i], ((long)(ADD_INIT+2*i+1) & 0xFFFFFFFFl) | ((long)(ADD_INIT+2*i) << 32)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
377 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
378 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
379 a0[i] = -1; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
380 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
381 test_unpack2_swap(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
382 for (int i=0; i<(ARRLEN&(-2)); i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
383 errn += verify("test_unpack2_swap: ", i, a0[i], (ADD_INIT+i)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
384 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
385 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
386 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
387 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
388 if (errn > 0) |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
389 return errn; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
390 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
391 System.out.println("Time"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
392 long start, end; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
393 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
394 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
395 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
396 test_sum(a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
397 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
398 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
399 System.out.println("test_sum: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
400 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
401 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
402 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
403 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
404 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
405 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
406 System.out.println("test_addc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
407 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
408 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
409 test_addv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
410 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
411 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
412 System.out.println("test_addv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
413 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
414 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
415 test_adda(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
416 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
417 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
418 System.out.println("test_adda: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
419 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
420 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
421 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
422 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
423 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
424 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
425 System.out.println("test_subc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
426 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
427 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
428 test_subv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
429 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
430 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
431 System.out.println("test_subv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
432 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
433 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
434 test_suba(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
435 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
436 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
437 System.out.println("test_suba: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
438 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
439 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
440 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
441 test_mulc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
442 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
443 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
444 System.out.println("test_mulc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
445 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
446 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
447 test_mulv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
448 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
449 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
450 System.out.println("test_mulv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
451 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
452 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
453 test_mula(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
454 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
455 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
456 System.out.println("test_mula: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
457 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
458 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
459 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
460 test_divc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
461 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
462 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
463 System.out.println("test_divc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
464 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
465 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
466 test_divv(a0, a1, (int)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
467 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
468 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
469 System.out.println("test_divv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
470 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
471 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
472 test_diva(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
473 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
474 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
475 System.out.println("test_diva: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
476 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
477 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
478 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
479 test_mulc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
480 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
481 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
482 System.out.println("test_mulc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
483 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
484 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
485 test_mulv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
486 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
487 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
488 System.out.println("test_mulv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
489 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
490 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
491 test_mula(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
492 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
493 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
494 System.out.println("test_mula_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
495 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
496 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
497 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
498 test_divc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
499 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
500 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
501 System.out.println("test_divc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
502 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
503 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
504 test_divv(a0, a1, (int)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
505 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
506 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
507 System.out.println("test_divv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
508 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
509 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
510 test_diva(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
511 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
512 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
513 System.out.println("test_diva_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
514 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
515 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
516 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
517 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
518 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
519 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
520 System.out.println("test_andc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
521 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
522 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
523 test_andv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
524 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
525 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
526 System.out.println("test_andv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
527 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
528 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
529 test_anda(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
530 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
531 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
532 System.out.println("test_anda: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
533 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
534 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
535 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
536 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
537 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
538 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
539 System.out.println("test_orc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
540 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
541 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
542 test_orv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
543 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
544 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
545 System.out.println("test_orv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
546 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
547 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
548 test_ora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
549 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
550 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
551 System.out.println("test_ora: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
552 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
553 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
554 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
555 test_xorc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
556 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
557 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
558 System.out.println("test_xorc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
559 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
560 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
561 test_xorv(a0, a1, (int)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
562 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
563 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
564 System.out.println("test_xorv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
565 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
566 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
567 test_xora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
568 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
569 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
570 System.out.println("test_xora: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
571 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
572 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
573 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
574 test_sllc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
575 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
576 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
577 System.out.println("test_sllc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
578 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
579 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
580 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
581 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
582 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
583 System.out.println("test_sllv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
584 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
585 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
586 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
587 test_srlc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
588 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
589 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
590 System.out.println("test_srlc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
591 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
592 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
593 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
594 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
595 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
596 System.out.println("test_srlv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
597 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
598 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
599 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
600 test_srac(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
601 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
602 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
603 System.out.println("test_srac: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
604 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
605 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
606 test_srav(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
607 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
608 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
609 System.out.println("test_srav: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
610 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
611 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
612 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
613 test_sllc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
614 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
615 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
616 System.out.println("test_sllc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
617 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
618 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
619 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
620 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
621 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
622 System.out.println("test_sllv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
623 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
624 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
625 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
626 test_srlc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
627 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
628 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
629 System.out.println("test_srlc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
630 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
631 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
632 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
633 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
634 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
635 System.out.println("test_srlv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
636 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
637 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
638 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
639 test_srac_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
640 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
641 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
642 System.out.println("test_srac_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
643 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
644 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
645 test_srav(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
646 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
647 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
648 System.out.println("test_srav_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
649 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
650 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
651 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
652 test_sllc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
653 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
654 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
655 System.out.println("test_sllc_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
656 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
657 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
658 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
659 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
660 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
661 System.out.println("test_sllv_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
662 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
663 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
664 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
665 test_srlc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
666 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
667 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
668 System.out.println("test_srlc_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
669 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
670 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
671 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
672 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
673 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
674 System.out.println("test_srlv_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
675 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
676 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
677 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
678 test_srac_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
679 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
680 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
681 System.out.println("test_srac_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
682 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
683 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
684 test_srav(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
685 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
686 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
687 System.out.println("test_srav_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
688 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
689 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
690 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
691 test_sllc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
692 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
693 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
694 System.out.println("test_sllc_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
695 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
696 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
697 test_sllv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
698 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
699 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
700 System.out.println("test_sllv_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
701 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
702 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
703 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
704 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
705 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
706 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
707 System.out.println("test_srlc_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
708 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
709 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
710 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
711 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
712 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
713 System.out.println("test_srlv_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
714 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
715 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
716 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
717 test_srac_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
718 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
719 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
720 System.out.println("test_srac_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
721 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
722 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
723 test_srav(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
724 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
725 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
726 System.out.println("test_srav_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
727 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
728 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
729 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
730 test_pack2(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
731 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
732 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
733 System.out.println("test_pack2: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
734 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
735 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
736 test_unpack2(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
737 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
738 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
739 System.out.println("test_unpack2: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
740 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
741 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
742 test_pack2_swap(p2, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
743 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
744 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
745 System.out.println("test_pack2_swap: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
746 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
747 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
748 test_unpack2_swap(a0, p2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
749 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
750 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
751 System.out.println("test_unpack2_swap: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
752 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
753 return errn; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
754 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
755 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
756 static int test_sum(int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
757 int sum = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
758 for (int i = 0; i < a1.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
759 sum += a1[i]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
760 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
761 return sum; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
762 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
763 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
764 static void test_addc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
765 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
766 a0[i] = (int)(a1[i]+VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
767 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
768 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
769 static void test_addv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
770 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
771 a0[i] = (int)(a1[i]+b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
772 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
773 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
774 static void test_adda(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
775 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
776 a0[i] = (int)(a1[i]+a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
777 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
778 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
779 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
780 static void test_subc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
781 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
782 a0[i] = (int)(a1[i]-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
783 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
784 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
785 static void test_subv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
786 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
787 a0[i] = (int)(a1[i]-b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
788 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
789 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
790 static void test_suba(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
791 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
792 a0[i] = (int)(a1[i]-a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
793 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
794 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
795 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
796 static void test_mulc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
797 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
798 a0[i] = (int)(a1[i]*VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
799 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
800 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
801 static void test_mulc_n(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
802 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
803 a0[i] = (int)(a1[i]*(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
804 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
805 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
806 static void test_mulv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
807 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
808 a0[i] = (int)(a1[i]*b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
809 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
810 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
811 static void test_mula(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
812 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
813 a0[i] = (int)(a1[i]*a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
814 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
815 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
816 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
817 static void test_divc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
818 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
819 a0[i] = (int)(a1[i]/VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
820 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
821 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
822 static void test_divc_n(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
823 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
824 a0[i] = (int)(a1[i]/(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
825 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
826 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
827 static void test_divv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
828 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
829 a0[i] = (int)(a1[i]/b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
830 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
831 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
832 static void test_diva(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
833 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
834 a0[i] = (int)(a1[i]/a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
835 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
836 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
837 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
838 static void test_andc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
839 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
840 a0[i] = (int)(a1[i]&BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
841 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
842 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
843 static void test_andv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
844 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
845 a0[i] = (int)(a1[i]&b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
846 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
847 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
848 static void test_anda(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
849 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
850 a0[i] = (int)(a1[i]&a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
851 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
852 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
853 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
854 static void test_orc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
855 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
856 a0[i] = (int)(a1[i]|BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
857 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
858 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
859 static void test_orv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
860 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
861 a0[i] = (int)(a1[i]|b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
862 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
863 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
864 static void test_ora(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
865 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
866 a0[i] = (int)(a1[i]|a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
867 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
868 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
869 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
870 static void test_xorc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
871 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
872 a0[i] = (int)(a1[i]^BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
873 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
874 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
875 static void test_xorv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
876 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
877 a0[i] = (int)(a1[i]^b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
878 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
879 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
880 static void test_xora(int[] a0, int[] a1, int[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
881 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
882 a0[i] = (int)(a1[i]^a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
883 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
884 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
885 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
886 static void test_sllc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
887 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
888 a0[i] = (int)(a1[i]<<VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
889 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
890 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
891 static void test_sllc_n(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
892 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
893 a0[i] = (int)(a1[i]<<(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
894 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
895 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
896 static void test_sllc_o(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
897 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
898 a0[i] = (int)(a1[i]<<SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
899 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
900 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
901 static void test_sllc_on(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
902 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
903 a0[i] = (int)(a1[i]<<(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
904 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
905 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
906 static void test_sllv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
907 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
908 a0[i] = (int)(a1[i]<<b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
909 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
910 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
911 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
912 static void test_srlc(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
913 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
914 a0[i] = (int)(a1[i]>>>VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
915 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
916 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
917 static void test_srlc_n(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
918 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
919 a0[i] = (int)(a1[i]>>>(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
920 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
921 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
922 static void test_srlc_o(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
923 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
924 a0[i] = (int)(a1[i]>>>SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
925 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
926 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
927 static void test_srlc_on(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
928 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
929 a0[i] = (int)(a1[i]>>>(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
930 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
931 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
932 static void test_srlv(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
933 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
934 a0[i] = (int)(a1[i]>>>b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
935 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
936 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
937 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
938 static void test_srac(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
939 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
940 a0[i] = (int)(a1[i]>>VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
941 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
942 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
943 static void test_srac_n(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
944 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
945 a0[i] = (int)(a1[i]>>(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
946 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
947 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
948 static void test_srac_o(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
949 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
950 a0[i] = (int)(a1[i]>>SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
951 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
952 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
953 static void test_srac_on(int[] a0, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
954 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
955 a0[i] = (int)(a1[i]>>(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
956 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
957 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
958 static void test_srav(int[] a0, int[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
959 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
960 a0[i] = (int)(a1[i]>>b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
961 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
962 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
963 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
964 static void test_pack2(long[] p2, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
965 if (p2.length*2 > a1.length) return; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
966 for (int i = 0; i < p2.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
967 long l0 = (long)a1[i*2+0]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
968 long l1 = (long)a1[i*2+1]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
969 p2[i] = (l1 << 32) | (l0 & 0xFFFFFFFFl); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
970 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
971 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
972 static void test_unpack2(int[] a0, long[] p2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
973 if (p2.length*2 > a0.length) return; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
974 for (int i = 0; i < p2.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
975 long l = p2[i]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
976 a0[i*2+0] = (int)(l & 0xFFFFFFFFl); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
977 a0[i*2+1] = (int)(l >> 32); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
978 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
979 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
980 static void test_pack2_swap(long[] p2, int[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
981 if (p2.length*2 > a1.length) return; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
982 for (int i = 0; i < p2.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
983 long l0 = (long)a1[i*2+0]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
984 long l1 = (long)a1[i*2+1]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
985 p2[i] = (l0 << 32) | (l1 & 0xFFFFFFFFl); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
986 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
987 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
988 static void test_unpack2_swap(int[] a0, long[] p2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
989 if (p2.length*2 > a0.length) return; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
990 for (int i = 0; i < p2.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
991 long l = p2[i]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
992 a0[i*2+0] = (int)(l >> 32); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
993 a0[i*2+1] = (int)(l & 0xFFFFFFFFl); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
994 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
995 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
996 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
997 static int verify(String text, int i, int elem, int val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
998 if (elem != val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
999 System.err.println(text + "[" + i + "] = " + elem + " != " + val); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1000 return 1; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1001 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1002 return 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1003 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1004 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1005 static int verify(String text, int i, long elem, long val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1006 if (elem != val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1007 System.err.println(text + "[" + i + "] = " + Long.toHexString(elem) + " != " + Long.toHexString(val)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1008 return 1; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1009 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1010 return 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1011 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1012 } |