test/hotspot/jtreg/compiler/codegen/TestCharVect2.java
author cgo
Fri, 15 Nov 2019 11:05:03 +0100
changeset 59136 fc998c509521
parent 53052 11f59b9c72fe
permissions -rw-r--r--
8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs Reviewed-by: iignatyev, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14131
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     1
/*
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     2
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     4
 *
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     8
 *
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    13
 * accompanied this code).
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    14
 *
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    18
 *
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    21
 * questions.
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    22
 */
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    23
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    24
/**
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    25
 * @test
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    26
 * @bug 8001183
59136
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    27
 * @summary incorrect results of char vectors right shift operation
14131
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    28
 *
50407
3dfdcca00ecc 8204168: Increase small heap sizes in tests to accommodate ZGC
stefank
parents: 47216
diff changeset
    29
 * @run main/othervm/timeout=400 -Xbatch -Xmx128m compiler.codegen.TestCharVect2
59136
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    30
 */
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    31
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    32
/**
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    33
 * @test
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    34
 * @bug 8001183
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    35
 * @summary incorrect results of char vectors right shift operation
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    36
 * @requires vm.compiler2.enabled | vm.graal.enabled
fc998c509521 8231954: Test compiler/codegen/TestCharVect2.java only works with server VMs
cgo
parents: 53052
diff changeset
    37
 *
53052
11f59b9c72fe 8213134: AArch64: vector shift failed with MaxVectorSize=8
yzhang
parents: 50407
diff changeset
    38
 * @run main/othervm/timeout=400 -Xbatch -Xmx128m -XX:MaxVectorSize=8 compiler.codegen.TestCharVect2
11f59b9c72fe 8213134: AArch64: vector shift failed with MaxVectorSize=8
yzhang
parents: 50407
diff changeset
    39
 * @run main/othervm/timeout=400 -Xbatch -Xmx128m -XX:MaxVectorSize=16 compiler.codegen.TestCharVect2
11f59b9c72fe 8213134: AArch64: vector shift failed with MaxVectorSize=8
yzhang
parents: 50407
diff changeset
    40
 * @run main/othervm/timeout=400 -Xbatch -Xmx128m -XX:MaxVectorSize=32 compiler.codegen.TestCharVect2
14131
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    41
 */
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    42
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    43
package compiler.codegen;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    44
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    45
public class TestCharVect2 {
14131
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    46
  private static final int ARRLEN = 997;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    47
  private static final int ITERS  = 11000;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    48
  private static final int ADD_INIT = Character.MAX_VALUE-500;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    49
  private static final int BIT_MASK = 0xB731;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    50
  private static final int VALUE = 7;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    51
  private static final int SHIFT = 16;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    52
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    53
  public static void main(String args[]) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    54
    System.out.println("Testing Char vectors");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    55
    int errn = test();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    56
    if (errn > 0) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    57
      System.err.println("FAILED: " + errn + " errors");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    58
      System.exit(97);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    59
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    60
    System.out.println("PASSED");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    61
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    62
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    63
  static int test() {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    64
    char[] a0 = new char[ARRLEN];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    65
    char[] a1 = new char[ARRLEN];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    66
    short[] a2 = new short[ARRLEN];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    67
    short[] a3 = new short[ARRLEN];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    68
    short[] a4 = new short[ARRLEN];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    69
     int[] p2 = new  int[ARRLEN/2];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    70
    long[] p4 = new long[ARRLEN/4];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    71
    // Initialize
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    72
    int gold_sum = 0;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    73
    for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    74
      char val = (char)(ADD_INIT+i);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    75
      gold_sum += val;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    76
      a1[i] = val;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    77
      a2[i] = VALUE;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    78
      a3[i] = -VALUE;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    79
      a4[i] = (short)BIT_MASK;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    80
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    81
    System.out.println("Warmup");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    82
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    83
      test_sum(a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    84
      test_addc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    85
      test_addv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    86
      test_adda(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    87
      test_subc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    88
      test_subv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    89
      test_suba(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    90
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    91
      test_mulc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    92
      test_mulv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    93
      test_mula(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    94
      test_divc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    95
      test_divv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    96
      test_diva(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    97
      test_mulc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    98
      test_mulv(a0, a1, (char)-VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
    99
      test_mula(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   100
      test_divc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   101
      test_divv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   102
      test_diva(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   103
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   104
      test_andc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   105
      test_andv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   106
      test_anda(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   107
      test_orc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   108
      test_orv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   109
      test_ora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   110
      test_xorc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   111
      test_xorv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   112
      test_xora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   113
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   114
      test_sllc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   115
      test_sllv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   116
      test_srlc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   117
      test_srlv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   118
      test_srac(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   119
      test_srav(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   120
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   121
      test_sllc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   122
      test_sllv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   123
      test_srlc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   124
      test_srlv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   125
      test_srac_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   126
      test_srav(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   127
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   128
      test_sllc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   129
      test_sllv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   130
      test_srlc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   131
      test_srlv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   132
      test_srac_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   133
      test_srav(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   134
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   135
      test_sllc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   136
      test_sllv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   137
      test_srlc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   138
      test_srlv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   139
      test_srac_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   140
      test_srav(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   141
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   142
      test_sllc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   143
      test_sllv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   144
      test_srlc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   145
      test_srlv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   146
      test_srac_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   147
      test_srav_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   148
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   149
      test_sllc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   150
      test_sllv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   151
      test_srlc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   152
      test_srlv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   153
      test_srac_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   154
      test_srav_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   155
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   156
      test_pack2(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   157
      test_unpack2(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   158
      test_pack2_swap(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   159
      test_unpack2_swap(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   160
      test_pack4(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   161
      test_unpack4(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   162
      test_pack4_swap(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   163
      test_unpack4_swap(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   164
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   165
    // Test and verify results
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   166
    System.out.println("Verification");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   167
    int errn = 0;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   168
    {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   169
      int sum = test_sum(a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   170
      if (sum != gold_sum) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   171
        System.err.println("test_sum:  " + sum + " != " + gold_sum);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   172
        errn++;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   173
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   174
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   175
      test_addc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   176
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   177
        errn += verify("test_addc: ", i, a0[i], (char)((char)(ADD_INIT+i)+VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   178
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   179
      test_addv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   180
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   181
        errn += verify("test_addv: ", i, a0[i], (char)((char)(ADD_INIT+i)+VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   182
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   183
      test_adda(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   184
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   185
        errn += verify("test_adda: ", i, a0[i], (char)((char)(ADD_INIT+i)+VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   186
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   187
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   188
      test_subc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   189
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   190
        errn += verify("test_subc: ", i, a0[i], (char)((char)(ADD_INIT+i)-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   191
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   192
      test_subv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   193
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   194
        errn += verify("test_subv: ", i, a0[i], (char)((char)(ADD_INIT+i)-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   195
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   196
      test_suba(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   197
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   198
        errn += verify("test_suba: ", i, a0[i], (char)((char)(ADD_INIT+i)-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   199
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   200
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   201
      test_mulc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   202
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   203
        errn += verify("test_mulc: ", i, a0[i], (char)((char)(ADD_INIT+i)*VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   204
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   205
      test_mulv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   206
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   207
        errn += verify("test_mulv: ", i, a0[i], (char)((char)(ADD_INIT+i)*VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   208
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   209
      test_mula(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   210
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   211
        errn += verify("test_mula: ", i, a0[i], (char)((char)(ADD_INIT+i)*VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   212
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   213
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   214
      test_divc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   215
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   216
        errn += verify("test_divc: ", i, a0[i], (char)((char)(ADD_INIT+i)/VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   217
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   218
      test_divv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   219
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   220
        errn += verify("test_divv: ", i, a0[i], (char)((char)(ADD_INIT+i)/VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   221
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   222
      test_diva(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   223
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   224
        errn += verify("test_diva: ", i, a0[i], (char)((char)(ADD_INIT+i)/VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   225
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   226
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   227
      test_mulc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   228
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   229
        errn += verify("test_mulc_n: ", i, a0[i], (char)((char)(ADD_INIT+i)*(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   230
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   231
      test_mulv(a0, a1, (char)-VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   232
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   233
        errn += verify("test_mulv_n: ", i, a0[i], (char)((char)(ADD_INIT+i)*(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   234
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   235
      test_mula(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   236
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   237
        errn += verify("test_mula_n: ", i, a0[i], (char)((char)(ADD_INIT+i)*(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   238
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   239
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   240
      test_divc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   241
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   242
        errn += verify("test_divc_n: ", i, a0[i], (char)((char)(ADD_INIT+i)/(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   243
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   244
      test_divv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   245
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   246
        errn += verify("test_divv_n: ", i, a0[i], (char)((char)(ADD_INIT+i)/(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   247
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   248
      test_diva(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   249
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   250
        errn += verify("test_diva_n: ", i, a0[i], (char)((char)(ADD_INIT+i)/(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   251
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   252
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   253
      test_andc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   254
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   255
        errn += verify("test_andc: ", i, a0[i], (char)((char)(ADD_INIT+i)&BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   256
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   257
      test_andv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   258
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   259
        errn += verify("test_andv: ", i, a0[i], (char)((char)(ADD_INIT+i)&BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   260
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   261
      test_anda(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   262
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   263
        errn += verify("test_anda: ", i, a0[i], (char)((char)(ADD_INIT+i)&BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   264
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   265
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   266
      test_orc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   267
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   268
        errn += verify("test_orc: ", i, a0[i], (char)((char)(ADD_INIT+i)|BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   269
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   270
      test_orv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   271
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   272
        errn += verify("test_orv: ", i, a0[i], (char)((char)(ADD_INIT+i)|BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   273
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   274
      test_ora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   275
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   276
        errn += verify("test_ora: ", i, a0[i], (char)((char)(ADD_INIT+i)|BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   277
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   278
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   279
      test_xorc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   280
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   281
        errn += verify("test_xorc: ", i, a0[i], (char)((char)(ADD_INIT+i)^BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   282
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   283
      test_xorv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   284
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   285
        errn += verify("test_xorv: ", i, a0[i], (char)((char)(ADD_INIT+i)^BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   286
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   287
      test_xora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   288
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   289
        errn += verify("test_xora: ", i, a0[i], (char)((char)(ADD_INIT+i)^BIT_MASK));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   290
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   291
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   292
      test_sllc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   293
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   294
        errn += verify("test_sllc: ", i, a0[i], (char)((char)(ADD_INIT+i)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   295
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   296
      test_sllv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   297
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   298
        errn += verify("test_sllv: ", i, a0[i], (char)((char)(ADD_INIT+i)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   299
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   300
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   301
      test_srlc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   302
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   303
        errn += verify("test_srlc: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   304
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   305
      test_srlv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   306
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   307
        errn += verify("test_srlv: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   308
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   309
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   310
      test_srac(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   311
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   312
        errn += verify("test_srac: ", i, a0[i], (char)((char)(ADD_INIT+i)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   313
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   314
      test_srav(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   315
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   316
        errn += verify("test_srav: ", i, a0[i], (char)((char)(ADD_INIT+i)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   317
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   318
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   319
      test_sllc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   320
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   321
        errn += verify("test_sllc_n: ", i, a0[i], (char)((char)(ADD_INIT+i)<<(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   322
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   323
      test_sllv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   324
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   325
        errn += verify("test_sllv_n: ", i, a0[i], (char)((char)(ADD_INIT+i)<<(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   326
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   327
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   328
      test_srlc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   329
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   330
        errn += verify("test_srlc_n: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   331
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   332
      test_srlv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   333
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   334
        errn += verify("test_srlv_n: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   335
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   336
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   337
      test_srac_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   338
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   339
        errn += verify("test_srac_n: ", i, a0[i], (char)((char)(ADD_INIT+i)>>(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   340
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   341
      test_srav(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   342
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   343
        errn += verify("test_srav_n: ", i, a0[i], (char)((char)(ADD_INIT+i)>>(-VALUE)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   344
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   345
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   346
      test_sllc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   347
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   348
        errn += verify("test_sllc_o: ", i, a0[i], (char)((char)(ADD_INIT+i)<<SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   349
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   350
      test_sllv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   351
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   352
        errn += verify("test_sllv_o: ", i, a0[i], (char)((char)(ADD_INIT+i)<<SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   353
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   354
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   355
      test_srlc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   356
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   357
        errn += verify("test_srlc_o: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   358
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   359
      test_srlv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   360
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   361
        errn += verify("test_srlv_o: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   362
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   363
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   364
      test_srac_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   365
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   366
        errn += verify("test_srac_o: ", i, a0[i], (char)((char)(ADD_INIT+i)>>SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   367
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   368
      test_srav(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   369
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   370
        errn += verify("test_srav_o: ", i, a0[i], (char)((char)(ADD_INIT+i)>>SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   371
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   372
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   373
      test_sllc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   374
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   375
        errn += verify("test_sllc_on: ", i, a0[i], (char)((char)(ADD_INIT+i)<<(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   376
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   377
      test_sllv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   378
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   379
        errn += verify("test_sllv_on: ", i, a0[i], (char)((char)(ADD_INIT+i)<<(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   380
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   381
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   382
      test_srlc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   383
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   384
        errn += verify("test_srlc_on: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   385
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   386
      test_srlv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   387
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   388
        errn += verify("test_srlv_on: ", i, a0[i], (char)((char)(ADD_INIT+i)>>>(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   389
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   390
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   391
      test_srac_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   392
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   393
        errn += verify("test_srac_on: ", i, a0[i], (char)((char)(ADD_INIT+i)>>(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   394
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   395
      test_srav(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   396
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   397
        errn += verify("test_srav_on: ", i, a0[i], (char)((char)(ADD_INIT+i)>>(-SHIFT)));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   398
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   399
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   400
      test_sllc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   401
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   402
        errn += verify("test_sllc_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   403
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   404
      test_sllv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   405
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   406
        errn += verify("test_sllv_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   407
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   408
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   409
      test_srlc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   410
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   411
        errn += verify("test_srlc_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   412
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   413
      test_srlv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   414
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   415
        errn += verify("test_srlv_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   416
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   417
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   418
      test_srac_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   419
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   420
        errn += verify("test_srac_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   421
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   422
      test_srav_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   423
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   424
        errn += verify("test_srav_add: ", i, a0[i], (char)(((char)(ADD_INIT+i) + ADD_INIT)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   425
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   426
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   427
      test_sllc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   428
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   429
        errn += verify("test_sllc_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   430
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   431
      test_sllv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   432
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   433
        errn += verify("test_sllv_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)<<VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   434
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   435
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   436
      test_srlc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   437
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   438
        errn += verify("test_srlc_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   439
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   440
      test_srlv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   441
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   442
        errn += verify("test_srlv_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)>>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   443
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   444
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   445
      test_srac_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   446
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   447
        errn += verify("test_srac_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   448
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   449
      test_srav_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   450
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   451
        errn += verify("test_srav_and: ", i, a0[i], (char)(((char)(ADD_INIT+i) & BIT_MASK)>>VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   452
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   453
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   454
      test_pack2(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   455
      for (int i=0; i<ARRLEN/2; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   456
        errn += verify("test_pack2: ", i, p2[i], ((int)(ADD_INIT+2*i) & 0xFFFF) | ((int)(ADD_INIT+2*i+1) << 16));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   457
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   458
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   459
        a0[i] = (char)-1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   460
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   461
      test_unpack2(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   462
      for (int i=0; i<(ARRLEN&(-2)); i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   463
        errn += verify("test_unpack2: ", i, a0[i], (char)(ADD_INIT+i));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   464
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   465
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   466
      test_pack2_swap(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   467
      for (int i=0; i<ARRLEN/2; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   468
        errn += verify("test_pack2_swap: ", i, p2[i], ((int)(ADD_INIT+2*i+1) & 0xFFFF) | ((int)(ADD_INIT+2*i) << 16));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   469
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   470
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   471
        a0[i] = (char)-1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   472
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   473
      test_unpack2_swap(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   474
      for (int i=0; i<(ARRLEN&(-2)); i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   475
        errn += verify("test_unpack2_swap: ", i, a0[i], (char)(ADD_INIT+i));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   476
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   477
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   478
      test_pack4(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   479
      for (int i=0; i<ARRLEN/4; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   480
        errn += verify("test_pack4: ", i, p4[i],  ((long)(ADD_INIT+4*i+0) & 0xFFFFl) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   481
                                                 (((long)(ADD_INIT+4*i+1) & 0xFFFFl) << 16)  |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   482
                                                 (((long)(ADD_INIT+4*i+2) & 0xFFFFl) << 32)  |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   483
                                                 (((long)(ADD_INIT+4*i+3) & 0xFFFFl) << 48));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   484
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   485
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   486
        a0[i] = (char)-1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   487
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   488
      test_unpack4(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   489
      for (int i=0; i<(ARRLEN&(-4)); i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   490
        errn += verify("test_unpack4: ", i, a0[i], (char)(ADD_INIT+i));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   491
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   492
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   493
      test_pack4_swap(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   494
      for (int i=0; i<ARRLEN/4; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   495
        errn += verify("test_pack4_swap: ", i, p4[i],  ((long)(ADD_INIT+4*i+3) & 0xFFFFl) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   496
                                                      (((long)(ADD_INIT+4*i+2) & 0xFFFFl) << 16)  |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   497
                                                      (((long)(ADD_INIT+4*i+1) & 0xFFFFl) << 32)  |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   498
                                                      (((long)(ADD_INIT+4*i+0) & 0xFFFFl) << 48));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   499
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   500
      for (int i=0; i<ARRLEN; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   501
        a0[i] = (char)-1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   502
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   503
      test_unpack4_swap(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   504
      for (int i=0; i<(ARRLEN&(-4)); i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   505
        errn += verify("test_unpack4_swap: ", i, a0[i], (char)(ADD_INIT+i));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   506
      }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   507
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   508
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   509
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   510
    if (errn > 0)
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   511
      return errn;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   512
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   513
    System.out.println("Time");
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   514
    long start, end;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   515
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   516
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   517
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   518
      test_sum(a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   519
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   520
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   521
    System.out.println("test_sum: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   522
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   523
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   524
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   525
      test_addc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   526
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   527
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   528
    System.out.println("test_addc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   529
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   530
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   531
      test_addv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   532
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   533
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   534
    System.out.println("test_addv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   535
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   536
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   537
      test_adda(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   538
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   539
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   540
    System.out.println("test_adda: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   541
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   542
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   543
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   544
      test_subc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   545
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   546
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   547
    System.out.println("test_subc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   548
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   549
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   550
      test_subv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   551
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   552
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   553
    System.out.println("test_subv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   554
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   555
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   556
      test_suba(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   557
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   558
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   559
    System.out.println("test_suba: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   560
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   561
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   562
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   563
      test_mulc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   564
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   565
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   566
    System.out.println("test_mulc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   567
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   568
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   569
      test_mulv(a0, a1, (char)VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   570
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   571
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   572
    System.out.println("test_mulv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   573
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   574
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   575
      test_mula(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   576
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   577
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   578
    System.out.println("test_mula: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   579
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   580
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   581
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   582
      test_divc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   583
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   584
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   585
    System.out.println("test_divc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   586
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   587
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   588
      test_divv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   589
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   590
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   591
    System.out.println("test_divv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   592
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   593
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   594
      test_diva(a0, a1, a2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   595
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   596
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   597
    System.out.println("test_diva: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   598
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   599
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   600
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   601
      test_mulc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   602
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   603
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   604
    System.out.println("test_mulc_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   605
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   606
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   607
      test_mulv(a0, a1, (char)-VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   608
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   609
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   610
    System.out.println("test_mulv_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   611
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   612
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   613
      test_mula(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   614
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   615
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   616
    System.out.println("test_mula_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   617
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   618
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   619
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   620
      test_divc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   621
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   622
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   623
    System.out.println("test_divc_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   624
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   625
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   626
      test_divv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   627
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   628
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   629
    System.out.println("test_divv_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   630
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   631
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   632
      test_diva(a0, a1, a3);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   633
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   634
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   635
    System.out.println("test_diva_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   636
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   637
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   638
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   639
      test_andc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   640
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   641
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   642
    System.out.println("test_andc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   643
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   644
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   645
      test_andv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   646
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   647
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   648
    System.out.println("test_andv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   649
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   650
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   651
      test_anda(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   652
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   653
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   654
    System.out.println("test_anda: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   655
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   656
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   657
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   658
      test_orc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   659
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   660
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   661
    System.out.println("test_orc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   662
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   663
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   664
      test_orv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   665
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   666
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   667
    System.out.println("test_orv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   668
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   669
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   670
      test_ora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   671
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   672
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   673
    System.out.println("test_ora: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   674
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   675
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   676
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   677
      test_xorc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   678
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   679
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   680
    System.out.println("test_xorc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   681
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   682
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   683
      test_xorv(a0, a1, (short)BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   684
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   685
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   686
    System.out.println("test_xorv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   687
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   688
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   689
      test_xora(a0, a1, a4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   690
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   691
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   692
    System.out.println("test_xora: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   693
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   694
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   695
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   696
      test_sllc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   697
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   698
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   699
    System.out.println("test_sllc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   700
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   701
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   702
      test_sllv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   703
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   704
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   705
    System.out.println("test_sllv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   706
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   707
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   708
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   709
      test_srlc(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   710
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   711
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   712
    System.out.println("test_srlc: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   713
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   714
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   715
      test_srlv(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   716
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   717
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   718
    System.out.println("test_srlv: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   719
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   720
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   721
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   722
      test_srac(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   723
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   724
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   725
    System.out.println("test_srac: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   726
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   727
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   728
      test_srav(a0, a1, VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   729
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   730
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   731
    System.out.println("test_srav: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   732
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   733
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   734
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   735
      test_sllc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   736
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   737
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   738
    System.out.println("test_sllc_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   739
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   740
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   741
      test_sllv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   742
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   743
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   744
    System.out.println("test_sllv_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   745
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   746
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   747
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   748
      test_srlc_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   749
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   750
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   751
    System.out.println("test_srlc_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   752
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   753
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   754
      test_srlv(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   755
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   756
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   757
    System.out.println("test_srlv_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   758
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   759
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   760
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   761
      test_srac_n(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   762
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   763
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   764
    System.out.println("test_srac_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   765
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   766
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   767
      test_srav(a0, a1, -VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   768
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   769
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   770
    System.out.println("test_srav_n: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   771
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   772
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   773
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   774
      test_sllc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   775
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   776
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   777
    System.out.println("test_sllc_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   778
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   779
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   780
      test_sllv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   781
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   782
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   783
    System.out.println("test_sllv_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   784
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   785
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   786
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   787
      test_srlc_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   788
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   789
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   790
    System.out.println("test_srlc_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   791
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   792
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   793
      test_srlv(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   794
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   795
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   796
    System.out.println("test_srlv_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   797
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   798
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   799
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   800
      test_srac_o(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   801
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   802
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   803
    System.out.println("test_srac_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   804
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   805
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   806
      test_srav(a0, a1, SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   807
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   808
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   809
    System.out.println("test_srav_o: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   810
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   811
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   812
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   813
      test_sllc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   814
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   815
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   816
    System.out.println("test_sllc_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   817
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   818
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   819
      test_sllv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   820
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   821
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   822
    System.out.println("test_sllv_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   823
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   824
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   825
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   826
      test_srlc_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   827
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   828
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   829
    System.out.println("test_srlc_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   830
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   831
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   832
      test_srlv(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   833
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   834
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   835
    System.out.println("test_srlv_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   836
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   837
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   838
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   839
      test_srac_on(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   840
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   841
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   842
    System.out.println("test_srac_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   843
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   844
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   845
      test_srav(a0, a1, -SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   846
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   847
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   848
    System.out.println("test_srav_on: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   849
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   850
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   851
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   852
      test_sllc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   853
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   854
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   855
    System.out.println("test_sllc_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   856
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   857
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   858
      test_sllv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   859
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   860
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   861
    System.out.println("test_sllv_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   862
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   863
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   864
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   865
      test_srlc_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   866
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   867
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   868
    System.out.println("test_srlc_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   869
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   870
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   871
      test_srlv_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   872
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   873
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   874
    System.out.println("test_srlv_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   875
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   876
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   877
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   878
      test_srac_add(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   879
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   880
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   881
    System.out.println("test_srac_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   882
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   883
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   884
      test_srav_add(a0, a1, ADD_INIT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   885
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   886
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   887
    System.out.println("test_srav_add: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   888
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   889
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   890
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   891
      test_sllc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   892
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   893
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   894
    System.out.println("test_sllc_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   895
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   896
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   897
      test_sllv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   898
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   899
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   900
    System.out.println("test_sllv_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   901
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   902
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   903
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   904
      test_srlc_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   905
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   906
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   907
    System.out.println("test_srlc_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   908
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   909
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   910
      test_srlv_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   911
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   912
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   913
    System.out.println("test_srlv_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   914
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   915
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   916
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   917
      test_srac_and(a0, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   918
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   919
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   920
    System.out.println("test_srac_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   921
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   922
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   923
      test_srav_and(a0, a1, BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   924
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   925
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   926
    System.out.println("test_srav_and: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   927
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   928
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   929
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   930
      test_pack2(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   931
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   932
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   933
    System.out.println("test_pack2: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   934
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   935
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   936
      test_unpack2(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   937
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   938
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   939
    System.out.println("test_unpack2: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   940
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   941
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   942
      test_pack2_swap(p2, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   943
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   944
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   945
    System.out.println("test_pack2_swap: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   946
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   947
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   948
      test_unpack2_swap(a0, p2);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   949
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   950
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   951
    System.out.println("test_unpack2_swap: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   952
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   953
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   954
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   955
      test_pack4(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   956
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   957
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   958
    System.out.println("test_pack4: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   959
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   960
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   961
      test_unpack4(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   962
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   963
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   964
    System.out.println("test_unpack4: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   965
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   966
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   967
      test_pack4_swap(p4, a1);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   968
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   969
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   970
    System.out.println("test_pack4_swap: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   971
    start = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   972
    for (int i=0; i<ITERS; i++) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   973
      test_unpack4_swap(a0, p4);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   974
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   975
    end = System.currentTimeMillis();
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   976
    System.out.println("test_unpack4_swap: " + (end - start));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   977
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   978
    return errn;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   979
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   980
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   981
  static int test_sum(char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   982
    int sum = 0;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   983
    for (int i = 0; i < a1.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   984
      sum += a1[i];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   985
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   986
    return sum;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   987
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   988
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   989
  static void test_addc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   990
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   991
      a0[i] = (char)(a1[i]+VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   992
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   993
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   994
  static void test_addv(char[] a0, char[] a1, char b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   995
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   996
      a0[i] = (char)(a1[i]+b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   997
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   998
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
   999
  static void test_adda(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1000
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1001
      a0[i] = (char)(a1[i]+a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1002
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1003
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1004
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1005
  static void test_subc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1006
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1007
      a0[i] = (char)(a1[i]-VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1008
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1009
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1010
  static void test_subv(char[] a0, char[] a1, char b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1011
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1012
      a0[i] = (char)(a1[i]-b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1013
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1014
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1015
  static void test_suba(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1016
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1017
      a0[i] = (char)(a1[i]-a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1018
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1019
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1020
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1021
  static void test_mulc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1022
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1023
      a0[i] = (char)(a1[i]*VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1024
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1025
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1026
  static void test_mulc_n(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1027
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1028
      a0[i] = (char)(a1[i]*(-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1029
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1030
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1031
  static void test_mulv(char[] a0, char[] a1, char b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1032
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1033
      a0[i] = (char)(a1[i]*b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1034
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1035
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1036
  static void test_mula(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1037
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1038
      a0[i] = (char)(a1[i]*a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1039
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1040
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1041
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1042
  static void test_divc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1043
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1044
      a0[i] = (char)(a1[i]/VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1045
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1046
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1047
  static void test_divc_n(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1048
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1049
      a0[i] = (char)(a1[i]/(-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1050
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1051
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1052
  static void test_divv(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1053
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1054
      a0[i] = (char)(a1[i]/b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1055
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1056
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1057
  static void test_diva(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1058
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1059
      a0[i] = (char)(a1[i]/a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1060
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1061
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1062
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1063
  static void test_andc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1064
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1065
      a0[i] = (char)(a1[i]&BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1066
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1067
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1068
  static void test_andv(char[] a0, char[] a1, short b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1069
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1070
      a0[i] = (char)(a1[i]&b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1071
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1072
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1073
  static void test_anda(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1074
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1075
      a0[i] = (char)(a1[i]&a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1076
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1077
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1078
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1079
  static void test_orc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1080
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1081
      a0[i] = (char)(a1[i]|BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1082
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1083
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1084
  static void test_orv(char[] a0, char[] a1, short b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1085
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1086
      a0[i] = (char)(a1[i]|b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1087
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1088
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1089
  static void test_ora(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1090
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1091
      a0[i] = (char)(a1[i]|a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1092
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1093
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1094
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1095
  static void test_xorc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1096
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1097
      a0[i] = (char)(a1[i]^BIT_MASK);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1098
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1099
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1100
  static void test_xorv(char[] a0, char[] a1, short b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1101
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1102
      a0[i] = (char)(a1[i]^b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1103
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1104
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1105
  static void test_xora(char[] a0, char[] a1, short[] a2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1106
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1107
      a0[i] = (char)(a1[i]^a2[i]);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1108
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1109
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1110
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1111
  static void test_sllc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1112
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1113
      a0[i] = (char)(a1[i]<<VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1114
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1115
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1116
  static void test_sllc_n(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1117
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1118
      a0[i] = (char)(a1[i]<<(-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1119
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1120
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1121
  static void test_sllc_o(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1122
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1123
      a0[i] = (char)(a1[i]<<SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1124
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1125
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1126
  static void test_sllc_on(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1127
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1128
      a0[i] = (char)(a1[i]<<(-SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1129
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1130
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1131
  static void test_sllv(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1132
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1133
      a0[i] = (char)(a1[i]<<b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1134
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1135
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1136
  static void test_sllc_add(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1137
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1138
      a0[i] = (char)((a1[i] + ADD_INIT)<<VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1139
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1140
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1141
  static void test_sllv_add(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1142
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1143
      a0[i] = (char)((a1[i] + b)<<VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1144
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1145
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1146
  static void test_sllc_and(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1147
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1148
      a0[i] = (char)((a1[i] & BIT_MASK)<<VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1149
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1150
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1151
  static void test_sllv_and(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1152
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1153
      a0[i] = (char)((a1[i] & b)<<VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1154
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1155
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1156
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1157
  static void test_srlc(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1158
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1159
      a0[i] = (char)(a1[i]>>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1160
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1161
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1162
  static void test_srlc_n(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1163
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1164
      a0[i] = (char)(a1[i]>>>(-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1165
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1166
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1167
  static void test_srlc_o(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1168
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1169
      a0[i] = (char)(a1[i]>>>SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1170
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1171
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1172
  static void test_srlc_on(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1173
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1174
      a0[i] = (char)(a1[i]>>>(-SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1175
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1176
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1177
  static void test_srlv(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1178
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1179
      a0[i] = (char)(a1[i]>>>b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1180
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1181
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1182
  static void test_srlc_add(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1183
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1184
      a0[i] = (char)((a1[i] + ADD_INIT)>>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1185
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1186
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1187
  static void test_srlv_add(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1188
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1189
      a0[i] = (char)((a1[i] + b)>>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1190
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1191
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1192
  static void test_srlc_and(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1193
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1194
      a0[i] = (char)((a1[i] & BIT_MASK)>>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1195
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1196
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1197
  static void test_srlv_and(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1198
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1199
      a0[i] = (char)((a1[i] & b)>>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1200
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1201
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1202
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1203
  static void test_srac(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1204
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1205
      a0[i] = (char)(a1[i]>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1206
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1207
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1208
  static void test_srac_n(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1209
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1210
      a0[i] = (char)(a1[i]>>(-VALUE));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1211
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1212
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1213
  static void test_srac_o(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1214
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1215
      a0[i] = (char)(a1[i]>>SHIFT);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1216
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1217
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1218
  static void test_srac_on(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1219
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1220
      a0[i] = (char)(a1[i]>>(-SHIFT));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1221
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1222
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1223
  static void test_srav(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1224
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1225
      a0[i] = (char)(a1[i]>>b);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1226
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1227
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1228
  static void test_srac_add(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1229
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1230
      a0[i] = (char)((a1[i] + ADD_INIT)>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1231
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1232
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1233
  static void test_srav_add(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1234
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1235
      a0[i] = (char)((a1[i] + b)>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1236
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1237
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1238
  static void test_srac_and(char[] a0, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1239
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1240
      a0[i] = (char)((a1[i] & BIT_MASK)>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1241
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1242
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1243
  static void test_srav_and(char[] a0, char[] a1, int b) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1244
    for (int i = 0; i < a0.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1245
      a0[i] = (char)((a1[i] & b)>>VALUE);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1246
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1247
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1248
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1249
  static void test_pack2(int[] p2, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1250
    if (p2.length*2 > a1.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1251
    for (int i = 0; i < p2.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1252
      int l0 = (int)a1[i*2+0];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1253
      int l1 = (int)a1[i*2+1];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1254
      p2[i] = (l1 << 16) | (l0 & 0xFFFF);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1255
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1256
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1257
  static void test_unpack2(char[] a0, int[] p2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1258
    if (p2.length*2 > a0.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1259
    for (int i = 0; i < p2.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1260
      int l = p2[i];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1261
      a0[i*2+0] = (char)(l & 0xFFFF);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1262
      a0[i*2+1] = (char)(l >> 16);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1263
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1264
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1265
  static void test_pack2_swap(int[] p2, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1266
    if (p2.length*2 > a1.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1267
    for (int i = 0; i < p2.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1268
      int l0 = (int)a1[i*2+0];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1269
      int l1 = (int)a1[i*2+1];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1270
      p2[i] = (l0 << 16) | (l1 & 0xFFFF);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1271
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1272
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1273
  static void test_unpack2_swap(char[] a0, int[] p2) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1274
    if (p2.length*2 > a0.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1275
    for (int i = 0; i < p2.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1276
      int l = p2[i];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1277
      a0[i*2+0] = (char)(l >> 16);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1278
      a0[i*2+1] = (char)(l & 0xFFFF);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1279
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1280
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1281
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1282
  static void test_pack4(long[] p4, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1283
    if (p4.length*4 > a1.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1284
    for (int i = 0; i < p4.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1285
      long l0 = (long)a1[i*4+0];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1286
      long l1 = (long)a1[i*4+1];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1287
      long l2 = (long)a1[i*4+2];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1288
      long l3 = (long)a1[i*4+3];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1289
      p4[i] = (l0 & 0xFFFFl) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1290
             ((l1 & 0xFFFFl) << 16) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1291
             ((l2 & 0xFFFFl) << 32) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1292
             ((l3 & 0xFFFFl) << 48);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1293
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1294
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1295
  static void test_unpack4(char[] a0, long[] p4) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1296
    if (p4.length*4 > a0.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1297
    for (int i = 0; i < p4.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1298
      long l = p4[i];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1299
      a0[i*4+0] = (char)(l & 0xFFFFl);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1300
      a0[i*4+1] = (char)(l >> 16);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1301
      a0[i*4+2] = (char)(l >> 32);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1302
      a0[i*4+3] = (char)(l >> 48);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1303
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1304
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1305
  static void test_pack4_swap(long[] p4, char[] a1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1306
    if (p4.length*4 > a1.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1307
    for (int i = 0; i < p4.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1308
      long l0 = (long)a1[i*4+0];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1309
      long l1 = (long)a1[i*4+1];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1310
      long l2 = (long)a1[i*4+2];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1311
      long l3 = (long)a1[i*4+3];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1312
      p4[i] = (l3 & 0xFFFFl) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1313
             ((l2 & 0xFFFFl) << 16) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1314
             ((l1 & 0xFFFFl) << 32) |
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1315
             ((l0 & 0xFFFFl) << 48);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1316
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1317
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1318
  static void test_unpack4_swap(char[] a0, long[] p4) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1319
    if (p4.length*4 > a0.length) return;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1320
    for (int i = 0; i < p4.length; i+=1) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1321
      long l = p4[i];
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1322
      a0[i*4+0] = (char)(l >> 48);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1323
      a0[i*4+1] = (char)(l >> 32);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1324
      a0[i*4+2] = (char)(l >> 16);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1325
      a0[i*4+3] = (char)(l & 0xFFFFl);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1326
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1327
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1328
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1329
  static int verify(String text, int i, int elem, int val) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1330
    if (elem != val) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1331
      System.err.println(text + "[" + i + "] = " + elem + " != " + val);
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1332
      return 1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1333
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1334
    return 0;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1335
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1336
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1337
  static int verify(String text, int i, long elem, long val) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1338
    if (elem != val) {
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1339
      System.err.println(text + "[" + i + "] = " + Long.toHexString(elem) + " != " + Long.toHexString(val));
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1340
      return 1;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1341
    }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1342
    return 0;
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1343
  }
e376e3d428c9 8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
diff changeset
  1344
}