hotspot/test/compiler/7160610/Test7160610.java
author duke
Wed, 05 Jul 2017 18:18:57 +0200
changeset 13386 382651d28f25
parent 12594 6e6bb5986456
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12594
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     1
/*
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     2
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     4
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     8
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    13
 * accompanied this code).
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    14
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    18
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    21
 * questions.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    22
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    23
 */
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    24
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    25
/**
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    26
 * @test
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    27
 * @bug 7160610
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    28
 * @summary Unknown Native Code compilation issue.
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    29
 *
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    30
 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-OptimizeFill Test7160610
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    31
 */
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    32
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    33
public class Test7160610 {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    34
  private static final byte[] BYTE_ARRAY = new byte[7];
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    35
  private static int[] anIntArray1190 = new int[32768];
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    36
  private static int[] anIntArray1191 = new int[32768];
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    37
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    38
  public static void main(String arg[]) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    39
    int i = 256;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    40
    for(int j = BYTE_ARRAY[2]; j < anIntArray1190.length; j++) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    41
      anIntArray1190[j] = BYTE_ARRAY[2];
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    42
    }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    43
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    44
    for(int k = BYTE_ARRAY[2]; (k ^ BYTE_ARRAY[1]) > -5001; k++) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    45
      int i1 = (int)(Math.random() * 128D * (double)i);
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    46
      anIntArray1190[i1] = (int)(Math.random() * 256D);
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    47
    }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    48
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    49
    for(int l = BYTE_ARRAY[2]; (l ^ BYTE_ARRAY[1]) > -21; l++) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    50
      for(int j1 = BYTE_ARRAY[0]; j1 < i + -BYTE_ARRAY[0]; j1++) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    51
        for(int k1 = BYTE_ARRAY[0]; (k1 ^ BYTE_ARRAY[1]) > -128; k1++) {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    52
          int l1 = k1 - -(j1 << 0x26cb6487);
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    53
          anIntArray1191[l1] = (anIntArray1190[l1 + -BYTE_ARRAY[0]] - -anIntArray1190[l1 - -BYTE_ARRAY[0]] - -anIntArray1190[-128 + l1] - -anIntArray1190[128 + l1]) / BYTE_ARRAY[6];
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    54
        }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    55
      }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    56
      int ai[] = anIntArray1190;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    57
      anIntArray1190 = anIntArray1191;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    58
      anIntArray1191 = ai;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    59
    }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    60
  }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    61
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    62
  static {
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    63
    BYTE_ARRAY[6] = 4;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    64
    BYTE_ARRAY[5] = 5;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    65
    BYTE_ARRAY[4] = 3;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    66
    BYTE_ARRAY[3] = 2;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    67
    BYTE_ARRAY[2] = 0;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    68
    BYTE_ARRAY[1] = -1;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    69
    BYTE_ARRAY[0] = 1;
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    70
  }
6e6bb5986456 7160610: Unknown Native Code compilation issue
kvn
parents:
diff changeset
    71
}