Mercurial > hg > truffle
annotate test/compiler/6340864/TestLongVect.java @ 7228:57e6f9162c43
OS-specific identity hashcode bugfix
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Fri, 14 Dec 2012 13:26:19 +0100 |
parents | b2c669fd8114 |
children |
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 TestLongVect |
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 TestLongVect { |
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 long ADD_INIT = Long.MAX_VALUE-500; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
37 private static final long BIT_MASK = 0xEC80F731EC80F731L; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
38 private static final int VALUE = 31; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
39 private static final int SHIFT = 64; |
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 Long 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 long[] a0 = new long[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
53 long[] a1 = new long[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
54 long[] a2 = new long[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
55 long[] a3 = new long[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
56 long[] a4 = new long[ARRLEN]; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
57 // Initialize |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
58 long gold_sum = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
59 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
60 long val = (long)(ADD_INIT+i); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
61 gold_sum += val; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
62 a1[i] = val; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
63 a2[i] = (long)VALUE; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
64 a3[i] = (long)-VALUE; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
65 a4[i] = (long)BIT_MASK; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
66 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
67 System.out.println("Warmup"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
68 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
69 test_sum(a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
70 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
71 test_addv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
72 test_adda(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
73 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
74 test_subv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
75 test_suba(a0, a1, a2); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
76 |
6614
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, (long)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, (long)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, (long)-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, (long)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
88 test_diva(a0, a1, a3); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
89 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
90 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
91 test_andv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
92 test_anda(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
93 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
94 test_orv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
95 test_ora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
96 test_xorc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
97 test_xorv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
98 test_xora(a0, a1, a4); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
99 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
100 test_sllc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
101 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
102 test_srlc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
103 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
104 test_srac(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
105 test_srav(a0, a1, VALUE); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
106 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
107 test_sllc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
108 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
109 test_srlc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
110 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
111 test_srac_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
112 test_srav(a0, a1, -VALUE); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
113 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
114 test_sllc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
115 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
116 test_srlc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
117 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
118 test_srac_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
119 test_srav(a0, a1, SHIFT); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
120 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
121 test_sllc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
122 test_sllv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
123 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
124 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
125 test_srac_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
126 test_srav(a0, a1, -SHIFT); |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
127 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
128 test_sllc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
129 test_sllv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
130 test_srlc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
131 test_srlv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
132 test_srac_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
133 test_srav_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
134 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
135 test_sllc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
136 test_sllv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
137 test_srlc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
138 test_srlv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
139 test_srac_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
140 test_srav_and(a0, a1, BIT_MASK); |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
141 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
142 // Test and verify results |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
143 System.out.println("Verification"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
144 int errn = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
145 { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
146 long sum = test_sum(a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
147 if (sum != gold_sum) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
148 System.err.println("test_sum: " + sum + " != " + gold_sum); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
149 errn++; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
150 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
151 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
152 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
153 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
154 errn += verify("test_addc: ", i, a0[i], (long)((long)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
155 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
156 test_addv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
157 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
158 errn += verify("test_addv: ", i, a0[i], (long)((long)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
159 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
160 test_adda(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
161 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
162 errn += verify("test_adda: ", i, a0[i], (long)((long)(ADD_INIT+i)+VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
163 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
164 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
165 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
166 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
167 errn += verify("test_subc: ", i, a0[i], (long)((long)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
168 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
169 test_subv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
170 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
171 errn += verify("test_subv: ", i, a0[i], (long)((long)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
172 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
173 test_suba(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
174 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
175 errn += verify("test_suba: ", i, a0[i], (long)((long)(ADD_INIT+i)-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
176 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
177 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
178 test_mulc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
179 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
180 errn += verify("test_mulc: ", i, a0[i], (long)((long)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
181 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
182 test_mulv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
183 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
184 errn += verify("test_mulv: ", i, a0[i], (long)((long)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
185 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
186 test_mula(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
187 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
188 errn += verify("test_mula: ", i, a0[i], (long)((long)(ADD_INIT+i)*VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
189 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
190 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
191 test_divc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
192 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
193 errn += verify("test_divc: ", i, a0[i], (long)((long)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
194 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
195 test_divv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
196 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
197 errn += verify("test_divv: ", i, a0[i], (long)((long)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
198 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
199 test_diva(a0, a1, a2); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
200 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
201 errn += verify("test_diva: ", i, a0[i], (long)((long)(ADD_INIT+i)/VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
202 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
203 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
204 test_mulc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
205 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
206 errn += verify("test_mulc_n: ", i, a0[i], (long)((long)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
207 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
208 test_mulv(a0, a1, (long)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
209 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
210 errn += verify("test_mulv_n: ", i, a0[i], (long)((long)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
211 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
212 test_mula(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
213 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
214 errn += verify("test_mula_n: ", i, a0[i], (long)((long)(ADD_INIT+i)*(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
215 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
216 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
217 test_divc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
218 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
219 errn += verify("test_divc_n: ", i, a0[i], (long)((long)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
220 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
221 test_divv(a0, a1, (long)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
222 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
223 errn += verify("test_divv_n: ", i, a0[i], (long)((long)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
224 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
225 test_diva(a0, a1, a3); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
226 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
227 errn += verify("test_diva_n: ", i, a0[i], (long)((long)(ADD_INIT+i)/(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
228 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
229 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
230 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
231 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
232 errn += verify("test_andc: ", i, a0[i], (long)((long)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
233 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
234 test_andv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
235 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
236 errn += verify("test_andv: ", i, a0[i], (long)((long)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
237 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
238 test_anda(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
239 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
240 errn += verify("test_anda: ", i, a0[i], (long)((long)(ADD_INIT+i)&BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
241 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
242 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
243 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
244 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
245 errn += verify("test_orc: ", i, a0[i], (long)((long)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
246 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
247 test_orv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
248 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
249 errn += verify("test_orv: ", i, a0[i], (long)((long)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
250 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
251 test_ora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
252 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
253 errn += verify("test_ora: ", i, a0[i], (long)((long)(ADD_INIT+i)|BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
254 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
255 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
256 test_xorc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
257 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
258 errn += verify("test_xorc: ", i, a0[i], (long)((long)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
259 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
260 test_xorv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
261 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
262 errn += verify("test_xorv: ", i, a0[i], (long)((long)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
263 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
264 test_xora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
265 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
266 errn += verify("test_xora: ", i, a0[i], (long)((long)(ADD_INIT+i)^BIT_MASK)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
267 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
268 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
269 test_sllc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
270 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
271 errn += verify("test_sllc: ", i, a0[i], (long)((long)(ADD_INIT+i)<<VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
272 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
273 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
274 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
275 errn += verify("test_sllv: ", i, a0[i], (long)((long)(ADD_INIT+i)<<VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
276 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
277 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
278 test_srlc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
279 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
280 errn += verify("test_srlc: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
281 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
282 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
283 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
284 errn += verify("test_srlv: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
285 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
286 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
287 test_srac(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
288 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
289 errn += verify("test_srac: ", i, a0[i], (long)((long)(ADD_INIT+i)>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
290 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
291 test_srav(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
292 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
293 errn += verify("test_srav: ", i, a0[i], (long)((long)(ADD_INIT+i)>>VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
294 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
295 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
296 test_sllc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
297 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
298 errn += verify("test_sllc_n: ", i, a0[i], (long)((long)(ADD_INIT+i)<<(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
299 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
300 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
301 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
302 errn += verify("test_sllv_n: ", i, a0[i], (long)((long)(ADD_INIT+i)<<(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
303 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
304 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
305 test_srlc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
306 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
307 errn += verify("test_srlc_n: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
308 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
309 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
310 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
311 errn += verify("test_srlv_n: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
312 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
313 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
314 test_srac_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
315 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
316 errn += verify("test_srac_n: ", i, a0[i], (long)((long)(ADD_INIT+i)>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
317 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
318 test_srav(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
319 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
320 errn += verify("test_srav_n: ", i, a0[i], (long)((long)(ADD_INIT+i)>>(-VALUE))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
321 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
322 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
323 test_sllc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
324 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
325 errn += verify("test_sllc_o: ", i, a0[i], (long)((long)(ADD_INIT+i)<<SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
326 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
327 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
328 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
329 errn += verify("test_sllv_o: ", i, a0[i], (long)((long)(ADD_INIT+i)<<SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
330 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
331 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
332 test_srlc_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
333 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
334 errn += verify("test_srlc_o: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
335 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
336 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
337 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
338 errn += verify("test_srlv_o: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
339 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
340 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
341 test_srac_o(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
342 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
343 errn += verify("test_srac_o: ", i, a0[i], (long)((long)(ADD_INIT+i)>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
344 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
345 test_srav(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
346 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
347 errn += verify("test_srav_o: ", i, a0[i], (long)((long)(ADD_INIT+i)>>SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
348 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
349 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
350 test_sllc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
351 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
352 errn += verify("test_sllc_on: ", i, a0[i], (long)((long)(ADD_INIT+i)<<(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
353 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
354 test_sllv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
355 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
356 errn += verify("test_sllv_on: ", i, a0[i], (long)((long)(ADD_INIT+i)<<(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
357 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
358 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
359 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
360 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
361 errn += verify("test_srlc_on: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
362 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
363 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
364 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
365 errn += verify("test_srlv_on: ", i, a0[i], (long)((long)(ADD_INIT+i)>>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
366 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
367 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
368 test_srac_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
369 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
370 errn += verify("test_srac_on: ", i, a0[i], (long)((long)(ADD_INIT+i)>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
371 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
372 test_srav(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
373 for (int i=0; i<ARRLEN; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
374 errn += verify("test_srav_on: ", i, a0[i], (long)((long)(ADD_INIT+i)>>(-SHIFT))); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
375 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
376 |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
377 test_sllc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
378 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
379 errn += verify("test_sllc_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)<<VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
380 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
381 test_sllv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
382 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
383 errn += verify("test_sllv_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)<<VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
384 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
385 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
386 test_srlc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
387 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
388 errn += verify("test_srlc_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)>>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
389 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
390 test_srlv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
391 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
392 errn += verify("test_srlv_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)>>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
393 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
394 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
395 test_srac_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
396 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
397 errn += verify("test_srac_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
398 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
399 test_srav_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
400 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
401 errn += verify("test_srav_add: ", i, a0[i], (long)(((long)(ADD_INIT+i) + ADD_INIT)>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
402 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
403 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
404 test_sllc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
405 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
406 errn += verify("test_sllc_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)<<VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
407 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
408 test_sllv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
409 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
410 errn += verify("test_sllv_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)<<VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
411 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
412 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
413 test_srlc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
414 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
415 errn += verify("test_srlc_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)>>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
416 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
417 test_srlv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
418 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
419 errn += verify("test_srlv_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)>>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
420 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
421 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
422 test_srac_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
423 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
424 errn += verify("test_srac_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
425 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
426 test_srav_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
427 for (int i=0; i<ARRLEN; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
428 errn += verify("test_srav_and: ", i, a0[i], (long)(((long)(ADD_INIT+i) & BIT_MASK)>>VALUE)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
429 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
430 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
431 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
432 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
433 if (errn > 0) |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
434 return errn; |
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 System.out.println("Time"); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
437 long start, end; |
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_sum(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_sum: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
445 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
446 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
447 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
448 test_addc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
449 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
450 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
451 System.out.println("test_addc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
452 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
453 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
454 test_addv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
455 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
456 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
457 System.out.println("test_addv: " + (end - start)); |
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_adda(a0, a1, a2); |
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_adda: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
464 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
465 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
466 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
467 test_subc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
468 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
469 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
470 System.out.println("test_subc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
471 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
472 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
473 test_subv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
474 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
475 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
476 System.out.println("test_subv: " + (end - start)); |
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_suba(a0, a1, a2); |
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_suba: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
483 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
484 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
485 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
486 test_mulc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
487 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
488 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
489 System.out.println("test_mulc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
490 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
491 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
492 test_mulv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
493 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
494 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
495 System.out.println("test_mulv: " + (end - start)); |
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_mula(a0, a1, a2); |
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_mula: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
502 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
503 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
504 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
505 test_divc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
506 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
507 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
508 System.out.println("test_divc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
509 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
510 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
511 test_divv(a0, a1, (long)VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
512 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
513 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
514 System.out.println("test_divv: " + (end - start)); |
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_diva(a0, a1, a2); |
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_diva: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
521 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
522 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
523 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
524 test_mulc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
525 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
526 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
527 System.out.println("test_mulc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
528 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
529 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
530 test_mulv(a0, a1, (long)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
531 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
532 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
533 System.out.println("test_mulv_n: " + (end - start)); |
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_mula(a0, a1, a3); |
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_mula_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
540 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
541 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
542 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
543 test_divc_n(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
544 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
545 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
546 System.out.println("test_divc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
547 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
548 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
549 test_divv(a0, a1, (long)-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
550 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
551 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
552 System.out.println("test_divv_n: " + (end - start)); |
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_diva(a0, a1, a3); |
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_diva_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
559 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
560 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
561 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
562 test_andc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
563 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
564 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
565 System.out.println("test_andc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
566 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
567 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
568 test_andv(a0, a1, (long)BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
569 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
570 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
571 System.out.println("test_andv: " + (end - start)); |
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_anda(a0, a1, a4); |
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_anda: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
578 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
579 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
580 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
581 test_orc(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
582 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
583 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
584 System.out.println("test_orc: " + (end - start)); |
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_orv(a0, a1, (long)BIT_MASK); |
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_orv: " + (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_ora(a0, a1, a4); |
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_ora: " + (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_xorc(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_xorc: " + (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_xorv(a0, a1, (long)BIT_MASK); |
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_xorv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
610 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
611 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
612 test_xora(a0, a1, a4); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
613 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
614 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
615 System.out.println("test_xora: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
616 |
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_sllc(a0, a1); |
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_sllc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
623 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
624 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
625 test_sllv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
626 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
627 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
628 System.out.println("test_sllv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
629 |
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_srlc(a0, a1); |
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_srlc: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
636 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
637 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
638 test_srlv(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
639 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
640 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
641 System.out.println("test_srlv: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
642 |
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_srac(a0, a1); |
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_srac: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
649 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
650 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
651 test_srav(a0, a1, VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
652 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
653 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
654 System.out.println("test_srav: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
655 |
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_sllc_n(a0, a1); |
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_sllc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
662 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
663 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
664 test_sllv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
665 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
666 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
667 System.out.println("test_sllv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
668 |
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_srlc_n(a0, a1); |
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_srlc_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
675 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
676 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
677 test_srlv(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
678 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
679 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
680 System.out.println("test_srlv_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
681 |
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_srac_n(a0, a1); |
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_srac_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
688 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
689 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
690 test_srav(a0, a1, -VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
691 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
692 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
693 System.out.println("test_srav_n: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
694 |
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_sllc_o(a0, a1); |
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_sllc_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
701 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
702 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
703 test_sllv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
704 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
705 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
706 System.out.println("test_sllv_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
707 |
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_srlc_o(a0, a1); |
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_srlc_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
714 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
715 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
716 test_srlv(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
717 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
718 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
719 System.out.println("test_srlv_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
720 |
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_srac_o(a0, a1); |
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_srac_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
727 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
728 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
729 test_srav(a0, a1, SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
730 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
731 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
732 System.out.println("test_srav_o: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
733 |
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_sllc_on(a0, a1); |
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_sllc_on: " + (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_sllv(a0, a1, -SHIFT); |
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_sllv_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
746 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
747 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
748 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
749 test_srlc_on(a0, a1); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
750 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
751 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
752 System.out.println("test_srlc_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
753 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
754 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
755 test_srlv(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
756 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
757 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
758 System.out.println("test_srlv_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
759 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
760 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
761 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
762 test_srac_on(a0, a1); |
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 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
765 System.out.println("test_srac_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
766 start = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
767 for (int i=0; i<ITERS; i++) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
768 test_srav(a0, a1, -SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
769 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
770 end = System.currentTimeMillis(); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
771 System.out.println("test_srav_on: " + (end - start)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
772 |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
773 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
774 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
775 test_sllc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
776 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
777 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
778 System.out.println("test_sllc_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
779 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
780 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
781 test_sllv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
782 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
783 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
784 System.out.println("test_sllv_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
785 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
786 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
787 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
788 test_srlc_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
789 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
790 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
791 System.out.println("test_srlc_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
792 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
793 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
794 test_srlv_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
795 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
796 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
797 System.out.println("test_srlv_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
798 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
799 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
800 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
801 test_srac_add(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
802 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
803 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
804 System.out.println("test_srac_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
805 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
806 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
807 test_srav_add(a0, a1, ADD_INIT); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
808 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
809 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
810 System.out.println("test_srav_add: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
811 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
812 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
813 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
814 test_sllc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
815 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
816 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
817 System.out.println("test_sllc_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
818 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
819 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
820 test_sllv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
821 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
822 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
823 System.out.println("test_sllv_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
824 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
825 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
826 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
827 test_srlc_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
828 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
829 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
830 System.out.println("test_srlc_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
831 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
832 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
833 test_srlv_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
834 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
835 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
836 System.out.println("test_srlv_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
837 |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
838 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
839 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
840 test_srac_and(a0, a1); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
841 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
842 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
843 System.out.println("test_srac_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
844 start = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
845 for (int i=0; i<ITERS; i++) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
846 test_srav_and(a0, a1, BIT_MASK); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
847 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
848 end = System.currentTimeMillis(); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
849 System.out.println("test_srav_and: " + (end - start)); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
850 |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
851 return errn; |
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 long test_sum(long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
855 long sum = 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
856 for (int i = 0; i < a1.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
857 sum += a1[i]; |
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 return sum; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
860 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
861 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
862 static void test_addc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
863 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
864 a0[i] = (long)(a1[i]+VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
865 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
866 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
867 static void test_addv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
868 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
869 a0[i] = (long)(a1[i]+b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
870 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
871 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
872 static void test_adda(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
873 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
874 a0[i] = (long)(a1[i]+a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
875 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
876 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
877 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
878 static void test_subc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
879 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
880 a0[i] = (long)(a1[i]-VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
881 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
882 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
883 static void test_subv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
884 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
885 a0[i] = (long)(a1[i]-b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
886 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
887 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
888 static void test_suba(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
889 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
890 a0[i] = (long)(a1[i]-a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
891 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
892 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
893 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
894 static void test_mulc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
895 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
896 a0[i] = (long)(a1[i]*VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
897 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
898 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
899 static void test_mulc_n(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
900 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
901 a0[i] = (long)(a1[i]*(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
902 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
903 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
904 static void test_mulv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
905 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
906 a0[i] = (long)(a1[i]*b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
907 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
908 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
909 static void test_mula(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
910 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
911 a0[i] = (long)(a1[i]*a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
912 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
913 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
914 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
915 static void test_divc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
916 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
917 a0[i] = (long)(a1[i]/VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
918 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
919 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
920 static void test_divc_n(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
921 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
922 a0[i] = (long)(a1[i]/(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
923 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
924 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
925 static void test_divv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
926 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
927 a0[i] = (long)(a1[i]/b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
928 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
929 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
930 static void test_diva(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
931 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
932 a0[i] = (long)(a1[i]/a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
933 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
934 } |
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 static void test_andc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
937 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
938 a0[i] = (long)(a1[i]&BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
939 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
940 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
941 static void test_andv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
942 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
943 a0[i] = (long)(a1[i]&b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
944 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
945 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
946 static void test_anda(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
947 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
948 a0[i] = (long)(a1[i]&a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
949 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
950 } |
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 static void test_orc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
953 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
954 a0[i] = (long)(a1[i]|BIT_MASK); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
955 } |
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 static void test_orv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
958 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
959 a0[i] = (long)(a1[i]|b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
960 } |
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 static void test_ora(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
963 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
964 a0[i] = (long)(a1[i]|a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
965 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
966 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
967 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
968 static void test_xorc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
969 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
970 a0[i] = (long)(a1[i]^BIT_MASK); |
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 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
973 static void test_xorv(long[] a0, long[] a1, long b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
974 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
975 a0[i] = (long)(a1[i]^b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
976 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
977 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
978 static void test_xora(long[] a0, long[] a1, long[] a2) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
979 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
980 a0[i] = (long)(a1[i]^a2[i]); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
981 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
982 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
983 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
984 static void test_sllc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
985 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
986 a0[i] = (long)(a1[i]<<VALUE); |
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 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
989 static void test_sllc_n(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
990 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
991 a0[i] = (long)(a1[i]<<(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
992 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
993 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
994 static void test_sllc_o(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
995 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
996 a0[i] = (long)(a1[i]<<SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
997 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
998 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
999 static void test_sllc_on(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1000 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1001 a0[i] = (long)(a1[i]<<(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1002 } |
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 static void test_sllv(long[] a0, long[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1005 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1006 a0[i] = (long)(a1[i]<<b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1007 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1008 } |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1009 static void test_sllc_add(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1010 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1011 a0[i] = (long)((a1[i] + ADD_INIT)<<VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1012 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1013 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1014 static void test_sllv_add(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1015 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1016 a0[i] = (long)((a1[i] + b)<<VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1017 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1018 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1019 static void test_sllc_and(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1020 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1021 a0[i] = (long)((a1[i] & BIT_MASK)<<VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1022 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1023 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1024 static void test_sllv_and(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1025 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1026 a0[i] = (long)((a1[i] & b)<<VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1027 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1028 } |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1029 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1030 static void test_srlc(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1031 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1032 a0[i] = (long)(a1[i]>>>VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1033 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1034 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1035 static void test_srlc_n(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1036 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1037 a0[i] = (long)(a1[i]>>>(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1038 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1039 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1040 static void test_srlc_o(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1041 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1042 a0[i] = (long)(a1[i]>>>SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1043 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1044 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1045 static void test_srlc_on(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1046 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1047 a0[i] = (long)(a1[i]>>>(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1048 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1049 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1050 static void test_srlv(long[] a0, long[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1051 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1052 a0[i] = (long)(a1[i]>>>b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1053 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1054 } |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1055 static void test_srlc_add(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1056 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1057 a0[i] = (long)((a1[i] + ADD_INIT)>>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1058 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1059 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1060 static void test_srlv_add(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1061 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1062 a0[i] = (long)((a1[i] + b)>>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1063 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1064 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1065 static void test_srlc_and(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1066 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1067 a0[i] = (long)((a1[i] & BIT_MASK)>>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1068 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1069 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1070 static void test_srlv_and(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1071 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1072 a0[i] = (long)((a1[i] & b)>>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1073 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1074 } |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1075 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1076 static void test_srac(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1077 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1078 a0[i] = (long)(a1[i]>>VALUE); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1079 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1080 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1081 static void test_srac_n(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1082 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1083 a0[i] = (long)(a1[i]>>(-VALUE)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1084 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1085 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1086 static void test_srac_o(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1087 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1088 a0[i] = (long)(a1[i]>>SHIFT); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1089 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1090 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1091 static void test_srac_on(long[] a0, long[] a1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1092 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1093 a0[i] = (long)(a1[i]>>(-SHIFT)); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1094 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1095 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1096 static void test_srav(long[] a0, long[] a1, int b) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1097 for (int i = 0; i < a0.length; i+=1) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1098 a0[i] = (long)(a1[i]>>b); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1099 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1100 } |
6893
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1101 static void test_srac_add(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1102 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1103 a0[i] = (long)((a1[i] + ADD_INIT)>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1104 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1105 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1106 static void test_srav_add(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1107 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1108 a0[i] = (long)((a1[i] + b)>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1109 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1110 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1111 static void test_srac_and(long[] a0, long[] a1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1112 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1113 a0[i] = (long)((a1[i] & BIT_MASK)>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1114 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1115 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1116 static void test_srav_and(long[] a0, long[] a1, long b) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1117 for (int i = 0; i < a0.length; i+=1) { |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1118 a0[i] = (long)((a1[i] & b)>>VALUE); |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1119 } |
b2c669fd8114
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
6614
diff
changeset
|
1120 } |
6614
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1121 |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1122 static int verify(String text, int i, long elem, long val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1123 if (elem != val) { |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1124 System.err.println(text + "[" + i + "] = " + elem + " != " + val); |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1125 return 1; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1126 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1127 return 0; |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1128 } |
006050192a5a
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff
changeset
|
1129 } |