mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8028587: New tests development for intrisics for basic operators - add, neg, inc, dec, sub, mul
Reviewed-by: twisti
This commit is contained in:
parent
cfefd04320
commit
b6d0b72ec0
26 changed files with 1035 additions and 97 deletions
|
@ -27,19 +27,17 @@
|
|||
* @library /testlibrary /testlibrary/whitebox
|
||||
* @build DeoptimizeMethodTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,TestCase$Helper::* DeoptimizeMethodTest
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* DeoptimizeMethodTest
|
||||
* @summary testing of WB::deoptimizeMethod()
|
||||
* @author igor.ignatyev@oracle.com
|
||||
*/
|
||||
public class DeoptimizeMethodTest extends CompilerWhiteBoxTest {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
for (TestCase test : TestCase.values()) {
|
||||
new DeoptimizeMethodTest(test).runTest();
|
||||
}
|
||||
CompilerWhiteBoxTest.main(DeoptimizeMethodTest::new, args);
|
||||
}
|
||||
|
||||
public DeoptimizeMethodTest(TestCase testCase) {
|
||||
private DeoptimizeMethodTest(TestCase testCase) {
|
||||
super(testCase);
|
||||
// to prevent inlining of #method
|
||||
WHITE_BOX.testSetDontInlineMethod(method, true);
|
||||
|
@ -53,7 +51,7 @@ public class DeoptimizeMethodTest extends CompilerWhiteBoxTest {
|
|||
*/
|
||||
@Override
|
||||
protected void test() throws Exception {
|
||||
if (testCase.isOsr && CompilerWhiteBoxTest.MODE.startsWith(
|
||||
if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
|
||||
"compiled ")) {
|
||||
System.err.printf("Warning: %s is not applicable in %s%n",
|
||||
testCase.name(), CompilerWhiteBoxTest.MODE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue