|
1 /* |
|
2 * Copyright (c) 2008, 2018, 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 /* |
|
25 * @test |
|
26 * |
|
27 * @summary converted from VM Testbase jit/t/t077. |
|
28 * VM Testbase keywords: [jit, quick] |
|
29 * |
|
30 * @library /vmTestbase |
|
31 * /test/lib |
|
32 * @run driver jdk.test.lib.FileInstaller . . |
|
33 * @build jit.t.t077.t077 |
|
34 * @run driver ExecDriver --java jit.t.t077.t077 |
|
35 */ |
|
36 |
|
37 package jit.t.t077; |
|
38 |
|
39 import nsk.share.TestFailure; |
|
40 import nsk.share.GoldChecker; |
|
41 |
|
42 class t077{ |
|
43 public static final GoldChecker goldChecker = new GoldChecker( "t077" ); |
|
44 |
|
45 static float i0 = 0.0f; |
|
46 static float i1 = 1.0f; |
|
47 static float i2 = 2.0f; |
|
48 static float i3 = 3.0f; |
|
49 static float i4 = 4.0f; |
|
50 static float i5 = 5.0f; |
|
51 static float i6 = 6.0f; |
|
52 static float i7 = 7.0f; |
|
53 static float i8 = 8.0f; |
|
54 static float i9 = 9.0f; |
|
55 static float i10 = 10.0f; |
|
56 static float i11 = 11.0f; |
|
57 static float i12 = 12.0f; |
|
58 static float i13 = 13.0f; |
|
59 static float i14 = 14.0f; |
|
60 static float i15 = 15.0f; |
|
61 static float i16 = 16.0f; |
|
62 static float i17 = 17.0f; |
|
63 static float i18 = 18.0f; |
|
64 static float i19 = 19.0f; |
|
65 static float i20 = 20.0f; |
|
66 static float i21 = 21.0f; |
|
67 static float i22 = 22.0f; |
|
68 static float i23 = 23.0f; |
|
69 static float i24 = 24.0f; |
|
70 static float i25 = 25.0f; |
|
71 static float i26 = 26.0f; |
|
72 static float i27 = 27.0f; |
|
73 static float i28 = 28.0f; |
|
74 static float i29 = 29.0f; |
|
75 static float i30 = 30.0f; |
|
76 static float i31 = 31.0f; |
|
77 |
|
78 public static void main(String[] argv){ |
|
79 float a; |
|
80 a = |
|
81 (((((i0 + i1) + (i2 + i3)) + ((i4 + i5) + (i6 + i7))) + |
|
82 (((i8 + i9) + (i10 + i11)) + ((i12 + i13) + (i14 + i15)))) + |
|
83 ((((i16 + i17) + (i18 + i19)) + ((i20 + i21) + (i22 + i23))) + |
|
84 (((i24 + i25) + (i26 + i27)) + ((i28 + i29) + (i30 + i31))))); |
|
85 t077.goldChecker.println(a); |
|
86 t077.goldChecker.check(); |
|
87 } |
|
88 } |