annotate test/compiler/6340864/TestIntVect.java @ 18408:2c3666f44855

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