harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r582772 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H2196: ./ LoopExc.j run.test.xml
Date Mon, 08 Oct 2007 10:48:10 GMT
Author: varlax
Date: Mon Oct  8 03:48:08 2007
New Revision: 582772

URL: http://svn.apache.org/viewvc?rev=582772&view=rev
Log:
Added reg-test for HARMONY-2196 [drlvm][jit][opt] loop optimizations fail (in server_static
mode) if a dispatch node becomes a loop header for multiple loops

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H2196/
    harmony/enhanced/drlvm/trunk/src/test/regression/H2196/LoopExc.j
    harmony/enhanced/drlvm/trunk/src/test/regression/H2196/run.test.xml

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2196/LoopExc.j
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2196/LoopExc.j?rev=582772&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2196/LoopExc.j (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2196/LoopExc.j Mon Oct  8 03:48:08 2007
@@ -0,0 +1,54 @@
+.class public org/apache/harmony/drlvm/tests/regression/h2196/LoopExcTest
+.super java/lang/Object
+
+.method public static main([Ljava/lang/String;)V
+.limit stack 4
+.limit locals 4
+
+	iconst_0
+	istore_2
+    iconst_m1
+    istore_3
+    iload 2
+    iconst_0
+    isub
+    ifeq FirstThrower
+TryStart:
+	aconst_null
+    ldc "hi"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+    goto ExitLabel
+FirstThrower:
+	aconst_null
+    ldc "hi"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+    goto ExitLabel
+ExcTarget:
+    pop
+TryEnd1:
+    iinc 3 1
+    iload_3
+    ifeq NextLabel
+	iinc 2 1       ; <-- use var2
+    iload 2
+    ifne PassLabel
+	aconst_null
+    ldc "hi"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+NextLabel:
+	aconst_null
+    ldc "hi"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+NextLabel2:
+	aconst_null
+    ldc "hi"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+PassLabel:
+	getstatic java.lang.System.out Ljava/io/PrintStream;
+	ldc "PASS"
+	invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
+ExitLabel:
+	return
+
+.catch all from TryStart to ExitLabel using ExcTarget
+.end method

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2196/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2196/run.test.xml?rev=582772&view=auto
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2196/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2196/run.test.xml Mon Oct  8 03:48:08
2007
@@ -0,0 +1,9 @@
+<project name="RUN HARMONY-2196 Regression Test">
+    <target name="run-test">
+        <run-pjava-test 
+             test="org.apache.harmony.drlvm.tests.regression.h2196.LoopExcTest"
+             vmarg="-Xem:server_static">
+        </run-pjava-test>
+    </target>
+</project>
+



Mime
View raw message