hotspot/test/compiler/6431242/Test.java
author trims
Thu, 27 May 2010 19:08:38 -0700
changeset 5547 f4b087cbb361
parent 5352 cee8f7acb7bc
child 7662 5f31baaff55b
permissions -rw-r--r--
6941466: Oracle rebranding changes for Hotspot repositories Summary: Change all the Sun copyrights to Oracle copyright Reviewed-by: ohair
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
/*
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5352
diff changeset
     2
 * Copyright (c) 2006, 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
/*
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    26
 * @test
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    27
 * @bug 6431242
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    28
 * @run main/othervm -server -XX:+PrintCompilation Test
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
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    31
public class Test{
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    32
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    33
  int    _len      = 8;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    34
  int[]  _arr_i    = new int[_len];
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    35
  long[] _arr_l    = new long[_len];
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    36
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    37
  int[]  _arr_i_cp = new int [_len];
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    38
  long[] _arr_l_cp = new long [_len];
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    39
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    40
  int _k     = 0x12345678;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    41
  int _j     = 0;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    42
  int _ir    = 0x78563412;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    43
  int _ir1   = 0x78563413;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    44
  int _ir2   = 0x79563412;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    45
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    46
  long _m    = 0x123456789abcdef0L;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    47
  long _l    = 0L;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    48
  long _lr   = 0xf0debc9a78563412L;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    49
  long _lr1  = 0xf0debc9a78563413L;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    50
  long _lr2  = 0xf1debc9a78563412L;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    51
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    52
  void init() {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    53
    for (int i=0; i<_arr_i.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    54
      _arr_i[i] = _k;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    55
      _arr_l[i] = _m;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    56
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    57
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    58
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    59
  public int test_int_reversed(int i) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    60
    return Integer.reverseBytes(i);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    61
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    62
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    63
  public long test_long_reversed(long i) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    64
    return Long.reverseBytes(i);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    65
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    66
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    67
  public void test_copy_ints(int[] dst, int[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    68
    for(int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    69
      dst[i] = Integer.reverseBytes(src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    70
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    71
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    72
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    73
  public void test_copy_ints_reversed(int[] dst, int[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    74
    for (int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    75
      dst[i] = 1 + Integer.reverseBytes(src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    76
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    77
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    78
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    79
  public void test_copy_ints_store_reversed(int[] dst, int[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    80
    for(int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    81
      dst[i] = Integer.reverseBytes(1 + src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    82
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    83
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    84
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    85
  public void test_copy_longs(long[] dst, long[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    86
    for(int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    87
      dst[i] = Long.reverseBytes(src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    88
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    89
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    90
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    91
  public void test_copy_longs_reversed(long[] dst, long[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    92
    for (int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    93
      dst[i] = 1 + Long.reverseBytes(src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    94
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    95
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    96
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    97
  public void test_copy_longs_store_reversed(long[] dst, long[] src) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    98
    for(int i=0; i<src.length; i++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
    99
      dst[i] = Long.reverseBytes(1 + src[i]);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   100
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   101
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   102
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   103
  public void test() throws Exception {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   104
    int up_limit=90000;
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   105
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   106
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   107
    //test single
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   108
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   109
    for (int loop=0; loop<up_limit; loop++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   110
      _j = test_int_reversed(_k);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   111
      if (_j != _ir ) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   112
        throw new Exception("Interger.reverseBytes failed " + _j + " iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   113
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   114
      _l = test_long_reversed(_m);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   115
      if (_l != _lr ) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   116
        throw new Exception("Long.reverseBytes failed " + _l + " iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   117
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   118
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   119
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   120
    // test scalar load/store
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   121
    for (int loop=0; loop<up_limit; loop++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   122
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   123
      test_copy_ints(_arr_i_cp, _arr_i);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   124
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   125
        if (_arr_i_cp[j] != _ir) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   126
          throw new Exception("Interger.reverseBytes failed test_copy_ints iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   127
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   128
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   129
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   130
      test_copy_ints_reversed(_arr_i_cp, _arr_i);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   131
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   132
        if (_arr_i_cp[j] != _ir1) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   133
          throw new Exception("Interger.reverseBytes failed test_copy_ints_reversed iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   134
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   135
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   136
      test_copy_ints_store_reversed(_arr_i_cp, _arr_i);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   137
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   138
        if (_arr_i_cp[j] != _ir2) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   139
          throw new Exception("Interger.reverseBytes failed test_copy_ints_store_reversed iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   140
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   141
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   142
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   143
      test_copy_longs(_arr_l_cp, _arr_l);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   144
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   145
        if (_arr_l_cp[j] != _lr) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   146
          throw new Exception("Long.reverseBytes failed test_copy_longs iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   147
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   148
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   149
      test_copy_longs_reversed(_arr_l_cp, _arr_l);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   150
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   151
        if (_arr_l_cp[j] != _lr1) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   152
          throw new Exception("Long.reverseBytes failed test_copy_longs_reversed iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   153
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   154
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   155
      test_copy_longs_store_reversed(_arr_l_cp, _arr_l);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   156
      for (int j=0; j< _arr_i.length; j++) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   157
        if (_arr_l_cp[j] != _lr2) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   158
          throw new Exception("Long.reverseBytes failed test_copy_longs_store_reversed iter " + loop);
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   159
        }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   160
      }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   161
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   162
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   163
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   164
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   165
  public static void main(String args[]) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   166
    try {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   167
      Test t = new Test();
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   168
      t.init();
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   169
      t.test();
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   170
      System.out.println("Passed");
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   171
    }catch (Exception e) {
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   172
      e.printStackTrace();
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   173
      System.out.println("Failed");
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   174
    }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   175
  }
cee8f7acb7bc 6946040: add intrinsic for short and char reverseBytes
never
parents:
diff changeset
   176
}