1/*
2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23/*
24 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
25 */
26package org.graalvm.compiler.jtt.micro;
27
28import org.junit.Test;
29
30import org.graalvm.compiler.jtt.JTTTest;
31
32/*
33 */
34public class BigMixedParams02 extends JTTTest {
35
36    @SuppressWarnings("unused")
37    public static float test(int choice, int i0, int i1, int i2, int i3, float p0, float p1, float p2, float p3, int i4, int i5, float p4, float p5, float p6, float p7, float p8) {
38        switch (choice) {
39            case 0:
40                return p0;
41            case 1:
42                return p1;
43            case 2:
44                return p2;
45            case 3:
46                return p3;
47            case 4:
48                return p4;
49            case 5:
50                return p5;
51            case 6:
52                return p6;
53            case 7:
54                return p7;
55            case 8:
56                return p8;
57        }
58        return 42;
59    }
60
61    @Test
62    public void run0() throws Throwable {
63        runTest("test", 0, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
64    }
65
66    @Test
67    public void run1() throws Throwable {
68        runTest("test", 1, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
69    }
70
71    @Test
72    public void run2() throws Throwable {
73        runTest("test", 2, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
74    }
75
76    @Test
77    public void run3() throws Throwable {
78        runTest("test", 3, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
79    }
80
81    @Test
82    public void run4() throws Throwable {
83        runTest("test", 4, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
84    }
85
86    @Test
87    public void run5() throws Throwable {
88        runTest("test", 5, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
89    }
90
91    @Test
92    public void run6() throws Throwable {
93        runTest("test", 6, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
94    }
95
96    @Test
97    public void run7() throws Throwable {
98        runTest("test", 7, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
99    }
100
101    @Test
102    public void run8() throws Throwable {
103        runTest("test", 8, -1, -1, -1, -1, 1f, 2f, 3f, 4f, -1, -1, 5f, 6f, 7f, 8f, 9f);
104    }
105
106}
107