hotspot/test/compiler/codegen/6909839/Test6909839.java
author chegar
Tue, 22 Mar 2016 15:26:07 +0000
changeset 36694 182a5e7a519e
parent 27699 9913b19c0948
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4589
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     1
/*
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4589
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
4589
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     4
 *
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     7
 * published by the Free Software Foundation.
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     8
 *
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    13
 * accompanied this code).
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    14
 *
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4589
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4589
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4589
diff changeset
    21
 * questions.
4589
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    22
 *
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    23
 */
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    24
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    25
/**
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    26
 * @test
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    27
 * @bug 6909839
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    28
 * @summary missing unsigned compare cases for some cmoves in sparc.ad
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    29
 *
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    30
 * @run main/othervm -XX:+AggressiveOpts -Xbatch Test6909839
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    31
 */
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    32
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    33
public class Test6909839 {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    34
    public static void main(String[] args) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    35
        testi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    36
        testi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    37
        testi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    38
        testui();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    39
        testui();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    40
        testui();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    41
        testdi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    42
        testdi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    43
        testdi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    44
        testfi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    45
        testfi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    46
        testfi();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    47
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    48
        testl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    49
        testl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    50
        testl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    51
        testul();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    52
        testul();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    53
        testul();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    54
        testdl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    55
        testdl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    56
        testdl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    57
        testfl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    58
        testfl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    59
        testfl();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    60
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    61
        testf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    62
        testf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    63
        testf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    64
        testuf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    65
        testuf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    66
        testuf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    67
        testdf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    68
        testdf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    69
        testdf();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    70
        testff();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    71
        testff();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    72
        testff();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    73
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    74
        testd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    75
        testd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    76
        testd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    77
        testud();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    78
        testud();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    79
        testud();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    80
        testdd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    81
        testdd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    82
        testdd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    83
        testfd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    84
        testfd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    85
        testfd();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    86
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    87
        testp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    88
        testp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    89
        testp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    90
        testup();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    91
        testup();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    92
        testup();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    93
        testdp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    94
        testdp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    95
        testdp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    96
        testfp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    97
        testfp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    98
        testfp();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
    99
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   100
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   101
    static void testui() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   102
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   103
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   104
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   105
            total += ((v >= 1 && v < 3) ? 1 : 2);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   106
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   107
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   108
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   109
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   110
    static void testdi() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   111
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   112
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   113
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   114
            total += (v > 1.0) ? 1 : 2;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   115
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   116
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   117
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   118
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   119
    static void testfi() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   120
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   121
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   122
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   123
            total += (v > 1.0f) ? 1 : 2;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   124
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   125
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   126
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   127
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   128
    static void testi() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   129
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   130
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   131
            total += (i % 4 != 0) ? 1 : 2;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   132
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   133
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   134
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   135
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   136
    static void testul() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   137
        long total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   138
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   139
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   140
            total += ((v >= 1 && v < 3) ? 1L : 2L);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   141
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   142
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   143
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   144
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   145
    static void testdl() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   146
        long total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   147
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   148
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   149
            total += (v > 1.0) ? 1L : 2L;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   150
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   151
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   152
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   153
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   154
    static void testfl() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   155
        long total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   156
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   157
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   158
            total += (v > 1.0f) ? 1L : 2L;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   159
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   160
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   161
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   162
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   163
    static void testl() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   164
        long total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   165
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   166
            total += (i % 4 != 0) ? 1L : 2L;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   167
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   168
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   169
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   170
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   171
    static void testuf() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   172
        float total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   173
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   174
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   175
            total += ((v >= 1 && v < 3) ? 1.0f : 2.0f);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   176
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   177
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   178
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   179
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   180
    static void testdf() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   181
        float total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   182
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   183
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   184
            total += (v > 0.0) ? 1.0f : 2.0f;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   185
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   186
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   187
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   188
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   189
    static void testff() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   190
        float total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   191
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   192
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   193
            total += (v > 0.0f) ? 1.0f : 2.0f;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   194
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   195
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   196
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   197
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   198
    static void testf() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   199
        float total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   200
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   201
            total += (i % 4 != 0) ? 1.0f : 2.0f;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   202
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   203
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   204
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   205
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   206
    static void testud() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   207
        double total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   208
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   209
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   210
            total += ((v >= 1 && v < 3) ? 1.0d : 2.0d);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   211
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   212
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   213
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   214
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   215
    static void testdd() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   216
        double total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   217
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   218
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   219
            total += (v > 1.0) ? 1.0d : 2.0d;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   220
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   221
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   222
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   223
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   224
    static void testfd() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   225
        double total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   226
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   227
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   228
            total += (v > 1.0f) ? 1.0d : 2.0d;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   229
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   230
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   231
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   232
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   233
    static void testd() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   234
        double total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   235
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   236
            total += (i % 4 != 0) ? 1.0d : 2.0d;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   237
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   238
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   239
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   240
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   241
    static void testp() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   242
        Object a = new Object();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   243
        Object b = new Object();;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   244
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   245
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   246
            total += ((i % 4 != 0) ? a : b).hashCode();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   247
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   248
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   249
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   250
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   251
    static void testup() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   252
        Object a = new Object();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   253
        Object b = new Object();;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   254
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   255
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   256
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   257
            total += ((v >= 1 && v < 3) ? a : b).hashCode();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   258
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   259
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   260
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   261
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   262
    static void testdp() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   263
        Object a = new Object();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   264
        Object b = new Object();;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   265
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   266
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   267
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   268
            total += ((v > 1.0) ? a : b).hashCode();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   269
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   270
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   271
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   272
    static void testfp() {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   273
        Object a = new Object();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   274
        Object b = new Object();;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   275
        int total = 0;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   276
        for (int i = 0 ; i < 10000; i++) {
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   277
            int v = i % 4;
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   278
            total += ((v > 1.0f) ? a : b).hashCode();
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   279
        }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   280
        System.out.println(total);
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   281
    }
2621c7da5a88 6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff changeset
   282
}