diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopPhi.java @ 7282:390448a6b535

converted the JTT tests to use the GraalCompilerTest framework which offers more control over what is compiled and executed the HP_series and FloatingReads tests have been disabled temporarily
author Doug Simon <doug.simon@oracle.com>
date Thu, 20 Dec 2012 14:59:57 +0100
parents e808627bd16f
children 64dcb92ee75a
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopPhi.java	Thu Dec 20 13:14:56 2012 +0100
+++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/loop/LoopPhi.java	Thu Dec 20 14:59:57 2012 +0100
@@ -22,21 +22,22 @@
  */
 package com.oracle.graal.jtt.loop;
 
+import com.oracle.graal.jtt.*;
 import org.junit.*;
 
 /*
  */
 
-public class LoopPhi {
+public class LoopPhi extends JTTTest {
 
     public static int test(int arg) {
         for (int i = 0; i < arg; i++) {
-            test(1, 1, 1, 1, 1, 1);
+            testHelper(1, 1, 1, 1, 1, 1);
         }
-        return test(1, 1, 1, 1, 1, 1);
+        return testHelper(1, 1, 1, 1, 1, 1);
     }
 
-    public static int test(int j1, int j2, int j3, int j4, int j5, int j6) {
+    public static int testHelper(int j1, int j2, int j3, int j4, int j5, int j6) {
         int i1 = j1;
         int i2 = j2;
         int i3 = j3;
@@ -70,7 +71,7 @@
 
     @Test
     public void run0() throws Throwable {
-        Assert.assertEquals(11, test(50000));
+        runTest("test", 50000);
     }
 
 }