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/t076. 28 * VM Testbase keywords: [jit, quick] 29 * 30 * @library /vmTestbase 31 * /test/lib 32 * @run driver jdk.test.lib.FileInstaller . . 33 * @build jit.t.t076.t076 34 * @run driver ExecDriver --java jit.t.t076.t076 35 */ 36 37 package jit.t.t076; 38 39 import nsk.share.TestFailure; 40 import nsk.share.GoldChecker; 41 42 class t076{ 43 public static final GoldChecker goldChecker = new GoldChecker( "t076" ); 44 45 static long i0 = 0; 46 static long i1 = 1; 47 static long i2 = 2; 48 static long i3 = 3; 49 static long i4 = 4; 50 static long i5 = 5; 51 static long i6 = 6; 52 static long i7 = 7; 53 static long i8 = 8; 54 static long i9 = 9; 55 static long i10 = 10; 56 static long i11 = 11; 57 static long i12 = 12; 58 static long i13 = 13; 59 static long i14 = 14; 60 static long i15 = 15; 61 static long i16 = 16; 62 static long i17 = 17; 63 static long i18 = 18; 64 static long i19 = 19; 65 static long i20 = 20; 66 static long i21 = 21; 67 static long i22 = 22; 68 static long i23 = 23; 69 static long i24 = 24; 70 static long i25 = 25; 71 static long i26 = 26; 72 static long i27 = 27; 73 static long i28 = 28; 74 static long i29 = 29; 75 static long i30 = 30; 76 static long i31 = 31; 77 78 public static void main(String[] argv){ 79 long 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 t076.goldChecker.println(a); 86 t076.goldChecker.check(); 87 } 88 }