author | kvn |
Fri, 23 Feb 2018 10:14:23 -0800 | |
changeset 49060 | 76960a347f10 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
34199
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
1 |
/* |
37773
e5b3e9732c3c
8154956: Module system implementation refresh (4/2016)
alanb
parents:
36851
diff
changeset
|
2 |
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
34199
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
4 |
* |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
8 |
* |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
13 |
* accompanied this code). |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
14 |
* |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
18 |
* |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
21 |
* questions. |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
22 |
*/ |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
23 |
|
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
24 |
/* |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
25 |
* @test |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
26 |
* @bug 8031321 |
49060
76960a347f10
8198251: [Graal] compiler/intrinsics/bmi/verifycode tests fail with Graal on macos
kvn
parents:
47216
diff
changeset
|
27 |
* @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40067
diff
changeset
|
28 |
* @library /test/lib / |
36851 | 29 |
* @modules java.base/jdk.internal.misc |
34199
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
30 |
* java.management |
40059 | 31 |
* |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40067
diff
changeset
|
32 |
* @build sun.hotspot.WhiteBox |
39438 | 33 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
34 |
* sun.hotspot.WhiteBox$WhiteBoxPermission |
|
38188
e76af590ea2f
8155751: Some tests miss othervm for main/bootclasspath mode
vlivanov
parents:
36851
diff
changeset
|
35 |
* @run main/bootclasspath/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI |
40059 | 36 |
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions |
37 |
* compiler.intrinsics.bmi.verifycode.AndnTestL |
|
34199
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
38 |
*/ |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
39 |
|
40059 | 40 |
package compiler.intrinsics.bmi.verifycode; |
41 |
||
42 |
import compiler.intrinsics.bmi.TestAndnL; |
|
43 |
||
34199
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
44 |
import java.lang.reflect.Method; |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
45 |
|
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
46 |
public class AndnTestL extends AndnTestI { |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
47 |
|
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
48 |
protected AndnTestL(Method method) { |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
49 |
super(method); |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
50 |
isLongOperation = true; |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
51 |
} |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
52 |
|
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
53 |
public static void main(String[] args) throws Exception { |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
54 |
BmiIntrinsicBase.verifyTestCase(AndnTestL::new, TestAndnL.AndnLExpr.class.getDeclaredMethods()); |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
55 |
BmiIntrinsicBase.verifyTestCase(AndnTestL::new, TestAndnL.AndnLCommutativeExpr.class.getDeclaredMethods()); |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
56 |
} |
ae7dbc401221
8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
goetz
parents:
diff
changeset
|
57 |
} |