test/hotspot/jtreg/compiler/codegen/TestBooleanVect.java
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     1
/*
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     2
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     4
 *
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     8
 *
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    13
 * accompanied this code).
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    14
 *
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    18
 *
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    21
 * questions.
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    22
 */
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    23
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    24
/**
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    25
 * @test
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    26
 * @bug 7119644
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    27
 * @summary Increase superword's vector size up to 256 bits
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    28
 *
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    29
 * @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    30
 *    -XX:-TieredCompilation -XX:-OptimizeFill
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    31
 *    compiler.codegen.TestBooleanVect
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    32
 */
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    33
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    34
package compiler.codegen;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    35
13104
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    36
public class TestBooleanVect {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    37
  private static final int ARRLEN = 997;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    38
  private static final int ITERS  = 11000;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    39
  private static final int OFFSET = 3;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    40
  private static final int SCALE = 2;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    41
  private static final int ALIGN_OFF = 8;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    42
  private static final int UNALIGN_OFF = 5;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    43
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    44
  public static void main(String args[]) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    45
    System.out.println("Testing Boolean vectors");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    46
    int errn = test();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    47
    if (errn > 0) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    48
      System.err.println("FAILED: " + errn + " errors");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    49
      System.exit(97);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    50
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    51
    System.out.println("PASSED");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    52
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    53
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    54
  static int test() {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    55
    boolean[] a1 = new boolean[ARRLEN];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    56
    boolean[] a2 = new boolean[ARRLEN];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    57
    System.out.println("Warmup");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    58
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    59
      test_ci(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    60
      test_vi(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    61
      test_cp(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    62
      test_2ci(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    63
      test_2vi(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    64
      test_ci_neg(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    65
      test_vi_neg(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    66
      test_cp_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    67
      test_2ci_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    68
      test_2vi_neg(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    69
      test_ci_oppos(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    70
      test_vi_oppos(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    71
      test_cp_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    72
      test_2ci_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    73
      test_2vi_oppos(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    74
      test_ci_off(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    75
      test_vi_off(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    76
      test_cp_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    77
      test_2ci_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    78
      test_2vi_off(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    79
      test_ci_inv(a1, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    80
      test_vi_inv(a2, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    81
      test_cp_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    82
      test_2ci_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    83
      test_2vi_inv(a1, a2, true, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    84
      test_ci_scl(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    85
      test_vi_scl(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    86
      test_cp_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    87
      test_2ci_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    88
      test_2vi_scl(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    89
      test_cp_alndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    90
      test_cp_alnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    91
      test_2ci_aln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    92
      test_2vi_aln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    93
      test_cp_unalndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    94
      test_cp_unalnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    95
      test_2ci_unaln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    96
      test_2vi_unaln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    97
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    98
    // Initialize
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
    99
    for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   100
      a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   101
      a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   102
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   103
    // Test and verify results
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   104
    System.out.println("Verification");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   105
    int errn = 0;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   106
    {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   107
      test_ci(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   108
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   109
        errn += verify("test_ci: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   110
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   111
      test_vi(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   112
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   113
        errn += verify("test_vi: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   114
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   115
      test_cp(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   116
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   117
        errn += verify("test_cp: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   118
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   119
      test_2ci(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   120
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   121
        errn += verify("test_2ci: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   122
        errn += verify("test_2ci: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   123
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   124
      test_2vi(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   125
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   126
        errn += verify("test_2vi: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   127
        errn += verify("test_2vi: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   128
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   129
      // Reset for negative stride
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   130
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   131
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   132
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   133
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   134
      test_ci_neg(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   135
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   136
        errn += verify("test_ci_neg: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   137
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   138
      test_vi_neg(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   139
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   140
        errn += verify("test_vi_neg: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   141
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   142
      test_cp_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   143
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   144
        errn += verify("test_cp_neg: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   145
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   146
      test_2ci_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   147
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   148
        errn += verify("test_2ci_neg: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   149
        errn += verify("test_2ci_neg: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   150
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   151
      test_2vi_neg(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   152
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   153
        errn += verify("test_2vi_neg: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   154
        errn += verify("test_2vi_neg: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   155
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   156
      // Reset for opposite stride
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   157
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   158
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   159
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   160
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   161
      test_ci_oppos(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   162
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   163
        errn += verify("test_ci_oppos: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   164
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   165
      test_vi_oppos(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   166
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   167
        errn += verify("test_vi_oppos: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   168
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   169
      test_cp_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   170
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   171
        errn += verify("test_cp_oppos: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   172
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   173
      test_2ci_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   174
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   175
        errn += verify("test_2ci_oppos: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   176
        errn += verify("test_2ci_oppos: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   177
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   178
      test_2vi_oppos(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   179
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   180
        errn += verify("test_2vi_oppos: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   181
        errn += verify("test_2vi_oppos: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   182
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   183
      // Reset for indexing with offset
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   184
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   185
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   186
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   187
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   188
      test_ci_off(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   189
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   190
        errn += verify("test_ci_off: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   191
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   192
      test_vi_off(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   193
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   194
        errn += verify("test_vi_off: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   195
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   196
      test_cp_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   197
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   198
        errn += verify("test_cp_off: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   199
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   200
      test_2ci_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   201
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   202
        errn += verify("test_2ci_off: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   203
        errn += verify("test_2ci_off: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   204
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   205
      test_2vi_off(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   206
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   207
        errn += verify("test_2vi_off: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   208
        errn += verify("test_2vi_off: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   209
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   210
      for (int i=0; i<OFFSET; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   211
        errn += verify("test_2vi_off: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   212
        errn += verify("test_2vi_off: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   213
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   214
      // Reset for indexing with invariant offset
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   215
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   216
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   217
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   218
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   219
      test_ci_inv(a1, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   220
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   221
        errn += verify("test_ci_inv: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   222
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   223
      test_vi_inv(a2, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   224
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   225
        errn += verify("test_vi_inv: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   226
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   227
      test_cp_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   228
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   229
        errn += verify("test_cp_inv: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   230
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   231
      test_2ci_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   232
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   233
        errn += verify("test_2ci_inv: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   234
        errn += verify("test_2ci_inv: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   235
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   236
      test_2vi_inv(a1, a2, true, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   237
      for (int i=OFFSET; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   238
        errn += verify("test_2vi_inv: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   239
        errn += verify("test_2vi_inv: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   240
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   241
      for (int i=0; i<OFFSET; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   242
        errn += verify("test_2vi_inv: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   243
        errn += verify("test_2vi_inv: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   244
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   245
      // Reset for indexing with scale
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   246
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   247
        a1[i] = true;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   248
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   249
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   250
      test_ci_scl(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   251
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   252
        boolean val = (i%SCALE != 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   253
        errn += verify("test_ci_scl: a1", i, a1[i], val);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   254
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   255
      test_vi_scl(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   256
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   257
        boolean val = (i%SCALE == 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   258
        errn += verify("test_vi_scl: a2", i, a2[i], val);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   259
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   260
      test_cp_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   261
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   262
        errn += verify("test_cp_scl: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   263
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   264
      test_2ci_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   265
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   266
        if (i%SCALE != 0) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   267
          errn += verify("test_2ci_scl: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   268
        } else if (i*SCALE < ARRLEN) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   269
          errn += verify("test_2ci_scl: a1", i*SCALE, a1[i*SCALE], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   270
        }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   271
        if (i%SCALE != 0) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   272
          errn += verify("test_2ci_scl: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   273
        } else if (i*SCALE < ARRLEN) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   274
          errn += verify("test_2ci_scl: a2", i*SCALE, a2[i*SCALE], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   275
        }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   276
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   277
      test_2vi_scl(a1, a2, false, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   278
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   279
        if (i%SCALE != 0) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   280
          errn += verify("test_2vi_scl: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   281
        } else if (i*SCALE < ARRLEN) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   282
          errn += verify("test_2vi_scl: a1", i*SCALE, a1[i*SCALE], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   283
        }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   284
        if (i%SCALE != 0) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   285
          errn += verify("test_2vi_scl: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   286
        } else if (i*SCALE < ARRLEN) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   287
          errn += verify("test_2vi_scl: a2", i*SCALE, a2[i*SCALE], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   288
        }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   289
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   290
      // Reset for 2 arrays with relative aligned offset
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   291
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   292
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   293
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   294
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   295
      test_vi(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   296
      test_cp_alndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   297
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   298
        errn += verify("test_cp_alndst: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   299
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   300
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   301
        errn += verify("test_cp_alndst: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   302
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   303
      test_vi(a2, false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   304
      test_cp_alnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   305
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   306
        errn += verify("test_cp_alnsrc: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   307
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   308
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   309
        errn += verify("test_cp_alnsrc: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   310
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   311
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   312
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   313
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   314
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   315
      test_2ci_aln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   316
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   317
        errn += verify("test_2ci_aln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   318
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   319
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   320
        errn += verify("test_2ci_aln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   321
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   322
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   323
        errn += verify("test_2ci_aln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   324
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   325
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   326
        errn += verify("test_2ci_aln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   327
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   328
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   329
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   330
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   331
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   332
      test_2vi_aln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   333
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   334
        errn += verify("test_2vi_aln: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   335
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   336
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   337
        errn += verify("test_2vi_aln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   338
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   339
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   340
        errn += verify("test_2vi_aln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   341
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   342
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   343
        errn += verify("test_2vi_aln: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   344
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   345
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   346
      // Reset for 2 arrays with relative unaligned offset
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   347
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   348
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   349
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   350
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   351
      test_vi(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   352
      test_cp_unalndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   353
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   354
        errn += verify("test_cp_unalndst: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   355
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   356
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   357
        errn += verify("test_cp_unalndst: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   358
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   359
      test_vi(a2, false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   360
      test_cp_unalnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   361
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   362
        errn += verify("test_cp_unalnsrc: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   363
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   364
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   365
        errn += verify("test_cp_unalnsrc: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   366
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   367
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   368
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   369
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   370
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   371
      test_2ci_unaln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   372
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   373
        errn += verify("test_2ci_unaln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   374
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   375
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   376
        errn += verify("test_2ci_unaln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   377
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   378
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   379
        errn += verify("test_2ci_unaln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   380
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   381
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   382
        errn += verify("test_2ci_unaln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   383
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   384
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   385
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   386
        a2[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   387
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   388
      test_2vi_unaln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   389
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   390
        errn += verify("test_2vi_unaln: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   391
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   392
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   393
        errn += verify("test_2vi_unaln: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   394
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   395
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   396
        errn += verify("test_2vi_unaln: a2", i, a2[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   397
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   398
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   399
        errn += verify("test_2vi_unaln: a2", i, a2[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   400
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   401
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   402
      // Reset for aligned overlap initialization
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   403
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   404
        a1[i] = (i > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   405
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   406
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   407
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   408
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   409
      test_cp_alndst(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   410
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   411
        boolean v = (i%ALIGN_OFF > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   412
        errn += verify("test_cp_alndst_overlap: a1", i, a1[i], v);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   413
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   414
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   415
        a1[i+ALIGN_OFF] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   416
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   417
      test_cp_alnsrc(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   418
      for (int i=0; i<ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   419
        errn += verify("test_cp_alnsrc_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   420
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   421
      for (int i=ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   422
        boolean v = (i%ALIGN_OFF > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   423
        errn += verify("test_cp_alnsrc_overlap: a1", i, a1[i], v);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   424
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   425
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   426
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   427
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   428
      test_2ci_aln(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   429
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   430
        errn += verify("test_2ci_aln_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   431
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   432
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   433
        errn += verify("test_2ci_aln_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   434
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   435
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   436
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   437
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   438
      test_2vi_aln(a1, a1, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   439
      for (int i=0; i<ARRLEN-ALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   440
        errn += verify("test_2vi_aln_overlap: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   441
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   442
      for (int i=ARRLEN-ALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   443
        errn += verify("test_2vi_aln_overlap: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   444
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   445
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   446
      // Reset for unaligned overlap initialization
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   447
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   448
        a1[i] = (i > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   449
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   450
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   451
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   452
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   453
      test_cp_unalndst(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   454
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   455
        boolean v = (i%UNALIGN_OFF > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   456
        errn += verify("test_cp_unalndst_overlap: a1", i, a1[i], v);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   457
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   458
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   459
        a1[i+UNALIGN_OFF] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   460
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   461
      test_cp_unalnsrc(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   462
      for (int i=0; i<UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   463
        errn += verify("test_cp_unalnsrc_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   464
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   465
      for (int i=UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   466
        boolean v = (i%UNALIGN_OFF > 0);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   467
        errn += verify("test_cp_unalnsrc_overlap: a1", i, a1[i], v);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   468
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   469
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   470
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   471
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   472
      test_2ci_unaln(a1, a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   473
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   474
        errn += verify("test_2ci_unaln_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   475
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   476
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   477
        errn += verify("test_2ci_unaln_overlap: a1", i, a1[i], false);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   478
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   479
      for (int i=0; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   480
        a1[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   481
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   482
      test_2vi_unaln(a1, a1, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   483
      for (int i=0; i<ARRLEN-UNALIGN_OFF; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   484
        errn += verify("test_2vi_unaln_overlap: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   485
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   486
      for (int i=ARRLEN-UNALIGN_OFF; i<ARRLEN; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   487
        errn += verify("test_2vi_unaln_overlap: a1", i, a1[i], true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   488
      }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   489
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   490
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   491
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   492
    if (errn > 0)
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   493
      return errn;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   494
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   495
    System.out.println("Time");
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   496
    long start, end;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   497
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   498
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   499
      test_ci(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   500
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   501
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   502
    System.out.println("test_ci: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   503
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   504
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   505
      test_vi(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   506
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   507
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   508
    System.out.println("test_vi: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   509
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   510
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   511
      test_cp(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   512
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   513
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   514
    System.out.println("test_cp: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   515
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   516
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   517
      test_2ci(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   518
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   519
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   520
    System.out.println("test_2ci: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   521
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   522
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   523
      test_2vi(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   524
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   525
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   526
    System.out.println("test_2vi: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   527
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   528
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   529
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   530
      test_ci_neg(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   531
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   532
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   533
    System.out.println("test_ci_neg: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   534
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   535
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   536
      test_vi_neg(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   537
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   538
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   539
    System.out.println("test_vi_neg: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   540
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   541
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   542
      test_cp_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   543
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   544
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   545
    System.out.println("test_cp_neg: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   546
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   547
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   548
      test_2ci_neg(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   549
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   550
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   551
    System.out.println("test_2ci_neg: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   552
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   553
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   554
      test_2vi_neg(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   555
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   556
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   557
    System.out.println("test_2vi_neg: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   558
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   559
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   560
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   561
      test_ci_oppos(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   562
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   563
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   564
    System.out.println("test_ci_oppos: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   565
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   566
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   567
      test_vi_oppos(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   568
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   569
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   570
    System.out.println("test_vi_oppos: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   571
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   572
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   573
      test_cp_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   574
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   575
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   576
    System.out.println("test_cp_oppos: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   577
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   578
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   579
      test_2ci_oppos(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   580
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   581
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   582
    System.out.println("test_2ci_oppos: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   583
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   584
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   585
      test_2vi_oppos(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   586
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   587
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   588
    System.out.println("test_2vi_oppos: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   589
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   590
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   591
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   592
      test_ci_off(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   593
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   594
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   595
    System.out.println("test_ci_off: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   596
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   597
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   598
      test_vi_off(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   599
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   600
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   601
    System.out.println("test_vi_off: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   602
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   603
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   604
      test_cp_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   605
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   606
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   607
    System.out.println("test_cp_off: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   608
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   609
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   610
      test_2ci_off(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   611
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   612
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   613
    System.out.println("test_2ci_off: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   614
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   615
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   616
      test_2vi_off(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   617
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   618
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   619
    System.out.println("test_2vi_off: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   620
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   621
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   622
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   623
      test_ci_inv(a1, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   624
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   625
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   626
    System.out.println("test_ci_inv: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   627
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   628
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   629
      test_vi_inv(a2, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   630
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   631
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   632
    System.out.println("test_vi_inv: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   633
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   634
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   635
      test_cp_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   636
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   637
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   638
    System.out.println("test_cp_inv: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   639
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   640
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   641
      test_2ci_inv(a1, a2, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   642
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   643
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   644
    System.out.println("test_2ci_inv: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   645
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   646
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   647
      test_2vi_inv(a1, a2, true, true, OFFSET);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   648
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   649
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   650
    System.out.println("test_2vi_inv: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   651
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   652
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   653
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   654
      test_ci_scl(a1);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   655
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   656
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   657
    System.out.println("test_ci_scl: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   658
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   659
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   660
      test_vi_scl(a2, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   661
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   662
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   663
    System.out.println("test_vi_scl: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   664
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   665
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   666
      test_cp_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   667
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   668
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   669
    System.out.println("test_cp_scl: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   670
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   671
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   672
      test_2ci_scl(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   673
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   674
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   675
    System.out.println("test_2ci_scl: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   676
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   677
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   678
      test_2vi_scl(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   679
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   680
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   681
    System.out.println("test_2vi_scl: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   682
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   683
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   684
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   685
      test_cp_alndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   686
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   687
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   688
    System.out.println("test_cp_alndst: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   689
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   690
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   691
      test_cp_alnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   692
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   693
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   694
    System.out.println("test_cp_alnsrc: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   695
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   696
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   697
      test_2ci_aln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   698
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   699
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   700
    System.out.println("test_2ci_aln: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   701
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   702
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   703
      test_2vi_aln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   704
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   705
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   706
    System.out.println("test_2vi_aln: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   707
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   708
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   709
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   710
      test_cp_unalndst(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   711
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   712
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   713
    System.out.println("test_cp_unalndst: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   714
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   715
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   716
      test_cp_unalnsrc(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   717
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   718
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   719
    System.out.println("test_cp_unalnsrc: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   720
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   721
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   722
      test_2ci_unaln(a1, a2);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   723
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   724
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   725
    System.out.println("test_2ci_unaln: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   726
    start = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   727
    for (int i=0; i<ITERS; i++) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   728
      test_2vi_unaln(a1, a2, true, true);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   729
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   730
    end = System.currentTimeMillis();
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   731
    System.out.println("test_2vi_unaln: " + (end - start));
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   732
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   733
    return errn;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   734
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   735
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   736
  static void test_ci(boolean[] a) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   737
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   738
      a[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   739
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   740
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   741
  static void test_vi(boolean[] a, boolean b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   742
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   743
      a[i] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   744
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   745
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   746
  static void test_cp(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   747
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   748
      a[i] = b[i];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   749
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   750
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   751
  static void test_2ci(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   752
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   753
      a[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   754
      b[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   755
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   756
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   757
  static void test_2vi(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   758
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   759
      a[i] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   760
      b[i] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   761
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   762
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   763
  static void test_ci_neg(boolean[] a) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   764
    for (int i = a.length-1; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   765
      a[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   766
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   767
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   768
  static void test_vi_neg(boolean[] a, boolean b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   769
    for (int i = a.length-1; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   770
      a[i] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   771
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   772
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   773
  static void test_cp_neg(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   774
    for (int i = a.length-1; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   775
      a[i] = b[i];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   776
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   777
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   778
  static void test_2ci_neg(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   779
    for (int i = a.length-1; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   780
      a[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   781
      b[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   782
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   783
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   784
  static void test_2vi_neg(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   785
    for (int i = a.length-1; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   786
      a[i] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   787
      b[i] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   788
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   789
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   790
  static void test_ci_oppos(boolean[] a) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   791
    int limit = a.length-1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   792
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   793
      a[limit-i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   794
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   795
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   796
  static void test_vi_oppos(boolean[] a, boolean b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   797
    int limit = a.length-1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   798
    for (int i = limit; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   799
      a[limit-i] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   800
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   801
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   802
  static void test_cp_oppos(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   803
    int limit = a.length-1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   804
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   805
      a[i] = b[limit-i];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   806
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   807
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   808
  static void test_2ci_oppos(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   809
    int limit = a.length-1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   810
    for (int i = 0; i < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   811
      a[limit-i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   812
      b[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   813
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   814
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   815
  static void test_2vi_oppos(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   816
    int limit = a.length-1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   817
    for (int i = limit; i >= 0; i-=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   818
      a[i] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   819
      b[limit-i] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   820
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   821
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   822
  static void test_ci_off(boolean[] a) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   823
    for (int i = 0; i < a.length-OFFSET; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   824
      a[i+OFFSET] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   825
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   826
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   827
  static void test_vi_off(boolean[] a, boolean b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   828
    for (int i = 0; i < a.length-OFFSET; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   829
      a[i+OFFSET] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   830
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   831
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   832
  static void test_cp_off(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   833
    for (int i = 0; i < a.length-OFFSET; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   834
      a[i+OFFSET] = b[i+OFFSET];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   835
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   836
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   837
  static void test_2ci_off(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   838
    for (int i = 0; i < a.length-OFFSET; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   839
      a[i+OFFSET] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   840
      b[i+OFFSET] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   841
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   842
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   843
  static void test_2vi_off(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   844
    for (int i = 0; i < a.length-OFFSET; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   845
      a[i+OFFSET] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   846
      b[i+OFFSET] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   847
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   848
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   849
  static void test_ci_inv(boolean[] a, int k) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   850
    for (int i = 0; i < a.length-k; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   851
      a[i+k] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   852
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   853
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   854
  static void test_vi_inv(boolean[] a, boolean b, int k) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   855
    for (int i = 0; i < a.length-k; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   856
      a[i+k] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   857
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   858
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   859
  static void test_cp_inv(boolean[] a, boolean[] b, int k) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   860
    for (int i = 0; i < a.length-k; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   861
      a[i+k] = b[i+k];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   862
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   863
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   864
  static void test_2ci_inv(boolean[] a, boolean[] b, int k) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   865
    for (int i = 0; i < a.length-k; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   866
      a[i+k] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   867
      b[i+k] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   868
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   869
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   870
  static void test_2vi_inv(boolean[] a, boolean[] b, boolean c, boolean d, int k) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   871
    for (int i = 0; i < a.length-k; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   872
      a[i+k] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   873
      b[i+k] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   874
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   875
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   876
  static void test_ci_scl(boolean[] a) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   877
    for (int i = 0; i*SCALE < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   878
      a[i*SCALE] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   879
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   880
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   881
  static void test_vi_scl(boolean[] a, boolean b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   882
    for (int i = 0; i*SCALE < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   883
      a[i*SCALE] = b;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   884
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   885
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   886
  static void test_cp_scl(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   887
    for (int i = 0; i*SCALE < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   888
      a[i*SCALE] = b[i*SCALE];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   889
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   890
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   891
  static void test_2ci_scl(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   892
    for (int i = 0; i*SCALE < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   893
      a[i*SCALE] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   894
      b[i*SCALE] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   895
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   896
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   897
  static void test_2vi_scl(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   898
    for (int i = 0; i*SCALE < a.length; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   899
      a[i*SCALE] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   900
      b[i*SCALE] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   901
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   902
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   903
  static void test_cp_alndst(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   904
    for (int i = 0; i < a.length-ALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   905
      a[i+ALIGN_OFF] = b[i];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   906
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   907
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   908
  static void test_cp_alnsrc(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   909
    for (int i = 0; i < a.length-ALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   910
      a[i] = b[i+ALIGN_OFF];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   911
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   912
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   913
  static void test_2ci_aln(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   914
    for (int i = 0; i < a.length-ALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   915
      a[i+ALIGN_OFF] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   916
      b[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   917
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   918
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   919
  static void test_2vi_aln(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   920
    for (int i = 0; i < a.length-ALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   921
      a[i] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   922
      b[i+ALIGN_OFF] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   923
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   924
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   925
  static void test_cp_unalndst(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   926
    for (int i = 0; i < a.length-UNALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   927
      a[i+UNALIGN_OFF] = b[i];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   928
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   929
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   930
  static void test_cp_unalnsrc(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   931
    for (int i = 0; i < a.length-UNALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   932
      a[i] = b[i+UNALIGN_OFF];
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   933
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   934
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   935
  static void test_2ci_unaln(boolean[] a, boolean[] b) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   936
    for (int i = 0; i < a.length-UNALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   937
      a[i+UNALIGN_OFF] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   938
      b[i] = false;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   939
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   940
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   941
  static void test_2vi_unaln(boolean[] a, boolean[] b, boolean c, boolean d) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   942
    for (int i = 0; i < a.length-UNALIGN_OFF; i+=1) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   943
      a[i] = c;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   944
      b[i+UNALIGN_OFF] = d;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   945
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   946
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   947
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   948
  static int verify(String text, int i, boolean elem, boolean val) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   949
    if (elem != val) {
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   950
      System.err.println(text + "[" + i + "] = " + elem + " != " + val);
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   951
      return 1;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   952
    }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   953
    return 0;
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   954
  }
657b387034fb 7119644: Increase superword's vector size up to 256 bits
kvn
parents:
diff changeset
   955
}