author | chegar |
Tue, 22 Mar 2016 15:26:07 +0000 | |
changeset 36694 | 182a5e7a519e |
parent 26916 | 8a1deee4f9b4 |
child 40059 | c2304140ed64 |
permissions | -rw-r--r-- |
22512
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
1 |
/* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
2 |
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
4 |
* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
8 |
* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
13 |
* accompanied this code). |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
14 |
* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
18 |
* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
21 |
* questions. |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
22 |
*/ |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
23 |
|
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
24 |
/* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
25 |
* @test |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
26 |
* @bug 8032207 |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
27 |
* @summary Invalid node sizing for loadUS2L_immI16 and loadI2L_immI |
26916
8a1deee4f9b4
8038098: [TESTBUG] remove explicit set build flavor from hotspot/test/compiler/* tests
vlivanov
parents:
22512
diff
changeset
|
28 |
* @run main/othervm -Xbatch -XX:CompileCommand=compileonly,LoadWithMask.foo LoadWithMask |
22512
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
29 |
* |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
30 |
*/ |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
31 |
public class LoadWithMask { |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
32 |
static int x[] = new int[1]; |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
33 |
static long foo() { |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
34 |
return x[0] & 0xfff0ffff; |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
35 |
} |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
36 |
|
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
37 |
public static void main(String[] args) { |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
38 |
x[0] = -1; |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
39 |
long l = 0; |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
40 |
for (int i = 0; i < 100000; ++i) { |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
41 |
l = foo(); |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
42 |
} |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
43 |
} |
ac73b3e6d336
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
44 |
} |