test/hotspot/jtreg/compiler/stable/TestStableUShort.java
author iignatyev
Mon, 18 Feb 2019 09:31:07 -0800
changeset 53791 bec6c8739833
parent 51016 a926b7737d3b
permissions -rw-r--r--
8219157: vm/mlvm/mixed/stress/java/findDeadlock should be problem-listed only on mac Reviewed-by: thartmann
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
/*
51016
a926b7737d3b 8206287: fix legal notice in hotspot tests
iignatyev
parents: 47216
diff changeset
     2
 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
36831
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
51016
a926b7737d3b 8206287: fix legal notice in hotspot tests
iignatyev
parents: 47216
diff changeset
     7
 * published by the Free Software Foundation.
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     8
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
     9
 * 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
    10
 * 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
    11
 * 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
    12
 * 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
    13
 * accompanied this code).
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    14
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    15
 * 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
    16
 * 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
    17
 * 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
    18
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    19
 * 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
    20
 * 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
    21
 * questions.
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    22
 */
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    23
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
 * @test TestStableUShort
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    26
 * @summary tests on stable fields and arrays
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 40059
diff changeset
    27
 * @library /test/lib /
38152
80e5da81fb2c 8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents: 36839
diff changeset
    28
 * @modules java.base/jdk.internal.misc
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    29
 * @modules java.base/jdk.internal.vm.annotation
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    30
 * @build sun.hotspot.WhiteBox
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    31
 *
38188
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    32
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    33
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    34
 *                                 -XX:-TieredCompilation
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    35
 *                                 -XX:+FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    36
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    37
 *                                 compiler.stable.TestStableUShort
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    38
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    39
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    40
 *                                 -XX:-TieredCompilation
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    41
 *                                 -XX:-FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    42
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    43
 *                                 compiler.stable.TestStableUShort
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    44
 *
38188
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    45
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    46
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    47
 *                                 -XX:+TieredCompilation -XX:TieredStopAtLevel=1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    48
 *                                 -XX:+FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    49
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    50
 *                                 compiler.stable.TestStableUShort
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    51
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    52
 *                                 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    53
 *                                 -XX:+TieredCompilation -XX:TieredStopAtLevel=1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    54
 *                                 -XX:-FoldStableValues
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    55
 *                                 -XX:CompileOnly=::get,::get1
e76af590ea2f 8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents: 38152
diff changeset
    56
 *                                 compiler.stable.TestStableUShort
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    57
 */
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38207
diff changeset
    58
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    59
package compiler.stable;
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
import jdk.internal.vm.annotation.Stable;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    62
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    63
import java.lang.reflect.InvocationTargetException;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    64
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    65
public class TestStableUShort {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    66
    static final boolean isStableEnabled = StableConfiguration.isStableEnabled;
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 static void main(String[] args) throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    69
        run(UShortStable.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    70
        run(UShortArrayDim1.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    71
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    72
        if (failed) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    73
            throw new Error("TEST FAILED");
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
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    76
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
    static class UShortStable {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    80
        public @Stable short v;
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
        public static final UShortStable c = new UShortStable();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    83
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    84
        public static int get() { return c.v & 0xFFFF; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    85
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    86
        public static void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    87
            short v1 = -1, v2 = 1;
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
            c.v = v1; int r1 = get();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    90
            c.v = v2; int r2 = get();
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
            assertEquals(r1, v1 & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    93
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF);
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
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    96
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
    static class UShortArrayDim1 {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   100
        public @Stable short[] v;
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
        public static final UShortArrayDim1 c = new UShortArrayDim1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   103
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   104
        public static short[] get()  { return c.v; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   105
        public static int    get1() { return get()[0] & 0xFFFF; }
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 void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   108
            short v1 = -1, v2 = 1;
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
            c.v = new short[1];
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   111
            c.v[0] = v1; int r1 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   112
            c.v[0] = v2; int r2 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   113
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   114
            assertEquals(r1, v1 & 0xFFFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   115
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF);
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
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   118
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
    // Auxiliary methods
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   121
    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
   122
    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
   123
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   124
    static boolean failed = false;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   125
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   126
    public static void run(Class<?> test) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   127
        Throwable ex = null;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   128
        System.out.print(test.getName()+": ");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   129
        try {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   130
            test.getMethod("test").invoke(null);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   131
        } catch (InvocationTargetException e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   132
            ex = e.getCause();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   133
        } catch (Throwable e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   134
            ex = e;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   135
        } finally {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   136
            if (ex == null) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   137
                System.out.println("PASSED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   138
            } else {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   139
                failed = true;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   140
                System.out.println("FAILED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   141
                ex.printStackTrace(System.out);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   142
            }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   143
        }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   144
    }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   145
}