comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/Phi01.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 4cc0efe5cffe
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.jtt.optimize; 23 package com.oracle.graal.jtt.optimize;
24 24
25 import com.oracle.graal.jtt.*;
25 import org.junit.*; 26 import org.junit.*;
26 27
27 /* 28 /*
28 */ 29 */
29 public class Phi01 { 30 public class Phi01 extends JTTTest {
30 31
31 public static class Phi { 32 public static class Phi {
32 33
33 int f; 34 int f;
34 35
68 return arg + p.f; 69 return arg + p.f;
69 } 70 }
70 71
71 @Test 72 @Test
72 public void run0() throws Throwable { 73 public void run0() throws Throwable {
73 Assert.assertEquals(8, test(0)); 74 runTest("test", 0);
74 } 75 }
75 76
76 @Test 77 @Test
77 public void run1() throws Throwable { 78 public void run1() throws Throwable {
78 Assert.assertEquals(10, test(1)); 79 runTest("test", 1);
79 } 80 }
80 81
81 @Test 82 @Test
82 public void run2() throws Throwable { 83 public void run2() throws Throwable {
83 Assert.assertEquals(12, test(2)); 84 runTest("test", 2);
84 } 85 }
85 86
86 @Test 87 @Test
87 public void run3() throws Throwable { 88 public void run3() throws Throwable {
88 Assert.assertEquals(8, test(3)); 89 runTest("test", 3);
89 } 90 }
90 91
91 @Test 92 @Test
92 public void run4() throws Throwable { 93 public void run4() throws Throwable {
93 Assert.assertEquals(10, test(4)); 94 runTest("test", 4);
94 } 95 }
95 96
96 @Test 97 @Test
97 public void run5() throws Throwable { 98 public void run5() throws Throwable {
98 Assert.assertEquals(14, test(6)); 99 runTest("test", 6);
99 } 100 }
100 101
101 } 102 }