hotspot/test/compiler/codegen/Test6431242.java
author stsmirno
Mon, 17 Oct 2016 18:54:12 -0400
changeset 41705 332239c052cc
parent 40059 c2304140ed64
permissions -rw-r--r--
8165687: Fix license and copyright headers in jd9 under hotspot/test Summary: Legal notices and Oracle copyrights were updated (white and blank space, commas) in tests files for uniformity to meet Oracle requirements. Reviewed-by: dholmes, iris Contributed-by: Stanislav Smirnov <stanislav.smirnov@oracle.com>, Vassili Igouchkine <vassili.igouchkine@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     1
/*
22234
da823d78ad65 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents: 15864
diff changeset
     2
 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     4
 *
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     7
 * published by the Free Software Foundation.
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     8
 *
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    13
 * accompanied this code).
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    14
 *
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5352
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5352
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5352
diff changeset
    21
 * questions.
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    22
 */
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    23
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    24
/*
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    25
 * @test
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    26
 * @bug 6431242
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    27
 *
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    28
 * @run main compiler.codegen.Test6431242
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    29
 */
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    30
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    31
package compiler.codegen;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    32
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    33
public class Test6431242 {
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    34
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    35
    int _len = 8;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    36
    int[] _arr_i = new int[_len];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    37
    long[] _arr_l = new long[_len];
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    38
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    39
    int[] _arr_i_cp = new int[_len];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    40
    long[] _arr_l_cp = new long[_len];
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    41
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    42
    int _k = 0x12345678;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    43
    int _j = 0;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    44
    int _ir = 0x78563412;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    45
    int _ir1 = 0x78563413;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    46
    int _ir2 = 0x79563412;
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    47
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    48
    long _m = 0x123456789abcdef0L;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    49
    long _l = 0L;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    50
    long _lr = 0xf0debc9a78563412L;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    51
    long _lr1 = 0xf0debc9a78563413L;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    52
    long _lr2 = 0xf1debc9a78563412L;
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    53
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    54
    void init() {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    55
        for (int i = 0; i < _arr_i.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    56
            _arr_i[i] = _k;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    57
            _arr_l[i] = _m;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    58
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    59
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    60
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    61
    public int test_int_reversed(int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    62
        return Integer.reverseBytes(i);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    63
    }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    64
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    65
    public long test_long_reversed(long i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    66
        return Long.reverseBytes(i);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    67
    }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    68
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    69
    public void test_copy_ints(int[] dst, int[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    70
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    71
            dst[i] = Integer.reverseBytes(src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    72
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    73
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    74
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    75
    public void test_copy_ints_reversed(int[] dst, int[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    76
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    77
            dst[i] = 1 + Integer.reverseBytes(src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    78
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    79
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    80
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    81
    public void test_copy_ints_store_reversed(int[] dst, int[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    82
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    83
            dst[i] = Integer.reverseBytes(1 + src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    84
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    85
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    86
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    87
    public void test_copy_longs(long[] dst, long[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    88
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    89
            dst[i] = Long.reverseBytes(src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    90
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    91
    }
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    92
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    93
    public void test_copy_longs_reversed(long[] dst, long[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    94
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    95
            dst[i] = 1 + Long.reverseBytes(src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    96
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    97
    }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    98
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    99
    public void test_copy_longs_store_reversed(long[] dst, long[] src) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   100
        for (int i = 0; i < src.length; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   101
            dst[i] = Long.reverseBytes(1 + src[i]);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   102
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   103
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   104
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   105
    public void test() throws Exception {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   106
        int up_limit = 90000;
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   107
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   108
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   109
        //test single
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   110
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   111
        for (int loop = 0; loop < up_limit; loop++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   112
            _j = test_int_reversed(_k);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   113
            if (_j != _ir) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   114
                throw new Exception("Interger.reverseBytes failed " + _j + " iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   115
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   116
            _l = test_long_reversed(_m);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   117
            if (_l != _lr) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   118
                throw new Exception("Long.reverseBytes failed " + _l + " iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   119
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   120
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   121
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   122
        // test scalar load/store
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   123
        for (int loop = 0; loop < up_limit; loop++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   124
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   125
            test_copy_ints(_arr_i_cp, _arr_i);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   126
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   127
                if (_arr_i_cp[j] != _ir) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   128
                    throw new Exception("Interger.reverseBytes failed test_copy_ints iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   129
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   130
            }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   131
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   132
            test_copy_ints_reversed(_arr_i_cp, _arr_i);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   133
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   134
                if (_arr_i_cp[j] != _ir1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   135
                    throw new Exception("Interger.reverseBytes failed test_copy_ints_reversed iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   136
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   137
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   138
            test_copy_ints_store_reversed(_arr_i_cp, _arr_i);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   139
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   140
                if (_arr_i_cp[j] != _ir2) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   141
                    throw new Exception("Interger.reverseBytes failed test_copy_ints_store_reversed iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   142
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   143
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   144
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   145
            test_copy_longs(_arr_l_cp, _arr_l);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   146
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   147
                if (_arr_l_cp[j] != _lr) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   148
                    throw new Exception("Long.reverseBytes failed test_copy_longs iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   149
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   150
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   151
            test_copy_longs_reversed(_arr_l_cp, _arr_l);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   152
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   153
                if (_arr_l_cp[j] != _lr1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   154
                    throw new Exception("Long.reverseBytes failed test_copy_longs_reversed iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   155
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   156
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   157
            test_copy_longs_store_reversed(_arr_l_cp, _arr_l);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   158
            for (int j = 0; j < _arr_i.length; j++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   159
                if (_arr_l_cp[j] != _lr2) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   160
                    throw new Exception("Long.reverseBytes failed test_copy_longs_store_reversed iter " + loop);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   161
                }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   162
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   163
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   164
        }
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   165
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   166
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   167
    public static void main(String args[]) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   168
        try {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   169
            Test6431242 t = new Test6431242();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   170
            t.init();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   171
            t.test();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   172
            System.out.println("Passed");
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   173
        } catch (Exception e) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   174
            e.printStackTrace();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   175
            System.out.println("Failed");
5352
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   176
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   177
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   178
}