10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 6340864
28 * @summary Implement vectorization optimizations in hotspot-server
29 *
30 * @run main/othervm/timeout=400 -Xbatch -Xmx64m TestFloatVect
31 */
32
33 public class TestFloatVect {
34 private static final int ARRLEN = 997;
35 private static final int ITERS = 11000;
36 private static final float ADD_INIT = -7500.f;
37 private static final float VALUE = 15.f;
38
39 public static void main(String args[]) {
40 System.out.println("Testing Float vectors");
41 int errn = test();
42 if (errn > 0) {
43 System.err.println("FAILED: " + errn + " errors");
44 System.exit(97);
45 }
46 System.out.println("PASSED");
47 }
48
49 static int test() {
50 float[] a0 = new float[ARRLEN];
51 float[] a1 = new float[ARRLEN];
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 6340864
28 * @summary Implement vectorization optimizations in hotspot-server
29 *
30 * @run main/othervm/timeout=400 -Xbatch -Xmx64m compiler.c2.cr6340864.TestFloatVect
31 */
32
33 package compiler.c2.cr6340864;
34
35 public class TestFloatVect {
36 private static final int ARRLEN = 997;
37 private static final int ITERS = 11000;
38 private static final float ADD_INIT = -7500.f;
39 private static final float VALUE = 15.f;
40
41 public static void main(String args[]) {
42 System.out.println("Testing Float vectors");
43 int errn = test();
44 if (errn > 0) {
45 System.err.println("FAILED: " + errn + " errors");
46 System.exit(97);
47 }
48 System.out.println("PASSED");
49 }
50
51 static int test() {
52 float[] a0 = new float[ARRLEN];
53 float[] a1 = new float[ARRLEN];
|