hotspot/test/compiler/stable/TestStableUShort.java
author amurillo
Fri, 10 Jun 2016 15:19:32 -0700
changeset 39269 fbef515ea566
parent 38207 2ed792c9481d
child 40059 c2304140ed64
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     1
/*
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     4
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    10
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    15
 * accompanied this code).
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    16
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    20
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    23
 * questions.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    24
 */
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    25
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    26
/*
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    27
 * @test TestStableUShort
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    28
 * @summary tests on stable fields and arrays
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    29
 * @library /testlibrary /test/lib /
38152
80e5da81fb2c 8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents: 36839
diff changeset
    30
 * @modules java.base/jdk.internal.misc
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    31
 * @modules java.base/jdk.internal.vm.annotation
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    32
 * @build sun.hotspot.WhiteBox
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    33
 * @build compiler.stable.TestStableUShort
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    34
 *
38188
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    35
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    36
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    37
 *                                 -XX:-TieredCompilation
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    38
 *                                 -XX:+FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    39
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    40
 *                                 compiler.stable.TestStableUShort
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    41
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    42
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    43
 *                                 -XX:-TieredCompilation
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    44
 *                                 -XX:-FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    45
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    46
 *                                 compiler.stable.TestStableUShort
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    47
 *
38188
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    48
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    49
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    50
 *                                 -XX:+TieredCompilation -XX:TieredStopAtLevel=1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    51
 *                                 -XX:+FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    52
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    53
 *                                 compiler.stable.TestStableUShort
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    54
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    55
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    56
 *                                 -XX:+TieredCompilation -XX:TieredStopAtLevel=1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    57
 *                                 -XX:-FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    58
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    59
 *                                 compiler.stable.TestStableUShort
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    60
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    61
 */
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    62
package compiler.stable;
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    63
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    64
import jdk.internal.vm.annotation.Stable;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    65
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    66
import java.lang.reflect.InvocationTargetException;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    67
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    68
public class TestStableUShort {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    69
    static final boolean isStableEnabled = StableConfiguration.isStableEnabled;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    70
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    71
    public static void main(String[] args) throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    72
        run(UShortStable.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    73
        run(UShortArrayDim1.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    74
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    75
        if (failed) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    76
            throw new Error("TEST FAILED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    77
        }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    78
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    79
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    80
    /* ==================================================== */
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    81
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    82
    static class UShortStable {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    83
        public @Stable short v;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    84
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    85
        public static final UShortStable c = new UShortStable();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    86
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    87
        public static int get() { return c.v & 0xFFFF; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    88
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    89
        public static void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    90
            short v1 = -1, v2 = 1;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    91
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    92
            c.v = v1; int r1 = get();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    93
            c.v = v2; int r2 = get();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    94
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    95
            assertEquals(r1, v1 & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    96
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    97
        }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    98
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    99
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   100
    /* ==================================================== */
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   101
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   102
    static class UShortArrayDim1 {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   103
        public @Stable short[] v;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   104
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   105
        public static final UShortArrayDim1 c = new UShortArrayDim1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   106
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   107
        public static short[] get()  { return c.v; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   108
        public static int    get1() { return get()[0] & 0xFFFF; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   109
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   110
        public static void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   111
            short v1 = -1, v2 = 1;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   112
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   113
            c.v = new short[1];
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   114
            c.v[0] = v1; int r1 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   115
            c.v[0] = v2; int r2 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   116
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   117
            assertEquals(r1, v1 & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   118
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   119
        }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   120
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   121
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   122
    /* ==================================================== */
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   123
    // Auxiliary methods
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   124
    static void assertEquals(int i, int j) { if (i != j)  throw new AssertionError(i + " != " + j); }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   125
    static void assertTrue(boolean b) { if (!b)  throw new AssertionError(); }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   126
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   127
    static boolean failed = false;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   128
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   129
    public static void run(Class<?> test) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   130
        Throwable ex = null;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   131
        System.out.print(test.getName()+": ");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   132
        try {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   133
            test.getMethod("test").invoke(null);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   134
        } catch (InvocationTargetException e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   135
            ex = e.getCause();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   136
        } catch (Throwable e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   137
            ex = e;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   138
        } finally {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   139
            if (ex == null) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   140
                System.out.println("PASSED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   141
            } else {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   142
                failed = true;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   143
                System.out.println("FAILED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   144
                ex.printStackTrace(System.out);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   145
            }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   146
        }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   147
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   148
}