Signed-off-by: Tomek Grabiec <[email protected]>
---
Makefile | 3 +-
regression/jvm/WideTest.j | 47 +++++++++++++++++++++++++++++++++++++++++++++
regression/run-suite.sh | 1 +
3 files changed, 50 insertions(+), 1 deletions(-)
create mode 100644 regression/jvm/WideTest.j
diff --git a/Makefile b/Makefile
index 59a7a25..1adba1e 100644
--- a/Makefile
+++ b/Makefile
@@ -257,7 +257,8 @@ REGRESSION_TEST_SUITE_CLASSES = \
regression/jvm/TrampolineBackpatchingTest.class
JASMIN_REGRESSION_TEST_SUITE_CLASSES = \
- regression/jvm/SubroutineTest.class
+ regression/jvm/SubroutineTest.class \
+ regression/jvm/WideTest.class
$(REGRESSION_TEST_SUITE_CLASSES): %.class: %.java
$(E) " JAVAC " $@
diff --git a/regression/jvm/WideTest.j b/regression/jvm/WideTest.j
new file mode 100644
index 0000000..cedb13c
--- /dev/null
+++ b/regression/jvm/WideTest.j
@@ -0,0 +1,47 @@
+.class public jvm/WideTest
+.super jvm/TestCase
+
+.method public static testIstoreIload()V
+ .limit locals 257
+
+ iconst_0
+ istore 0
+
+ iconst_3
+ istore_w 256
+ iload_w 256
+
+ iconst_3
+ invokestatic jvm/TestCase/assertEquals(II)V
+ return
+.end method
+
+.method public static testIinc()V
+ .limit locals 257
+
+ iconst_0
+ istore 0
+
+ iconst_3
+ istore_w 256
+
+ iinc_w 256 1
+ iload_w 256
+
+ iconst_4
+ invokestatic jvm/TestCase/assertEquals(II)V
+ return
+.end method
+
+.method public static testGoto()V
+ goto_w lab1
+lab1:
+ return
+.end method
+
+.method public static main([Ljava/lang/String;)V
+ invokestatic jvm/WideTest/testIstoreIload()V
+ invokestatic jvm/WideTest/testIinc()V
+ invokestatic jvm/WideTest/testGoto()V
+ return
+.end method
diff --git a/regression/run-suite.sh b/regression/run-suite.sh
index 64a1978..b88d6d5 100755
--- a/regression/run-suite.sh
+++ b/regression/run-suite.sh
@@ -83,6 +83,7 @@ if [ -z "$CLASS_LIST" ]; then
run_java jvm.SynchronizationTest 0
run_java jvm.TrampolineBackpatchingTest 0
run_java jvm.SubroutineTest 0
+ run_java jvm.WideTest 0
else
for i in $CLASS_LIST; do
run_java $i 0
--
1.6.0.6
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel