author | lana |
Thu, 23 Feb 2017 17:30:12 +0000 | |
changeset 44011 | 5eea3031ae7b |
parent 40631 | ed82623d7831 |
permissions | -rw-r--r-- |
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 |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
29 |
* @library /test/lib / |
38152
80e5da81fb2c
8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents:
36839
diff
changeset
|
30 |
* @modules java.base/jdk.internal.misc |
36839 | 31 |
* @modules java.base/jdk.internal.vm.annotation |
32 |
* @build sun.hotspot.WhiteBox |
|
36831
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
33 |
* |
38188
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
34 |
* @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
35 |
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
36 |
* -XX:-TieredCompilation |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
37 |
* -XX:+FoldStableValues |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
38 |
* -XX:CompileOnly=::get,::get1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
39 |
* compiler.stable.TestStableUShort |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
40 |
* @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
41 |
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
42 |
* -XX:-TieredCompilation |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
43 |
* -XX:-FoldStableValues |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
44 |
* -XX:CompileOnly=::get,::get1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
45 |
* compiler.stable.TestStableUShort |
36831
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
46 |
* |
38188
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
47 |
* @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
48 |
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
49 |
* -XX:+TieredCompilation -XX:TieredStopAtLevel=1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
50 |
* -XX:+FoldStableValues |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
51 |
* -XX:CompileOnly=::get,::get1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
52 |
* compiler.stable.TestStableUShort |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
53 |
* @run main/bootclasspath/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
54 |
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
55 |
* -XX:+TieredCompilation -XX:TieredStopAtLevel=1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
56 |
* -XX:-FoldStableValues |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
57 |
* -XX:CompileOnly=::get,::get1 |
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
38152
diff
changeset
|
58 |
* compiler.stable.TestStableUShort |
36831
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
59 |
*/ |
40059 | 60 |
|
36839 | 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 TestStableUShort { |
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(UShortStable.class); |
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
72 |
run(UShortArrayDim1.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 UShortStable { |
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
82 |
public @Stable short 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 UShortStable c = new UShortStable(); |
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 & 0xFFFF; } |
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 |
short 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 & 0xFFFF); |
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
95 |
assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF); |
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 UShortArrayDim1 { |
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
102 |
public @Stable short[] 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 UShortArrayDim1 c = new UShortArrayDim1(); |
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 short[] 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] & 0xFFFF; } |
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 |
short 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 short[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 & 0xFFFF); |
6a71b98a4417
8152179: C2: Folding of unsigned loads is broken w/ @Stable
vlivanov
parents:
diff
changeset
|
117 |
assertEquals(r2, (isStableEnabled ? v1 : v2) & 0xFFFF); |
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 |
} |