aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/Case.java15
-rw-r--r--libjava/testsuite/libjava.compile/OperatorBenchmark.java886
-rw-r--r--libjava/testsuite/libjava.compile/Semi.java8
-rw-r--r--libjava/testsuite/libjava.compile/Statics.java7
-rw-r--r--libjava/testsuite/libjava.compile/Twice.java14
-rw-r--r--libjava/testsuite/libjava.compile/Where.java12
-rw-r--r--libjava/testsuite/libjava.compile/euc_comment1.java5
-rw-r--r--libjava/testsuite/libjava.compile/euc_comment2.java5
-rw-r--r--libjava/testsuite/libjava.compile/euc_comment3.java5
-rw-r--r--libjava/testsuite/libjava.compile/perc.java9
-rw-r--r--libjava/testsuite/libjava.compile/plusplus.java10
-rw-r--r--libjava/testsuite/libjava.compile/sjis_comment1.java5
-rw-r--r--libjava/testsuite/libjava.compile/sjis_comment2.java5
-rw-r--r--libjava/testsuite/libjava.compile/sjis_comment3.java5
-rw-r--r--libjava/testsuite/libjava.compile/support/Case.java6
-rw-r--r--libjava/testsuite/libjava.compile/support/Waldo.java7
-rw-r--r--libjava/testsuite/libjava.compile/test.exp10
17 files changed, 0 insertions, 1014 deletions
diff --git a/libjava/testsuite/libjava.compile/Case.java b/libjava/testsuite/libjava.compile/Case.java
deleted file mode 100644
index c5eb1d51947..00000000000
--- a/libjava/testsuite/libjava.compile/Case.java
+++ /dev/null
@@ -1,15 +0,0 @@
-// Simple compiler test.
-
-public class Case
-{
- public static int foo (int i, support.Case x)
- {
- switch (i)
- {
- case x.A:
- return 1;
- default:
- return 0;
- }
- }
-}
diff --git a/libjava/testsuite/libjava.compile/OperatorBenchmark.java b/libjava/testsuite/libjava.compile/OperatorBenchmark.java
deleted file mode 100644
index 03f660d848d..00000000000
--- a/libjava/testsuite/libjava.compile/OperatorBenchmark.java
+++ /dev/null
@@ -1,886 +0,0 @@
-
-/*
- * Copyright (c) 1996, 1997 by Doug Bell <dbell@shvn.com>. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-
-// This file has been hacked to compile without the rest of the
-// benchmark code.
-
-class OperatorBenchmark {
-
- public int getSampleCount() { return 0; }
- public int getSampleMillis() { return 0; }
- public boolean go;
- public int useint[];
- public void startTest () { }
- public long finishTest () { return 0; }
- public void startTimer (boolean b) { }
- public void stopTimer (int a, int b) { }
- public void report (String s) { }
- public void println (String s) { }
-
- public int getTestTime () {
- return (int) (100 * getSampleCount() * getSampleMillis()) / 1000;
- }
-
- public int getRunningTime () {
- return (int) (1.1 * getTestTime());
- }
-
- public long runTest () {
- int dummy1 = 0, dummy2 = 0, dummy3 = 0; // occupy implicit index slots
- int cnt, ii;
- byte b1 = 1, b2 = 2, b3 = 3;
- short s1 = 1, s2 = 2, s3 = 3;
- int i1 = 1, i2 = 2, i3 = 3;
- long l1 = 1, l2 = 2, l3 = 3;
- float f1 = 1, f2 = 2, f3 = 3;
- double d1 = 1, d2 = 2, d3 = 3;
-
- startTest();
-
- println("--- byte operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1++;
- stopTimer(cnt, ii);
- }
- report("byte++");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 += b2;
- stopTimer(cnt, ii);
- }
- report("byte += byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 + b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte + byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 *= b2;
- stopTimer(cnt, ii);
- }
- report("byte *= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 * b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte * byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 *= 2;
- stopTimer(cnt, ii);
- }
- report("byte *= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 <<= 1;
- stopTimer(cnt, ii);
- }
- report("byte <<= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 %= b2;
- stopTimer(cnt, ii);
- }
- report("byte %= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 % b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte % byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 /= b2;
- stopTimer(cnt, ii);
- }
- report("byte /= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 / b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte / byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 /= 2;
- stopTimer(cnt, ii);
- }
- report("byte /= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 >>= 1;
- stopTimer(cnt, ii);
- }
- report("byte >>= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 >>= i2;
- stopTimer(cnt, ii);
- }
- report("byte >>= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 >> i3);
- stopTimer(cnt, ii);
- }
- report("byte = byte >> int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 |= b2;
- stopTimer(cnt, ii);
- }
- report("byte |= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 | b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte | byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 &= b2;
- stopTimer(cnt, ii);
- }
- report("byte &= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 & b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte & byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 ^= b2;
- stopTimer(cnt, ii);
- }
- report("byte ^= byte");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- b1 = (byte) (b2 ^ b3);
- stopTimer(cnt, ii);
- }
- report("byte = byte ^ byte");
-
-
- println("--- short operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1++;
- stopTimer(cnt, ii);
- }
- report("short++");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 += s2;
- stopTimer(cnt, ii);
- }
- report("short += short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 + s3);
- stopTimer(cnt, ii);
- }
- report("short = short + short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 *= s2;
- stopTimer(cnt, ii);
- }
- report("short *= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 * s3);
- stopTimer(cnt, ii);
- }
- report("short = short * short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 *= 2;
- stopTimer(cnt, ii);
- }
- report("short *= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 <<= 1;
- stopTimer(cnt, ii);
- }
- report("short <<= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 %= s2;
- stopTimer(cnt, ii);
- }
- report("short %= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 % s3);
- stopTimer(cnt, ii);
- }
- report("short = short % short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 /= s2;
- stopTimer(cnt, ii);
- }
- report("short /= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 / s3);
- stopTimer(cnt, ii);
- }
- report("short = short / short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 /= 2;
- stopTimer(cnt, ii);
- }
- report("short /= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 >>= 1;
- stopTimer(cnt, ii);
- }
- report("short >>= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 >>= i2;
- stopTimer(cnt, ii);
- }
- report("short >>= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 >> i3);
- stopTimer(cnt, ii);
- }
- report("short = short >> int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 |= s2;
- stopTimer(cnt, ii);
- }
- report("short |= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 | s3);
- stopTimer(cnt, ii);
- }
- report("short = short | short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 &= s2;
- stopTimer(cnt, ii);
- }
- report("short &= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 & s3);
- stopTimer(cnt, ii);
- }
- report("short = short & short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 ^= s2;
- stopTimer(cnt, ii);
- }
- report("short ^= short");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- s1 = (short) (s2 ^ s3);
- stopTimer(cnt, ii);
- }
- report("short = short ^ short");
-
-
- println("--- int operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1++;
- stopTimer(cnt, ii);
- }
- report("int++");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 += i2;
- stopTimer(cnt, ii);
- }
- report("int += int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = (i2 + i3);
- stopTimer(cnt, ii);
- }
- report("int = int + int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 *= i2;
- stopTimer(cnt, ii);
- }
- report("int *= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = (i2 * i3);
- stopTimer(cnt, ii);
- }
- report("int = int * int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 *= 2;
- stopTimer(cnt, ii);
- }
- report("int *= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 <<= 1;
- stopTimer(cnt, ii);
- }
- report("int <<= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 %= i2;
- stopTimer(cnt, ii);
- }
- report("int %= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = (i2 % i3);
- stopTimer(cnt, ii);
- }
- report("int = int % int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 /= i2;
- stopTimer(cnt, ii);
- }
- report("int /= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = (i2 / i3);
- stopTimer(cnt, ii);
- }
- report("int = int / int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 /= 2;
- stopTimer(cnt, ii);
- }
- report("int /= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 >>= 1;
- stopTimer(cnt, ii);
- }
- report("int >>= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 >>= i2;
- stopTimer(cnt, ii);
- }
- report("int >>= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = i2 >> i3;
- stopTimer(cnt, ii);
- }
- report("int = int >> int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 |= i2;
- stopTimer(cnt, ii);
- }
- report("int |= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = i2 | i3;
- stopTimer(cnt, ii);
- }
- report("int = int | int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 &= i2;
- stopTimer(cnt, ii);
- }
- report("int &= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = i2 & i3;
- stopTimer(cnt, ii);
- }
- report("int = int & int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 ^= i2;
- stopTimer(cnt, ii);
- }
- report("int ^= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- i1 = i2 ^ i3;
- stopTimer(cnt, ii);
- }
- report("int = int ^ int");
-
-
- println("--- long operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1++;
- stopTimer(cnt, ii);
- }
- report("long++");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 += l2;
- stopTimer(cnt, ii);
- }
- report("long += long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = (l2 + l3);
- stopTimer(cnt, ii);
- }
- report("long = long + long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 *= l2;
- stopTimer(cnt, ii);
- }
- report("long *= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = (l2 * l3);
- stopTimer(cnt, ii);
- }
- report("long = long * long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 *= 2;
- stopTimer(cnt, ii);
- }
- report("long *= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 <<= 1;
- stopTimer(cnt, ii);
- }
- report("long <<= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 %= l2;
- stopTimer(cnt, ii);
- }
- report("long %= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = (l2 % l3);
- stopTimer(cnt, ii);
- }
- report("long = long % long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 /= l2;
- stopTimer(cnt, ii);
- }
- report("long /= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = (l2 / l3);
- stopTimer(cnt, ii);
- }
- report("long = long / long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 /= 2;
- stopTimer(cnt, ii);
- }
- report("long /= 2");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 >>= 1;
- stopTimer(cnt, ii);
- }
- report("long >>= 1");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 >>= i2;
- stopTimer(cnt, ii);
- }
- report("long >>= int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = l2 >> i3;
- stopTimer(cnt, ii);
- }
- report("long = long >> int");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 |= l2;
- stopTimer(cnt, ii);
- }
- report("long |= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = l2 | l3;
- stopTimer(cnt, ii);
- }
- report("long = long | long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 &= l2;
- stopTimer(cnt, ii);
- }
- report("long &= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = l2 & l3;
- stopTimer(cnt, ii);
- }
- report("long = long & long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 ^= l2;
- stopTimer(cnt, ii);
- }
- report("long ^= long");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- l1 = l2 ^ l3;
- stopTimer(cnt, ii);
- }
- report("long = long ^ long");
-
-
- println("--- float operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 += f2;
- stopTimer(cnt, ii);
- }
- report("float += float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 = (float) (f2 + f3);
- stopTimer(cnt, ii);
- }
- report("float = float + float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 *= f2;
- stopTimer(cnt, ii);
- }
- report("float *= float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 = (float) (f2 * f3);
- stopTimer(cnt, ii);
- }
- report("float = float * float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 %= f2;
- stopTimer(cnt, ii);
- }
- report("float %= float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 = (float) (f2 % f3);
- stopTimer(cnt, ii);
- }
- report("float = float % float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 /= f2;
- stopTimer(cnt, ii);
- }
- report("float /= float");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- f1 = (float) (f2 / f3);
- stopTimer(cnt, ii);
- }
- report("float = float / float");
-
-
- println("--- double operators, local vars");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 += d2;
- stopTimer(cnt, ii);
- }
- report("double += double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 = (d2 + d3);
- stopTimer(cnt, ii);
- }
- report("double = double + double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 *= d2;
- stopTimer(cnt, ii);
- }
- report("double *= double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 = (d2 * d3);
- stopTimer(cnt, ii);
- }
- report("double = double * double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 %= d2;
- stopTimer(cnt, ii);
- }
- report("double %= double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 = (d2 % d3);
- stopTimer(cnt, ii);
- }
- report("double = double % double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 /= d2;
- stopTimer(cnt, ii);
- }
- report("double /= double");
-
- for (cnt = getSampleCount(); --cnt >= 0; ) {
- startTimer(true);
- for (ii = 0; go; ii++)
- d1 = (d2 / d3);
- stopTimer(cnt, ii);
- }
- report("double = double / double");
-
- useint[0] = dummy1; useint[1] = dummy2; useint[2] = dummy3;
- return finishTest();
- }
-} // class OperatorBenchmark
-
-// EOF
diff --git a/libjava/testsuite/libjava.compile/Semi.java b/libjava/testsuite/libjava.compile/Semi.java
deleted file mode 100644
index 39b3edc84b8..00000000000
--- a/libjava/testsuite/libjava.compile/Semi.java
+++ /dev/null
@@ -1,8 +0,0 @@
-// Simple compiler test.
-
-public class Semi
-{
- Semi () { };
-}
-
-
diff --git a/libjava/testsuite/libjava.compile/Statics.java b/libjava/testsuite/libjava.compile/Statics.java
deleted file mode 100644
index b86a57c409e..00000000000
--- a/libjava/testsuite/libjava.compile/Statics.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Simple compiler test.
-
-public interface Statics {
-
- public static final int OwnerGrabButtonMask = 1<<24;
-
-}
diff --git a/libjava/testsuite/libjava.compile/Twice.java b/libjava/testsuite/libjava.compile/Twice.java
deleted file mode 100644
index d80760f4dd5..00000000000
--- a/libjava/testsuite/libjava.compile/Twice.java
+++ /dev/null
@@ -1,14 +0,0 @@
-// Simple compiler test.
-
-public class Twice
-{
- Twice (boolean q)
- {
- if (q)
- for (int p = 0; p < 10; p++);
- else
- for (int p = 0; p < 10; p++);
- }
-}
-
-
diff --git a/libjava/testsuite/libjava.compile/Where.java b/libjava/testsuite/libjava.compile/Where.java
deleted file mode 100644
index 08fcc78b1d6..00000000000
--- a/libjava/testsuite/libjava.compile/Where.java
+++ /dev/null
@@ -1,12 +0,0 @@
-// Simple compiler test.
-
-public final class Where implements support.Waldo
-{
- int WhereIsWaldo ()
- {
- // The compiler should find 'here' in support.Waldo.
- return here;
- }
-}
-
-
diff --git a/libjava/testsuite/libjava.compile/euc_comment1.java b/libjava/testsuite/libjava.compile/euc_comment1.java
deleted file mode 100644
index bb556236eac..00000000000
--- a/libjava/testsuite/libjava.compile/euc_comment1.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class euc_comment1 {
- public static void main(String[] args) {
- /* ÆþÎÏ */
- }
-}
diff --git a/libjava/testsuite/libjava.compile/euc_comment2.java b/libjava/testsuite/libjava.compile/euc_comment2.java
deleted file mode 100644
index 9a9426f8005..00000000000
--- a/libjava/testsuite/libjava.compile/euc_comment2.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class euc_comment2 {
- public static void main(String[] args) {
- // ÆþÎÏ
- }
-}
diff --git a/libjava/testsuite/libjava.compile/euc_comment3.java b/libjava/testsuite/libjava.compile/euc_comment3.java
deleted file mode 100644
index b0f35d09d34..00000000000
--- a/libjava/testsuite/libjava.compile/euc_comment3.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class euc_comment3 {
- public static void main(String[] args) {
- // ÆþÎÏ
- }
-}
diff --git a/libjava/testsuite/libjava.compile/perc.java b/libjava/testsuite/libjava.compile/perc.java
deleted file mode 100644
index 8dc2f6f01fb..00000000000
--- a/libjava/testsuite/libjava.compile/perc.java
+++ /dev/null
@@ -1,9 +0,0 @@
-// This generates code that `gcj -C' doesn't like.
-
-public class perc
-{
- public static void main (String[] args)
- {
- System.out.println (27.0 % 10.0);
- }
-}
diff --git a/libjava/testsuite/libjava.compile/plusplus.java b/libjava/testsuite/libjava.compile/plusplus.java
deleted file mode 100644
index b8e9bd9fcbb..00000000000
--- a/libjava/testsuite/libjava.compile/plusplus.java
+++ /dev/null
@@ -1,10 +0,0 @@
-// Test from MoT <Sebastien.Villemot@ens.fr>.
-
-class plusplus {
- public static void main(String[] args)
- {
- int n = 5;
- int[] gnu = new int[10];
- gnu[n]++;
- }
-}
diff --git a/libjava/testsuite/libjava.compile/sjis_comment1.java b/libjava/testsuite/libjava.compile/sjis_comment1.java
deleted file mode 100644
index 26132821960..00000000000
--- a/libjava/testsuite/libjava.compile/sjis_comment1.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class sjis_comment1 {
- public static void main(String[] args) {
- /* “ü—Í */
- }
-}
diff --git a/libjava/testsuite/libjava.compile/sjis_comment2.java b/libjava/testsuite/libjava.compile/sjis_comment2.java
deleted file mode 100644
index d4ae92f191b..00000000000
--- a/libjava/testsuite/libjava.compile/sjis_comment2.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class sjis_comment2 {
- public static void main(String[] args) {
- // “ü—Í
- }
-}
diff --git a/libjava/testsuite/libjava.compile/sjis_comment3.java b/libjava/testsuite/libjava.compile/sjis_comment3.java
deleted file mode 100644
index 7370c4e444d..00000000000
--- a/libjava/testsuite/libjava.compile/sjis_comment3.java
+++ /dev/null
@@ -1,5 +0,0 @@
-public class sjis_comment3 {
- public static void main(String[] args) {
- // “ü—Í
- }
-}
diff --git a/libjava/testsuite/libjava.compile/support/Case.java b/libjava/testsuite/libjava.compile/support/Case.java
deleted file mode 100644
index 709b47aca5a..00000000000
--- a/libjava/testsuite/libjava.compile/support/Case.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package support;
-
-public class Case
-{
- public static final int A = 9;
-}
diff --git a/libjava/testsuite/libjava.compile/support/Waldo.java b/libjava/testsuite/libjava.compile/support/Waldo.java
deleted file mode 100644
index e28829d7af5..00000000000
--- a/libjava/testsuite/libjava.compile/support/Waldo.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package support;
-
-public interface Waldo {
-
- public static final int here = 9;
-
-}
diff --git a/libjava/testsuite/libjava.compile/test.exp b/libjava/testsuite/libjava.compile/test.exp
deleted file mode 100644
index db6aef19bb3..00000000000
--- a/libjava/testsuite/libjava.compile/test.exp
+++ /dev/null
@@ -1,10 +0,0 @@
-global srcdir subdir
-
-catch "glob -nocomplain ${srcdir}/${subdir}/*.java" srcfiles
-verbose "srcfiles are $srcfiles"
-
-set prefix ""
-foreach x $srcfiles {
- test_libjava $options "$x" "" "" "" "no-exec"
- test_libjava $options "$x" "-O" "" "" "no-exec"
-}