BC_fload_2.java revision 12651:6ef01bd40ce2
18097Sjkh/*
28097Sjkh * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
38097Sjkh * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
48097Sjkh *
58097Sjkh * This code is free software; you can redistribute it and/or modify it
68097Sjkh * under the terms of the GNU General Public License version 2 only, as
78097Sjkh * published by the Free Software Foundation.
88097Sjkh *
98881Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT
108881Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
118097Sjkh * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
128097Sjkh * version 2 for more details (a copy is included in the LICENSE file that
138097Sjkh * accompanied this code).
148097Sjkh *
158097Sjkh * You should have received a copy of the GNU General Public License version
168097Sjkh * 2 along with this work; if not, write to the Free Software Foundation,
178097Sjkh * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
188097Sjkh *
198097Sjkh * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
208097Sjkh * or visit www.oracle.com if you need additional information or have any
218097Sjkh * questions.
228097Sjkh */
238097Sjkh/*
248097Sjkh * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
258097Sjkh */
268097Sjkhpackage org.graalvm.compiler.jtt.bytecode;
278097Sjkh
28124067Sobrienimport org.junit.Test;
298097Sjkh
308097Sjkhimport org.graalvm.compiler.jtt.JTTTest;
31161060Snetchild
32161060Snetchild/*
338097Sjkh */
3421243Sjkhpublic class BC_fload_2 extends JTTTest {
3521243Sjkh
3637735Sjkh    @SuppressWarnings("unused")
3725052Sjkh    public static float test(float i, float arg) {
388097Sjkh        return arg;
398097Sjkh    }
408097Sjkh
418097Sjkh    @Test
428097Sjkh    public void run0() throws Throwable {
4321243Sjkh        runTest("test", 0f, -1f);
4421243Sjkh    }
4521243Sjkh
468097Sjkh    @Test
478208Sjkh    public void run1() throws Throwable {
488208Sjkh        runTest("test", 0f, -1.01f);
49161060Snetchild    }
50107336Sjhb
51107336Sjhb}
52107336Sjhb