comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_fload_2.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 0320e6278f84
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
23 /* 23 /*
24 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 24 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
25 */ 25 */
26 package com.oracle.graal.jtt.bytecode; 26 package com.oracle.graal.jtt.bytecode;
27 27
28 import com.oracle.graal.jtt.*;
28 import org.junit.*; 29 import org.junit.*;
29 30
30 /* 31 /*
31 */ 32 */
32 public class BC_fload_2 { 33 public class BC_fload_2 extends JTTTest {
33 34
34 @SuppressWarnings("unused") 35 @SuppressWarnings("unused")
35 public static float test(float i, float arg) { 36 public static float test(float i, float arg) {
36 return arg; 37 return arg;
37 } 38 }
38 39
39 @Test 40 @Test
40 public void run0() throws Throwable { 41 public void run0() throws Throwable {
41 Assert.assertEquals(-1f, test(0f, -1f), 0); 42 runTestWithDelta(0, "test", 0f, -1f);
42 } 43 }
43 44
44 @Test 45 @Test
45 public void run1() throws Throwable { 46 public void run1() throws Throwable {
46 Assert.assertEquals(-1.01f, test(0f, -1.01f), 0); 47 runTestWithDelta(0, "test", 0f, -1.01f);
47 } 48 }
48 49
49 } 50 }