BC_fcmp07.java revision 12651:6ef01bd40ce2
198944Sobrien/* 2130809Smarcel * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 398944Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 498944Sobrien * 598944Sobrien * This code is free software; you can redistribute it and/or modify it 698944Sobrien * under the terms of the GNU General Public License version 2 only, as 798944Sobrien * published by the Free Software Foundation. 898944Sobrien * 998944Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT 1098944Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1198944Sobrien * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1298944Sobrien * version 2 for more details (a copy is included in the LICENSE file that 1398944Sobrien * accompanied this code). 1498944Sobrien * 1598944Sobrien * You should have received a copy of the GNU General Public License version 1698944Sobrien * 2 along with this work; if not, write to the Free Software Foundation, 1798944Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1898944Sobrien * 1998944Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2098944Sobrien * or visit www.oracle.com if you need additional information or have any 2198944Sobrien * questions. 2298944Sobrien */ 2398944Sobrienpackage org.graalvm.compiler.jtt.bytecode; 2498944Sobrien 2598944Sobrienimport org.junit.Test; 2698944Sobrien 2798944Sobrienimport org.graalvm.compiler.jtt.JTTTest; 2898944Sobrien 2998944Sobrien/* 3098944Sobrien */ 3198944Sobrienpublic class BC_fcmp07 extends JTTTest { 3298944Sobrien 3398944Sobrien public static boolean test(float a) { 3498944Sobrien return 0.0f > (a / a); 3598944Sobrien } 3698944Sobrien 3798944Sobrien @Test 3898944Sobrien public void run0() throws Throwable { 3998944Sobrien runTest("test", -1.0f); 4098944Sobrien } 4198944Sobrien 4298944Sobrien @Test 4398944Sobrien public void run1() throws Throwable { 4498944Sobrien runTest("test", 1.0f); 4598944Sobrien } 46130809Smarcel 4798944Sobrien @Test 4898944Sobrien public void run2() throws Throwable { 4998944Sobrien runTest("test", 0.0f); 5098944Sobrien } 5198944Sobrien 5298944Sobrien} 5398944Sobrien