@@ -0,0 +1,1509 @@
+/*%0A * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.%0A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.%0A *%0A * This code is free software; you can redistribute it and/or modify it%0A * under the terms of the GNU General Public License version 2 only, as%0A * published by the Free Software Foundation.%0A *%0A * This code is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License%0A * version 2 for more details (a copy is included in the LICENSE file that%0A * accompanied this code).%0A *%0A * You should have received a copy of the GNU General Public License version%0A * 2 along with this work; if not, write to the Free Software Foundation,%0A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.%0A *%0A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA%0A * or visit www.oracle.com if you need additional information or have any%0A * questions.%0A */%0Apackage com.oracle.graal.jtt.loop;%0A%0Aimport com.oracle.graal.jtt.*;%0Aimport org.junit.*;%0A%0A/*%0A */%0Apublic class LoopUnroll extends JTTTest %7B%0A%0A    public static int test(int input) %7B%0A        int ret = 2;%0A        int current = input;%0A        for (int i = 0; i %3C 7; i++) %7B%0A            ret *= 2 + current;%0A            current /= 50;%0A        %7D%0A        return ret;%0A    %7D%0A%0A    @Test%0A    public void run0() throws Throwable %7B%0A        runTest(%22test%22, 42);%0A    %7D%0A%0A%7D%0A

Test case for loop unrolling.