hotspot/test/compiler/stable/TestStableUByte.java
author alanb
Tue, 03 May 2016 09:09:20 +0100
changeset 37773 e5b3e9732c3c
parent 36839 1737a0a47467
child 38207 2ed792c9481d
permissions -rw-r--r--
8154956: Module system implementation refresh (4/2016) Reviewed-by: acorn, jiangli, ccheung, hseigel Contributed-by: alan.bateman@oracle.com, lois.foltan@oracle.com, harold.seigel@oracle.com
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 TestStableUByte
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 /
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    30
 * @modules java.base/jdk.internal.vm.annotation
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    31
 * @build sun.hotspot.WhiteBox
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    32
 * @build compiler.stable.TestStableUByte
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    33
 *
37773
e5b3e9732c3c 8154956: Module system implementation refresh (4/2016)
alanb
parents: 36839
diff changeset
    34
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    35
 *                         -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    36
 *                         -XX:-TieredCompilation
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    37
 *                         -XX:+FoldStableValues
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    38
 *                         -XX:CompileOnly=::get,::get1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    39
 *                         compiler.stable.TestStableUByte
37773
e5b3e9732c3c 8154956: Module system implementation refresh (4/2016)
alanb
parents: 36839
diff changeset
    40
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    41
 *                         -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    42
 *                         -XX:-TieredCompilation
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    43
 *                         -XX:-FoldStableValues
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    44
 *                         -XX:CompileOnly=::get,::get1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    45
 *                         compiler.stable.TestStableUByte
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    46
 *
37773
e5b3e9732c3c 8154956: Module system implementation refresh (4/2016)
alanb
parents: 36839
diff changeset
    47
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    48
 *                         -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    49
 *                         -XX:+TieredCompilation -XX:TieredStopAtLevel=1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    50
 *                         -XX:+FoldStableValues
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    51
 *                         -XX:CompileOnly=::get,::get1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    52
 *                         compiler.stable.TestStableUByte
37773
e5b3e9732c3c 8154956: Module system implementation refresh (4/2016)
alanb
parents: 36839
diff changeset
    53
 * @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    54
 *                         -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    55
 *                         -XX:+TieredCompilation -XX:TieredStopAtLevel=1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    56
 *                         -XX:-FoldStableValues
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    57
 *                         -XX:CompileOnly=::get,::get1
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    58
 *                         compiler.stable.TestStableUByte
36831
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    59
 *
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    60
 */
36839
1737a0a47467 8152945: TestStableU* tests aren't Jigsaw-ready
vlivanov
parents: 36831
diff changeset
    61
package compiler.stable;
36831
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 jdk.internal.vm.annotation.Stable;
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
import java.lang.reflect.InvocationTargetException;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    66
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    67
public class TestStableUByte {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    68
    static final boolean isStableEnabled = StableConfiguration.isStableEnabled;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    69
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    70
    public static void main(String[] args) throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    71
        run(UByteStable.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    72
        run(UByteArrayDim1.class);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    73
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    74
        if (failed) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    75
            throw new Error("TEST FAILED");
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
    /* ==================================================== */
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
    static class UByteStable {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    82
        public @Stable byte v;
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 final UByteStable c = new UByteStable();
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 int get() { return c.v & 0xFF; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    87
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    88
        public static void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    89
            byte v1 = -1, v2 = 1;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    90
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    91
            c.v = v1; int r1 = get();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    92
            c.v = v2; int r2 = get();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    93
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    94
            assertEquals(r1, v1 & 0xFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
    95
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFF);
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
    /* ==================================================== */
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
    static class UByteArrayDim1 {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   102
        public @Stable byte[] v;
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 final UByteArrayDim1 c = new UByteArrayDim1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   105
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   106
        public static byte[] get()  { return c.v; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   107
        public static int    get1() { return get()[0] & 0xFF; }
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   108
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   109
        public static void test() throws Exception {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   110
            byte v1 = -1, v2 = 1;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   111
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   112
            c.v = new byte[1];
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   113
            c.v[0] = v1; int r1 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   114
            c.v[0] = v2; int r2 = get1();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   115
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   116
            assertEquals(r1, v1 & 0xFF);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   117
            assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFF);
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
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
    // Auxiliary methods
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   123
    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
   124
    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
   125
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   126
    static boolean failed = false;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   127
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   128
    public static void run(Class<?> test) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   129
        Throwable ex = null;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   130
        System.out.print(test.getName()+": ");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   131
        try {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   132
            test.getMethod("test").invoke(null);
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   133
        } catch (InvocationTargetException e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   134
            ex = e.getCause();
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   135
        } catch (Throwable e) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   136
            ex = e;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   137
        } finally {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   138
            if (ex == null) {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   139
                System.out.println("PASSED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   140
            } else {
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   141
                failed = true;
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   142
                System.out.println("FAILED");
6a71b98a4417 8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff changeset
   143
                ex.printStackTrace(System.out);
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
        }
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
}