comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/Narrow_byte02.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
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 Narrow_byte02 { 30 public class Narrow_byte02 extends JTTTest {
30 31
31 static class Byte { 32 static class Byte {
32 33
33 byte foo; 34 byte foo;
34 } 35 }
40 return val.foo; 41 return val.foo;
41 } 42 }
42 43
43 @Test 44 @Test
44 public void run0() throws Throwable { 45 public void run0() throws Throwable {
45 Assert.assertEquals(((byte) 0), test(((byte) 0))); 46 runTest("test", ((byte) 0));
46 } 47 }
47 48
48 @Test 49 @Test
49 public void run1() throws Throwable { 50 public void run1() throws Throwable {
50 Assert.assertEquals(((byte) 1), test(((byte) 1))); 51 runTest("test", ((byte) 1));
51 } 52 }
52 53
53 @Test 54 @Test
54 public void run2() throws Throwable { 55 public void run2() throws Throwable {
55 Assert.assertEquals(((byte) -1), test(((byte) -1))); 56 runTest("test", ((byte) -1));
56 } 57 }
57 58
58 @Test 59 @Test
59 public void run3() throws Throwable { 60 public void run3() throws Throwable {
60 Assert.assertEquals(((byte) 110), test(((byte) 110))); 61 runTest("test", ((byte) 110));
61 } 62 }
62 63
63 } 64 }