1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/compiler/7160610/Test7160610.java Mon May 07 12:37:46 2012 -0700 1.3 @@ -0,0 +1,71 @@ 1.4 +/* 1.5 + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. 1.11 + * 1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.14 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.15 + * version 2 for more details (a copy is included in the LICENSE file that 1.16 + * accompanied this code). 1.17 + * 1.18 + * You should have received a copy of the GNU General Public License version 1.19 + * 2 along with this work; if not, write to the Free Software Foundation, 1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.21 + * 1.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.23 + * or visit www.oracle.com if you need additional information or have any 1.24 + * questions. 1.25 + * 1.26 + */ 1.27 + 1.28 +/** 1.29 + * @test 1.30 + * @bug 7160610 1.31 + * @summary Unknown Native Code compilation issue. 1.32 + * 1.33 + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-OptimizeFill Test7160610 1.34 + */ 1.35 + 1.36 +public class Test7160610 { 1.37 + private static final byte[] BYTE_ARRAY = new byte[7]; 1.38 + private static int[] anIntArray1190 = new int[32768]; 1.39 + private static int[] anIntArray1191 = new int[32768]; 1.40 + 1.41 + public static void main(String arg[]) { 1.42 + int i = 256; 1.43 + for(int j = BYTE_ARRAY[2]; j < anIntArray1190.length; j++) { 1.44 + anIntArray1190[j] = BYTE_ARRAY[2]; 1.45 + } 1.46 + 1.47 + for(int k = BYTE_ARRAY[2]; (k ^ BYTE_ARRAY[1]) > -5001; k++) { 1.48 + int i1 = (int)(Math.random() * 128D * (double)i); 1.49 + anIntArray1190[i1] = (int)(Math.random() * 256D); 1.50 + } 1.51 + 1.52 + for(int l = BYTE_ARRAY[2]; (l ^ BYTE_ARRAY[1]) > -21; l++) { 1.53 + for(int j1 = BYTE_ARRAY[0]; j1 < i + -BYTE_ARRAY[0]; j1++) { 1.54 + for(int k1 = BYTE_ARRAY[0]; (k1 ^ BYTE_ARRAY[1]) > -128; k1++) { 1.55 + int l1 = k1 - -(j1 << 0x26cb6487); 1.56 + anIntArray1191[l1] = (anIntArray1190[l1 + -BYTE_ARRAY[0]] - -anIntArray1190[l1 - -BYTE_ARRAY[0]] - -anIntArray1190[-128 + l1] - -anIntArray1190[128 + l1]) / BYTE_ARRAY[6]; 1.57 + } 1.58 + } 1.59 + int ai[] = anIntArray1190; 1.60 + anIntArray1190 = anIntArray1191; 1.61 + anIntArray1191 = ai; 1.62 + } 1.63 + } 1.64 + 1.65 + static { 1.66 + BYTE_ARRAY[6] = 4; 1.67 + BYTE_ARRAY[5] = 5; 1.68 + BYTE_ARRAY[4] = 3; 1.69 + BYTE_ARRAY[3] = 2; 1.70 + BYTE_ARRAY[2] = 0; 1.71 + BYTE_ARRAY[1] = -1; 1.72 + BYTE_ARRAY[0] = 1; 1.73 + } 1.74 +}