Mercurial > hg > truffle
annotate test/compiler/codegen/LoadWithMask.java @ 21139:a17dc2584e81
Fix time reporting in multithreaded CTW
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 28 Apr 2015 09:44:23 -0700 |
parents | 9918c6fb4770 |
children |
rev | line source |
---|---|
14270
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
1 /* |
9918c6fb4770
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. |
9918c6fb4770
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. |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
4 * |
9918c6fb4770
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 |
9918c6fb4770
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 |
9918c6fb4770
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. |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
8 * |
9918c6fb4770
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 |
9918c6fb4770
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 |
9918c6fb4770
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 |
9918c6fb4770
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 |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
13 * accompanied this code). |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
14 * |
9918c6fb4770
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 |
9918c6fb4770
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, |
9918c6fb4770
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. |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
18 * |
9918c6fb4770
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 |
9918c6fb4770
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 |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
21 * questions. |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
22 */ |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
23 |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
24 /* |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
25 * @test |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
26 * @bug 8032207 |
9918c6fb4770
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 |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
28 * @run main/othervm -server -Xbatch -XX:-TieredCompilation -XX:CompileCommand=compileonly,LoadWithMask.foo LoadWithMask |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
29 * |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
30 */ |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
31 public class LoadWithMask { |
9918c6fb4770
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]; |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
33 static long foo() { |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
34 return x[0] & 0xfff0ffff; |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
35 } |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
36 |
9918c6fb4770
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) { |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
38 x[0] = -1; |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
39 long l = 0; |
9918c6fb4770
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) { |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
41 l = foo(); |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
42 } |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
43 } |
9918c6fb4770
8032207: C2: assert(VerifyOops || MachNode::size(ra_) <= (3+1)*4) failed: bad fixed size
iveresov
parents:
diff
changeset
|
44 } |