summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2012-06-22 13:52:12 -0700
committerbuzbee <buzbee@google.com>2012-06-26 11:27:36 -0700
commit4f1181fe061d3529f72e1237e7662bf9bc73c6e2 (patch)
treeea4044920632370d170a8b1c37ec4729ceb859f4 /test
parent147440427984816b6ed5235a9b1fb2cbf99496d0 (diff)
downloadart-4f1181fe061d3529f72e1237e7662bf9bc73c6e2.zip
art-4f1181fe061d3529f72e1237e7662bf9bc73c6e2.tar.gz
art-4f1181fe061d3529f72e1237e7662bf9bc73c6e2.tar.bz2
Quick compiler: support for 006, 012, 013, 017
Continued fleshing out of the Quick compiler. With this CL, we're passing run-tests 006, 012, 013 and 017. Note minor changes to the tests to allow for easy identification of methods we want to run through the Quick path. Also, set up by default now to dump bitcode file to /sdcard/Bitcode/ Change-Id: I77ec73a87a21064273567802ddb44c4fdf71f9fd
Diffstat (limited to 'test')
-rw-r--r--test/006-count10/src/Main.java5
-rw-r--r--test/012-math/src/Main.java5
-rw-r--r--test/013-math2/src/Main.java5
-rw-r--r--test/017-float/src/Main.java5
4 files changed, 16 insertions, 4 deletions
diff --git a/test/006-count10/src/Main.java b/test/006-count10/src/Main.java
index 650d053..8fd2947 100644
--- a/test/006-count10/src/Main.java
+++ b/test/006-count10/src/Main.java
@@ -18,9 +18,12 @@
* Simple loop-and-print
*/
public class Main {
- public static void main(String args[]) {
+ public static void count10_006() {
for (int i = 0; i < 10; i++) {
System.out.println(i);
}
}
+ public static void main(String args[]) {
+ count10_006();
+ }
}
diff --git a/test/012-math/src/Main.java b/test/012-math/src/Main.java
index 87ea40b..a4a8c71 100644
--- a/test/012-math/src/Main.java
+++ b/test/012-math/src/Main.java
@@ -18,7 +18,7 @@
* test simple math opers
*/
public class Main {
- public static void main(String args[]) {
+ public static void math_012() {
int pad0, pad1, pad2, pad3, pad4, pad5, pad6, pad7;
int pad8, pad9, pad10, pad11, pad12, pad13, pad14, pad15;
int a, b, res;
@@ -99,4 +99,7 @@ public class Main {
f %= g;
System.out.println("f:" +f);
}
+ public static void main(String args[]) {
+ math_012();
+ }
}
diff --git a/test/013-math2/src/Main.java b/test/013-math2/src/Main.java
index 819571d..2c80c31 100644
--- a/test/013-math2/src/Main.java
+++ b/test/013-math2/src/Main.java
@@ -18,7 +18,7 @@
* test add by a 16-bit constant
*/
public class Main {
- public static void main(String args[]) {
+ public static void math_013() {
int a, b, res;
a = 3;
@@ -28,4 +28,7 @@ public class Main {
a += 32000;
System.out.println("a:" +a);
}
+ public static void main(String args[]) {
+ math_013();
+ }
}
diff --git a/test/017-float/src/Main.java b/test/017-float/src/Main.java
index a5dbe1e..83fa2ee 100644
--- a/test/017-float/src/Main.java
+++ b/test/017-float/src/Main.java
@@ -18,7 +18,7 @@
* I dont know what this test does.
*/
public class Main {
- public static void main(String args[]) {
+ public static void float_017() {
float f = 3.1415926535f;
double d = 3.1415926535;
//float fd = (float) d;
@@ -30,4 +30,7 @@ public class Main {
//System.out.println("object values: off="
// + off.floatValue() + " ofd=" + ofd.floatValue());
}
+ public static void main(String args[]) {
+ float_017();
+ }
}