annotate test/compiler/6340864/TestByteVect.java @ 6893:b2c669fd8114

8001183: incorrect results of char vectors right shift operaiton Summary: do vector right shift operation for small int types only after loads Reviewed-by: jrose, dlong
author kvn
date Tue, 23 Oct 2012 13:06:37 -0700
parents 006050192a5a
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 TestByteVect
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 TestByteVect {
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;
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
36 private static final int ADD_INIT = 63;
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
37 private static final int BIT_MASK = 0xB7;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
38 private static final int VALUE = 3;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
39 private static final int SHIFT = 8;
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 Byte 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 byte[] a0 = new byte[ARRLEN];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
53 byte[] a1 = new byte[ARRLEN];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
54 byte[] a2 = new byte[ARRLEN];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
55 byte[] a3 = new byte[ARRLEN];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
56 byte[] a4 = new byte[ARRLEN];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
57 short[] p2 = new short[ARRLEN/2];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
58 int[] p4 = new int[ARRLEN/4];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
59 long[] p8 = new long[ARRLEN/8];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
60 // Initialize
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
61 int gold_sum = 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
62 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
63 byte val = (byte)(ADD_INIT+i);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
64 gold_sum += val;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
65 a1[i] = val;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
66 a2[i] = (byte)VALUE;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
67 a3[i] = (byte)-VALUE;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
68 a4[i] = (byte)BIT_MASK;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
69 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
70 System.out.println("Warmup");
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
71 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
72 test_sum(a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
73 test_addc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
74 test_addv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
75 test_adda(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
76 test_subc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
77 test_subv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
78 test_suba(a0, a1, a2);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
79
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
80 test_mulc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
81 test_mulv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
82 test_mula(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
83 test_divc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
84 test_divv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
85 test_diva(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
86 test_mulc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
87 test_mulv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
88 test_mula(a0, a1, a3);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
89 test_divc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
90 test_divv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
91 test_diva(a0, a1, a3);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
92
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
93 test_andc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
94 test_andv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
95 test_anda(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
96 test_orc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
97 test_orv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
98 test_ora(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
99 test_xorc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
100 test_xorv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
101 test_xora(a0, a1, a4);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
102
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
103 test_sllc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
104 test_sllv(a0, a1, VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
105 test_srlc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
106 test_srlv(a0, a1, VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
107 test_srac(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
108 test_srav(a0, a1, VALUE);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
109
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
110 test_sllc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
111 test_sllv(a0, a1, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
112 test_srlc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
113 test_srlv(a0, a1, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
114 test_srac_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
115 test_srav(a0, a1, -VALUE);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
116
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
117 test_sllc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
118 test_sllv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
119 test_srlc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
120 test_srlv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
121 test_srac_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
122 test_srav(a0, a1, SHIFT);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
123
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
124 test_sllc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
125 test_sllv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
126 test_srlc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
127 test_srlv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
128 test_srac_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
129 test_srav(a0, a1, -SHIFT);
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
130
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
131 test_sllc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
132 test_sllv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
133 test_srlc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
134 test_srlv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
135 test_srac_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
136 test_srav_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
137
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
138 test_sllc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
139 test_sllv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
140 test_srlc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
141 test_srlv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
142 test_srac_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
143 test_srav_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
144
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
145 test_pack2(p2, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
146 test_unpack2(a0, p2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
147 test_pack2_swap(p2, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
148 test_unpack2_swap(a0, p2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
149 test_pack4(p4, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
150 test_unpack4(a0, p4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
151 test_pack4_swap(p4, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
152 test_unpack4_swap(a0, p4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
153 test_pack8(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
154 test_unpack8(a0, p8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
155 test_pack8_swap(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
156 test_unpack8_swap(a0, p8);
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 and verify results
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
159 System.out.println("Verification");
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
160 int errn = 0;
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 int sum = test_sum(a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
163 if (sum != gold_sum) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
164 System.err.println("test_sum: " + sum + " != " + gold_sum);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
165 errn++;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
166 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
167
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
168 test_addc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
169 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
170 errn += verify("test_addc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)+VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
171 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
172 test_addv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
173 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
174 errn += verify("test_addv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)+VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
175 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
176 test_adda(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
177 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
178 errn += verify("test_adda: ", i, a0[i], (byte)((byte)(ADD_INIT+i)+VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
179 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
180
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
181 test_subc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
182 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
183 errn += verify("test_subc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
184 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
185 test_subv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
186 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
187 errn += verify("test_subv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
188 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
189 test_suba(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
190 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
191 errn += verify("test_suba: ", i, a0[i], (byte)((byte)(ADD_INIT+i)-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
192 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
193
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
194 test_mulc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
195 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
196 errn += verify("test_mulc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
197 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
198 test_mulv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
199 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
200 errn += verify("test_mulv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
201 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
202 test_mula(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
203 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
204 errn += verify("test_mula: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
205 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
206
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
207 test_divc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
208 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
209 errn += verify("test_divc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
210 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
211 test_divv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
212 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
213 errn += verify("test_divv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
214 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
215 test_diva(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
216 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
217 errn += verify("test_diva: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
218 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
219
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
220 test_mulc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
221 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
222 errn += verify("test_mulc_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
223 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
224 test_mulv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
225 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
226 errn += verify("test_mulv_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
227 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
228 test_mula(a0, a1, a3);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
229 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
230 errn += verify("test_mula_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)*(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
231 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
232
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
233 test_divc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
234 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
235 errn += verify("test_divc_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
236 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
237 test_divv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
238 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
239 errn += verify("test_divv_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
240 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
241 test_diva(a0, a1, a3);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
242 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
243 errn += verify("test_diva_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)/(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
244 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
245
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
246 test_andc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
247 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
248 errn += verify("test_andc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)&BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
249 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
250 test_andv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
251 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
252 errn += verify("test_andv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)&BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
253 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
254 test_anda(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
255 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
256 errn += verify("test_anda: ", i, a0[i], (byte)((byte)(ADD_INIT+i)&BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
257 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
258
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
259 test_orc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
260 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
261 errn += verify("test_orc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)|BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
262 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
263 test_orv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
264 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
265 errn += verify("test_orv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)|BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
266 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
267 test_ora(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
268 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
269 errn += verify("test_ora: ", i, a0[i], (byte)((byte)(ADD_INIT+i)|BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
270 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
271
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
272 test_xorc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
273 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
274 errn += verify("test_xorc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)^BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
275 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
276 test_xorv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
277 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
278 errn += verify("test_xorv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)^BIT_MASK));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
279 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
280 test_xora(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
281 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
282 errn += verify("test_xora: ", i, a0[i], (byte)((byte)(ADD_INIT+i)^BIT_MASK));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
285 test_sllc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
286 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
287 errn += verify("test_sllc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
288 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
289 test_sllv(a0, a1, VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
290 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
291 errn += verify("test_sllv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<VALUE));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
294 test_srlc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
295 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
296 errn += verify("test_srlc: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
297 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
298 test_srlv(a0, a1, VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
299 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
300 errn += verify("test_srlv: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>VALUE));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
303 test_srac(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
304 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
305 errn += verify("test_srac: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
306 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
307 test_srav(a0, a1, VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
308 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
309 errn += verify("test_srav: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>VALUE));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
312 test_sllc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
313 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
314 errn += verify("test_sllc_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
315 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
316 test_sllv(a0, a1, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
317 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
318 errn += verify("test_sllv_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<(-VALUE)));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
321 test_srlc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
322 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
323 errn += verify("test_srlc_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
324 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
325 test_srlv(a0, a1, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
326 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
327 errn += verify("test_srlv_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>(-VALUE)));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
330 test_srac_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
331 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
332 errn += verify("test_srac_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>(-VALUE)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
333 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
334 test_srav(a0, a1, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
335 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
336 errn += verify("test_srav_n: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>(-VALUE)));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
339 test_sllc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
340 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
341 errn += verify("test_sllc_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
342 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
343 test_sllv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
344 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
345 errn += verify("test_sllv_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<SHIFT));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
348 test_srlc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
349 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
350 errn += verify("test_srlc_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
351 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
352 test_srlv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
353 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
354 errn += verify("test_srlv_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>SHIFT));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
357 test_srac_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
358 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
359 errn += verify("test_srac_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
360 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
361 test_srav(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
362 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
363 errn += verify("test_srav_o: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>SHIFT));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
366 test_sllc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
367 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
368 errn += verify("test_sllc_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<(-SHIFT)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
369 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
370 test_sllv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
371 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
372 errn += verify("test_sllv_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)<<(-SHIFT)));
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
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
375 test_srlc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
376 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
377 errn += verify("test_srlc_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>(-SHIFT)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
378 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
379 test_srlv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
380 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
381 errn += verify("test_srlv_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>>(-SHIFT)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
382 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
383
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
384 test_srac_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
385 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
386 errn += verify("test_srac_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>(-SHIFT)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
387 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
388 test_srav(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
389 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
390 errn += verify("test_srav_on: ", i, a0[i], (byte)((byte)(ADD_INIT+i)>>(-SHIFT)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
391 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
392
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
393 test_sllc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
394 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
395 errn += verify("test_sllc_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)<<VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
396 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
397 test_sllv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
398 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
399 errn += verify("test_sllv_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)<<VALUE));
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
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
402 test_srlc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
403 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
404 errn += verify("test_srlc_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)>>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
405 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
406 test_srlv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
407 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
408 errn += verify("test_srlv_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)>>>VALUE));
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
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
411 test_srac_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
412 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
413 errn += verify("test_srac_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
414 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
415 test_srav_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
416 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
417 errn += verify("test_srav_add: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) + ADD_INIT)>>VALUE));
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
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
420 test_sllc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
421 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
422 errn += verify("test_sllc_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)<<VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
423 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
424 test_sllv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
425 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
426 errn += verify("test_sllv_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)<<VALUE));
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
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
429 test_srlc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
430 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
431 errn += verify("test_srlc_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)>>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
432 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
433 test_srlv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
434 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
435 errn += verify("test_srlv_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)>>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
436 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
437
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
438 test_srac_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
439 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
440 errn += verify("test_srac_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
441 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
442 test_srav_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
443 for (int i=0; i<ARRLEN; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
444 errn += verify("test_srav_and: ", i, a0[i], (byte)(((byte)(ADD_INIT+i) & BIT_MASK)>>VALUE));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
445 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
446
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
447 test_pack2(p2, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
448 for (int i=0; i<ARRLEN/2; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
449 errn += verify("test_pack2: ", i, p2[i], (short)(((short)(ADD_INIT+2*i) & 0xFF) | ((short)(ADD_INIT+2*i+1) << 8)));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
450 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
451 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
452 a0[i] = -1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
453 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
454 test_unpack2(a0, p2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
455 for (int i=0; i<(ARRLEN&(-2)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
456 errn += verify("test_unpack2: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
457 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
458
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
459 test_pack2_swap(p2, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
460 for (int i=0; i<ARRLEN/2; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
461 errn += verify("test_pack2_swap: ", i, p2[i], (short)(((short)(ADD_INIT+2*i+1) & 0xFF) | ((short)(ADD_INIT+2*i) << 8)));
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 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
464 a0[i] = -1;
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 test_unpack2_swap(a0, p2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
467 for (int i=0; i<(ARRLEN&(-2)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
468 errn += verify("test_unpack2_swap: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
469 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
470
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
471 test_pack4(p4, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
472 for (int i=0; i<ARRLEN/4; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
473 errn += verify("test_pack4: ", i, p4[i], ((int)(ADD_INIT+4*i+0) & 0xFF) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
474 (((int)(ADD_INIT+4*i+1) & 0xFF) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
475 (((int)(ADD_INIT+4*i+2) & 0xFF) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
476 (((int)(ADD_INIT+4*i+3) & 0xFF) << 24));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
477 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
478 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
479 a0[i] = -1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
480 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
481 test_unpack4(a0, p4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
482 for (int i=0; i<(ARRLEN&(-4)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
483 errn += verify("test_unpack4: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
484 }
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 test_pack4_swap(p4, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
487 for (int i=0; i<ARRLEN/4; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
488 errn += verify("test_pack4_swap: ", i, p4[i], ((int)(ADD_INIT+4*i+3) & 0xFF) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
489 (((int)(ADD_INIT+4*i+2) & 0xFF) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
490 (((int)(ADD_INIT+4*i+1) & 0xFF) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
491 (((int)(ADD_INIT+4*i+0) & 0xFF) << 24));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
492 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
493 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
494 a0[i] = -1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
495 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
496 test_unpack4_swap(a0, p4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
497 for (int i=0; i<(ARRLEN&(-4)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
498 errn += verify("test_unpack4_swap: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
499 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
500
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
501 test_pack8(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
502 for (int i=0; i<ARRLEN/8; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
503 errn += verify("test_pack8: ", i, p8[i], ((long)(ADD_INIT+8*i+0) & 0xFFl) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
504 (((long)(ADD_INIT+8*i+1) & 0xFFl) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
505 (((long)(ADD_INIT+8*i+2) & 0xFFl) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
506 (((long)(ADD_INIT+8*i+3) & 0xFFl) << 24) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
507 (((long)(ADD_INIT+8*i+4) & 0xFFl) << 32) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
508 (((long)(ADD_INIT+8*i+5) & 0xFFl) << 40) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
509 (((long)(ADD_INIT+8*i+6) & 0xFFl) << 48) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
510 (((long)(ADD_INIT+8*i+7) & 0xFFl) << 56));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
511 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
512 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
513 a0[i] = -1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
514 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
515 test_unpack8(a0, p8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
516 for (int i=0; i<(ARRLEN&(-8)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
517 errn += verify("test_unpack8: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
518 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
519
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
520 test_pack8_swap(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
521 for (int i=0; i<ARRLEN/8; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
522 errn += verify("test_pack8_swap: ", i, p8[i], ((long)(ADD_INIT+8*i+7) & 0xFFl) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
523 (((long)(ADD_INIT+8*i+6) & 0xFFl) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
524 (((long)(ADD_INIT+8*i+5) & 0xFFl) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
525 (((long)(ADD_INIT+8*i+4) & 0xFFl) << 24) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
526 (((long)(ADD_INIT+8*i+3) & 0xFFl) << 32) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
527 (((long)(ADD_INIT+8*i+2) & 0xFFl) << 40) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
528 (((long)(ADD_INIT+8*i+1) & 0xFFl) << 48) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
529 (((long)(ADD_INIT+8*i+0) & 0xFFl) << 56));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
530 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
531 for (int i=0; i<ARRLEN; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
532 a0[i] = -1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
533 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
534 test_unpack8_swap(a0, p8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
535 for (int i=0; i<(ARRLEN&(-8)); i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
536 errn += verify("test_unpack8_swap: ", i, a0[i], (byte)(ADD_INIT+i));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
537 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
538
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
539 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
540
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
541 if (errn > 0)
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
542 return errn;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
543
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
544 System.out.println("Time");
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
545 long start, end;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
546
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
547 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
548 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
549 test_sum(a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
550 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
551 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
552 System.out.println("test_sum: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
553
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
554 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
555 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
556 test_addc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
557 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
558 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
559 System.out.println("test_addc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
560 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
561 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
562 test_addv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
563 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
564 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
565 System.out.println("test_addv: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
566 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
567 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
568 test_adda(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
569 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
570 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
571 System.out.println("test_adda: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
572
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
573 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
574 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
575 test_subc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
576 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
577 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
578 System.out.println("test_subc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
579 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
580 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
581 test_subv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
582 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
583 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
584 System.out.println("test_subv: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
585 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
586 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
587 test_suba(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
588 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
589 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
590 System.out.println("test_suba: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
591
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
592 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
593 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
594 test_mulc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
595 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
596 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
597 System.out.println("test_mulc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
598 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
599 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
600 test_mulv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
601 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
602 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
603 System.out.println("test_mulv: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
604 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
605 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
606 test_mula(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
607 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
608 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
609 System.out.println("test_mula: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
610
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
611 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
612 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
613 test_divc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
614 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
615 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
616 System.out.println("test_divc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
617 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
618 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
619 test_divv(a0, a1, (byte)VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
620 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
621 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
622 System.out.println("test_divv: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
623 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
624 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
625 test_diva(a0, a1, a2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
626 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
627 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
628 System.out.println("test_diva: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
629
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
630 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
631 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
632 test_mulc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
633 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
634 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
635 System.out.println("test_mulc_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
636 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
637 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
638 test_mulv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
639 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
640 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
641 System.out.println("test_mulv_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
642 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
643 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
644 test_mula(a0, a1, a3);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
645 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
646 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
647 System.out.println("test_mula_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
648
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
649 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
650 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
651 test_divc_n(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
652 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
653 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
654 System.out.println("test_divc_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
655 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
656 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
657 test_divv(a0, a1, (byte)-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
658 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
659 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
660 System.out.println("test_divv_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
661 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
662 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
663 test_diva(a0, a1, a3);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
664 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
665 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
666 System.out.println("test_diva_n: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
667
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
668 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
669 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
670 test_andc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
671 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
672 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
673 System.out.println("test_andc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
674 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
675 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
676 test_andv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
677 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
678 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
679 System.out.println("test_andv: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
680 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
681 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
682 test_anda(a0, a1, a4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
683 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
684 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
685 System.out.println("test_anda: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
686
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
687 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
688 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
689 test_orc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
690 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
691 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
692 System.out.println("test_orc: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
693 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
694 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
695 test_orv(a0, a1, (byte)BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
696 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
697 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
698 System.out.println("test_orv: " + (end - start));
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_ora(a0, a1, a4);
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_ora: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
705
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
706 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
707 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
708 test_xorc(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
709 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
710 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
711 System.out.println("test_xorc: " + (end - start));
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_xorv(a0, a1, (byte)BIT_MASK);
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_xorv: " + (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_xora(a0, a1, a4);
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_xora: " + (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(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: " + (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, VALUE);
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: " + (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(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: " + (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, VALUE);
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: " + (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(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: " + (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, VALUE);
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: " + (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_n(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_n: " + (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, -VALUE);
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_n: " + (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_n(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_n: " + (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, -VALUE);
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_n: " + (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_n(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_n: " + (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, -VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
799 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
800 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
801 System.out.println("test_srav_n: " + (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++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
805 test_sllc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
806 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
807 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
808 System.out.println("test_sllc_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
809 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
810 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
811 test_sllv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
812 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
813 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
814 System.out.println("test_sllv_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
815
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
816 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
817 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
818 test_srlc_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
819 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
820 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
821 System.out.println("test_srlc_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
822 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
823 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
824 test_srlv(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
825 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
826 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
827 System.out.println("test_srlv_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
828
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
829 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
830 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
831 test_srac_o(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
832 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
833 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
834 System.out.println("test_srac_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
835 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
836 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
837 test_srav(a0, a1, SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
838 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
839 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
840 System.out.println("test_srav_o: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
841
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
842 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
843 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
844 test_sllc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
845 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
846 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
847 System.out.println("test_sllc_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
848 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
849 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
850 test_sllv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
851 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
852 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
853 System.out.println("test_sllv_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
854
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
855 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
856 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
857 test_srlc_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
858 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
859 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
860 System.out.println("test_srlc_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
861 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
862 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
863 test_srlv(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
864 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
865 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
866 System.out.println("test_srlv_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
867
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
868 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
869 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
870 test_srac_on(a0, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
871 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
872 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
873 System.out.println("test_srac_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
874 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
875 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
876 test_srav(a0, a1, -SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
877 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
878 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
879 System.out.println("test_srav_on: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
880
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
881 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
882 for (int i=0; i<ITERS; i++) {
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
883 test_sllc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
884 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
885 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
886 System.out.println("test_sllc_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
887 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
888 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
889 test_sllv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
890 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
891 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
892 System.out.println("test_sllv_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
894 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
895 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
896 test_srlc_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
897 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
898 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
899 System.out.println("test_srlc_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
900 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
901 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
902 test_srlv_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
903 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
904 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
905 System.out.println("test_srlv_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
906
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
907 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
908 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
909 test_srac_add(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
910 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
911 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
912 System.out.println("test_srac_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
913 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
914 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
915 test_srav_add(a0, a1, ADD_INIT);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
916 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
917 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
918 System.out.println("test_srav_add: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
919
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
920 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
921 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
922 test_sllc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
923 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
924 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
925 System.out.println("test_sllc_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
926 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
927 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
928 test_sllv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
929 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
930 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
931 System.out.println("test_sllv_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
932
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
933 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
934 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
935 test_srlc_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
936 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
937 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
938 System.out.println("test_srlc_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
939 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
940 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
941 test_srlv_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
942 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
943 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
944 System.out.println("test_srlv_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
945
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
946 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
947 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
948 test_srac_and(a0, a1);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
949 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
950 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
951 System.out.println("test_srac_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
952 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
953 for (int i=0; i<ITERS; i++) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
954 test_srav_and(a0, a1, BIT_MASK);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
955 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
956 end = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
957 System.out.println("test_srav_and: " + (end - start));
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
958
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
959 start = System.currentTimeMillis();
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
960 for (int i=0; i<ITERS; i++) {
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
961 test_pack2(p2, a1);
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 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
964 System.out.println("test_pack2: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
965 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
966 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
967 test_unpack2(a0, p2);
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 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
970 System.out.println("test_unpack2: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
971 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
972 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
973 test_pack2_swap(p2, a1);
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 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
976 System.out.println("test_pack2_swap: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
977 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
978 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
979 test_unpack2_swap(a0, p2);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
980 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
981 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
982 System.out.println("test_unpack2_swap: " + (end - start));
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 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
985 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
986 test_pack4(p4, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
987 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
988 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
989 System.out.println("test_pack4: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
990 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
991 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
992 test_unpack4(a0, p4);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
993 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
994 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
995 System.out.println("test_unpack4: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
996 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
997 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
998 test_pack4_swap(p4, a1);
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 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1001 System.out.println("test_pack4_swap: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1002 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1003 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1004 test_unpack4_swap(a0, p4);
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 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1007 System.out.println("test_unpack4_swap: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1008
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1009 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1010 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1011 test_pack8(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1012 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1013 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1014 System.out.println("test_pack8: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1015 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1016 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1017 test_unpack8(a0, p8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1018 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1019 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1020 System.out.println("test_unpack8: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1021 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1022 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1023 test_pack8_swap(p8, a1);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1024 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1025 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1026 System.out.println("test_pack8_swap: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1027 start = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1028 for (int i=0; i<ITERS; i++) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1029 test_unpack8_swap(a0, p8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1030 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1031 end = System.currentTimeMillis();
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1032 System.out.println("test_unpack8_swap: " + (end - start));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1033
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1034 return errn;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1035 }
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 static int test_sum(byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1038 int sum = 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1039 for (int i = 0; i < a1.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1040 sum += a1[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1041 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1042 return sum;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1043 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1044
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1045 static void test_addc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1046 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1047 a0[i] = (byte)(a1[i]+VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1048 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1049 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1050 static void test_addv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1051 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1052 a0[i] = (byte)(a1[i]+b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1053 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1054 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1055 static void test_adda(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1056 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1057 a0[i] = (byte)(a1[i]+a2[i]);
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 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1060
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1061 static void test_subc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1062 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1063 a0[i] = (byte)(a1[i]-VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1064 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1065 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1066 static void test_subv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1067 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1068 a0[i] = (byte)(a1[i]-b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1069 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1070 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1071 static void test_suba(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1072 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1073 a0[i] = (byte)(a1[i]-a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1074 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1075 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1076
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1077 static void test_mulc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1078 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1079 a0[i] = (byte)(a1[i]*VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1080 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1081 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1082 static void test_mulc_n(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1083 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1084 a0[i] = (byte)(a1[i]*(-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1085 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1086 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1087 static void test_mulv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1088 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1089 a0[i] = (byte)(a1[i]*b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1090 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1091 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1092 static void test_mula(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1093 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1094 a0[i] = (byte)(a1[i]*a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1095 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1096 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1097
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1098 static void test_divc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1099 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1100 a0[i] = (byte)(a1[i]/VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1101 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1102 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1103 static void test_divc_n(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1104 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1105 a0[i] = (byte)(a1[i]/(-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1106 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1107 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1108 static void test_divv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1109 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1110 a0[i] = (byte)(a1[i]/b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1111 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1112 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1113 static void test_diva(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1114 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1115 a0[i] = (byte)(a1[i]/a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1116 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1117 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1118
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1119 static void test_andc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1120 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1121 a0[i] = (byte)(a1[i]&BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1122 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1123 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1124 static void test_andv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1125 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1126 a0[i] = (byte)(a1[i]&b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1127 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1128 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1129 static void test_anda(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1130 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1131 a0[i] = (byte)(a1[i]&a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1132 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1133 }
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 static void test_orc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1136 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1137 a0[i] = (byte)(a1[i]|BIT_MASK);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1138 }
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 static void test_orv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1141 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1142 a0[i] = (byte)(a1[i]|b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1143 }
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 static void test_ora(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1146 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1147 a0[i] = (byte)(a1[i]|a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1148 }
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_xorc(byte[] a0, byte[] a1) {
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] = (byte)(a1[i]^BIT_MASK);
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 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1156 static void test_xorv(byte[] a0, byte[] a1, byte b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1157 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1158 a0[i] = (byte)(a1[i]^b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1159 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1160 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1161 static void test_xora(byte[] a0, byte[] a1, byte[] a2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1162 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1163 a0[i] = (byte)(a1[i]^a2[i]);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1164 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1165 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1166
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1167 static void test_sllc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1168 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1169 a0[i] = (byte)(a1[i]<<VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1170 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1171 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1172 static void test_sllc_n(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1173 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1174 a0[i] = (byte)(a1[i]<<(-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1175 }
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_sllc_o(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1178 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1179 a0[i] = (byte)(a1[i]<<SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1180 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1181 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1182 static void test_sllc_on(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1183 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1184 a0[i] = (byte)(a1[i]<<(-SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1185 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1186 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1187 static void test_sllv(byte[] a0, byte[] a1, int b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1188 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1189 a0[i] = (byte)(a1[i]<<b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1190 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1191 }
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1192 static void test_sllc_add(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1193 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1194 a0[i] = (byte)((a1[i] + ADD_INIT)<<VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1195 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1196 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1197 static void test_sllv_add(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1198 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1199 a0[i] = (byte)((a1[i] + b)<<VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1200 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1201 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1202 static void test_sllc_and(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1203 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1204 a0[i] = (byte)((a1[i] & BIT_MASK)<<VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1205 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1206 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1207 static void test_sllv_and(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1208 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1209 a0[i] = (byte)((a1[i] & b)<<VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1210 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1211 }
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1212
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1213 static void test_srlc(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1214 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1215 a0[i] = (byte)(a1[i]>>>VALUE);
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 void test_srlc_n(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1219 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1220 a0[i] = (byte)(a1[i]>>>(-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1221 }
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 static void test_srlc_o(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1224 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1225 a0[i] = (byte)(a1[i]>>>SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1226 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1227 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1228 static void test_srlc_on(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1229 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1230 a0[i] = (byte)(a1[i]>>>(-SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1231 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1232 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1233 static void test_srlv(byte[] a0, byte[] a1, int b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1234 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1235 a0[i] = (byte)(a1[i]>>>b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1236 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1237 }
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1238 static void test_srlc_add(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1239 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1240 a0[i] = (byte)((a1[i] + ADD_INIT)>>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1241 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1242 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1243 static void test_srlv_add(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1244 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1245 a0[i] = (byte)((a1[i] + b)>>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1246 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1247 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1248 static void test_srlc_and(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1249 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1250 a0[i] = (byte)((a1[i] & BIT_MASK)>>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1251 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1252 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1253 static void test_srlv_and(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1254 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1255 a0[i] = (byte)((a1[i] & b)>>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1256 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1257 }
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1258
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1259 static void test_srac(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1260 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1261 a0[i] = (byte)(a1[i]>>VALUE);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1262 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1263 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1264 static void test_srac_n(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1265 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1266 a0[i] = (byte)(a1[i]>>(-VALUE));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1267 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1268 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1269 static void test_srac_o(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1270 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1271 a0[i] = (byte)(a1[i]>>SHIFT);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1272 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1273 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1274 static void test_srac_on(byte[] a0, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1275 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1276 a0[i] = (byte)(a1[i]>>(-SHIFT));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1277 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1278 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1279 static void test_srav(byte[] a0, byte[] a1, int b) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1280 for (int i = 0; i < a0.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1281 a0[i] = (byte)(a1[i]>>b);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1282 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1283 }
6893
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1284 static void test_srac_add(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1285 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1286 a0[i] = (byte)((a1[i] + ADD_INIT)>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1287 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1288 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1289 static void test_srav_add(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1290 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1291 a0[i] = (byte)((a1[i] + b)>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1292 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1293 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1294 static void test_srac_and(byte[] a0, byte[] a1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1295 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1296 a0[i] = (byte)((a1[i] & BIT_MASK)>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1297 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1298 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1299 static void test_srav_and(byte[] a0, byte[] a1, int b) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1300 for (int i = 0; i < a0.length; i+=1) {
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1301 a0[i] = (byte)((a1[i] & b)>>VALUE);
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1302 }
b2c669fd8114 8001183: incorrect results of char vectors right shift operaiton
kvn
parents: 6614
diff changeset
1303 }
6614
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1304
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1305 static void test_pack2(short[] p2, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1306 if (p2.length*2 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1307 for (int i = 0; i < p2.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1308 short l0 = (short)a1[i*2+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1309 short l1 = (short)a1[i*2+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1310 p2[i] = (short)((l1 << 8) | (l0 & 0xFF));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1311 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1312 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1313 static void test_unpack2(byte[] a0, short[] p2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1314 if (p2.length*2 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1315 for (int i = 0; i < p2.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1316 short l = p2[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1317 a0[i*2+0] = (byte)(l & 0xFF);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1318 a0[i*2+1] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1319 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1320 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1321 static void test_pack2_swap(short[] p2, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1322 if (p2.length*2 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1323 for (int i = 0; i < p2.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1324 short l0 = (short)a1[i*2+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1325 short l1 = (short)a1[i*2+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1326 p2[i] = (short)((l0 << 8) | (l1 & 0xFF));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1327 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1328 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1329 static void test_unpack2_swap(byte[] a0, short[] p2) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1330 if (p2.length*2 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1331 for (int i = 0; i < p2.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1332 short l = p2[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1333 a0[i*2+0] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1334 a0[i*2+1] = (byte)(l & 0xFF);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1335 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1336 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1337
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1338 static void test_pack4(int[] p4, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1339 if (p4.length*4 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1340 for (int i = 0; i < p4.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1341 int l0 = (int)a1[i*4+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1342 int l1 = (int)a1[i*4+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1343 int l2 = (int)a1[i*4+2];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1344 int l3 = (int)a1[i*4+3];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1345 p4[i] = (l0 & 0xFF) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1346 ((l1 & 0xFF) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1347 ((l2 & 0xFF) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1348 ((l3 & 0xFF) << 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1349 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1350 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1351 static void test_unpack4(byte[] a0, int[] p4) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1352 if (p4.length*4 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1353 for (int i = 0; i < p4.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1354 int l = p4[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1355 a0[i*4+0] = (byte)(l & 0xFF);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1356 a0[i*4+1] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1357 a0[i*4+2] = (byte)(l >> 16);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1358 a0[i*4+3] = (byte)(l >> 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1359 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1360 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1361 static void test_pack4_swap(int[] p4, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1362 if (p4.length*4 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1363 for (int i = 0; i < p4.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1364 int l0 = (int)a1[i*4+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1365 int l1 = (int)a1[i*4+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1366 int l2 = (int)a1[i*4+2];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1367 int l3 = (int)a1[i*4+3];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1368 p4[i] = (l3 & 0xFF) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1369 ((l2 & 0xFF) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1370 ((l1 & 0xFF) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1371 ((l0 & 0xFF) << 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1372 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1373 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1374 static void test_unpack4_swap(byte[] a0, int[] p4) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1375 if (p4.length*4 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1376 for (int i = 0; i < p4.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1377 int l = p4[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1378 a0[i*4+0] = (byte)(l >> 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1379 a0[i*4+1] = (byte)(l >> 16);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1380 a0[i*4+2] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1381 a0[i*4+3] = (byte)(l & 0xFF);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1382 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1383 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1384
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1385 static void test_pack8(long[] p8, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1386 if (p8.length*8 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1387 for (int i = 0; i < p8.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1388 long l0 = (long)a1[i*8+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1389 long l1 = (long)a1[i*8+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1390 long l2 = (long)a1[i*8+2];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1391 long l3 = (long)a1[i*8+3];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1392 long l4 = (long)a1[i*8+4];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1393 long l5 = (long)a1[i*8+5];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1394 long l6 = (long)a1[i*8+6];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1395 long l7 = (long)a1[i*8+7];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1396 p8[i] = (l0 & 0xFFl) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1397 ((l1 & 0xFFl) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1398 ((l2 & 0xFFl) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1399 ((l3 & 0xFFl) << 24) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1400 ((l4 & 0xFFl) << 32) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1401 ((l5 & 0xFFl) << 40) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1402 ((l6 & 0xFFl) << 48) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1403 ((l7 & 0xFFl) << 56);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1404 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1405 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1406 static void test_unpack8(byte[] a0, long[] p8) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1407 if (p8.length*8 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1408 for (int i = 0; i < p8.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1409 long l = p8[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1410 a0[i*8+0] = (byte)(l & 0xFFl);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1411 a0[i*8+1] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1412 a0[i*8+2] = (byte)(l >> 16);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1413 a0[i*8+3] = (byte)(l >> 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1414 a0[i*8+4] = (byte)(l >> 32);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1415 a0[i*8+5] = (byte)(l >> 40);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1416 a0[i*8+6] = (byte)(l >> 48);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1417 a0[i*8+7] = (byte)(l >> 56);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1418 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1419 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1420 static void test_pack8_swap(long[] p8, byte[] a1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1421 if (p8.length*8 > a1.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1422 for (int i = 0; i < p8.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1423 long l0 = (long)a1[i*8+0];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1424 long l1 = (long)a1[i*8+1];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1425 long l2 = (long)a1[i*8+2];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1426 long l3 = (long)a1[i*8+3];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1427 long l4 = (long)a1[i*8+4];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1428 long l5 = (long)a1[i*8+5];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1429 long l6 = (long)a1[i*8+6];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1430 long l7 = (long)a1[i*8+7];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1431 p8[i] = (l7 & 0xFFl) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1432 ((l6 & 0xFFl) << 8) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1433 ((l5 & 0xFFl) << 16) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1434 ((l4 & 0xFFl) << 24) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1435 ((l3 & 0xFFl) << 32) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1436 ((l2 & 0xFFl) << 40) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1437 ((l1 & 0xFFl) << 48) |
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1438 ((l0 & 0xFFl) << 56);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1439 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1440 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1441 static void test_unpack8_swap(byte[] a0, long[] p8) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1442 if (p8.length*8 > a0.length) return;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1443 for (int i = 0; i < p8.length; i+=1) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1444 long l = p8[i];
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1445 a0[i*8+0] = (byte)(l >> 56);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1446 a0[i*8+1] = (byte)(l >> 48);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1447 a0[i*8+2] = (byte)(l >> 40);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1448 a0[i*8+3] = (byte)(l >> 32);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1449 a0[i*8+4] = (byte)(l >> 24);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1450 a0[i*8+5] = (byte)(l >> 16);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1451 a0[i*8+6] = (byte)(l >> 8);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1452 a0[i*8+7] = (byte)(l & 0xFFl);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1453 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1454 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1455
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1456 static int verify(String text, int i, byte elem, byte val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1457 if (elem != val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1458 System.err.println(text + "[" + i + "] = " + elem + " != " + val);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1459 return 1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1460 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1461 return 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1462 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1463
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1464 static int verify(String text, int i, short elem, short val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1465 if (elem != val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1466 System.err.println(text + "[" + i + "] = " + elem + " != " + val);
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1467 return 1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1468 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1469 return 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1470 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1471
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1472 static int verify(String text, int i, int elem, int val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1473 if (elem != val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1474 System.err.println(text + "[" + i + "] = " + Integer.toHexString(elem) + " != " + Integer.toHexString(val));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1475 return 1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1476 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1477 return 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1478 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1479
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1480 static int verify(String text, int i, long elem, long val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1481 if (elem != val) {
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1482 System.err.println(text + "[" + i + "] = " + Long.toHexString(elem) + " != " + Long.toHexString(val));
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1483 return 1;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1484 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1485 return 0;
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1486 }
006050192a5a 6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
diff changeset
1487 }