sun.hotspot.cpuinfo.CPUInfo Java Examples

The following examples show how to use sun.hotspot.cpuinfo.CPUInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestBlsmskL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsmskLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #2
Source File: BmiIntrinsicBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void test() throws Exception {
    BmiTestCase bmiTestCase = (BmiTestCase) testCase;

    if (!(Platform.isX86() || Platform.isX64())) {
        System.out.println("Unsupported platform, test SKIPPED");
        return;
    }

    if (!Platform.isServer()) {
        throw new Error("TESTBUG: Not server VM");
    }

    if (Platform.isInt()) {
        throw new Error("TESTBUG: test can not be run in interpreter");
    }

    if (!CPUInfo.hasFeature(bmiTestCase.getCpuFlag())) {
        System.out.println("Unsupported hardware, no required CPU flag " + bmiTestCase.getCpuFlag() + " , test SKIPPED");
        return;
    }

    if (!Boolean.valueOf(getVMOption(bmiTestCase.getVMFlag()))) {
        System.out.println("VM flag " + bmiTestCase.getVMFlag() + " disabled, test SKIPPED");
        return;
    }

    System.out.println(testCase.name());

    if (TIERED_COMPILATION && TIERED_STOP_AT_LEVEL != CompilerWhiteBoxTest.COMP_LEVEL_MAX || Platform.isEmulatedClient()) {
        System.out.println("TieredStopAtLevel value (" + TIERED_STOP_AT_LEVEL + ") is too low, test SKIPPED");
        return;
    }
    deoptimize();
    compileAtLevelAndCheck(CompilerWhiteBoxTest.COMP_LEVEL_MAX);
}
 
Example #3
Source File: TestBlsmskI.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("INFO: CPU does not support bmi1 feature.");
    }

    BMITestRunner.runTests(BlsmskIExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskICommutativeExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
}
 
Example #4
Source File: TestBlsiI.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("INFO: CPU does not support bmi1 feature.");
    }

    BMITestRunner.runTests(BlsiIExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsiICommutativeExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
}
 
Example #5
Source File: TestLzcntI.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("lzcnt")) {
        System.out.println("INFO: CPU does not support lzcnt feature.");
    }

    BMITestRunner.runTests(LzcntIExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseCountLeadingZerosInstruction");
}
 
Example #6
Source File: TestAndnL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(AndnLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(AndnLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #7
Source File: TestBlsrI.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsrIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsrICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #8
Source File: TestBlsrL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsrLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsrLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #9
Source File: TestBlsmskI.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsmskIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #10
Source File: TestBlsiL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsiLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsiLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #11
Source File: TestTzcntI.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(TzcntIExpr.class, args,
                           "-XX:+UseCountTrailingZerosInstruction");
}
 
Example #12
Source File: TestBlsmskL.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("INFO: CPU does not support bmi1 feature.");
    }

    BMITestRunner.runTests(BlsmskLExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskLCommutativeExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
}
 
Example #13
Source File: TestAndnL.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("INFO: CPU does not support bmi1 feature.");
    }

    BMITestRunner.runTests(AndnLExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(AndnLCommutativeExpr.class, args,
                          "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
}
 
Example #14
Source File: TestLzcntI.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("lzcnt")) {
        System.out.println("CPU does not support lzcnt feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(LzcntIExpr.class, args,
                           "-XX:+UseCountLeadingZerosInstruction");
}
 
Example #15
Source File: TestBlsiI.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsiIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsiICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #16
Source File: TestBlsrI.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("INFO: CPU does not support bmi1 feature.");
    }

    BMITestRunner.runTests(BlsrIExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsrICommutativeExpr.class, args,
                           "-XX:+IgnoreUnrecognizedVMOptions",
                           "-XX:+UseBMI1Instructions");
}
 
Example #17
Source File: TestTzcntL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(TzcntLExpr.class, args,
                           "-XX:+UseCountTrailingZerosInstruction");
}
 
Example #18
Source File: TestLzcntL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("lzcnt")) {
        System.out.println("CPU does not support lzcnt feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(LzcntLExpr.class, args,
                           "-XX:+UseCountLeadingZerosInstruction");
}
 
Example #19
Source File: TestLzcntL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("lzcnt")) {
        System.out.println("CPU does not support lzcnt feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(LzcntLExpr.class, args,
                           "-XX:+UseCountLeadingZerosInstruction");
}
 
Example #20
Source File: TestTzcntI.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(TzcntIExpr.class, args,
                           "-XX:+UseCountTrailingZerosInstruction");
}
 
Example #21
Source File: TestBlsiL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsiLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsiLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #22
Source File: TestBlsmskI.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsmskIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #23
Source File: TestBlsrL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsrLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsrLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #24
Source File: TestAndnI.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. "+
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(AndnIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(AndnICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #25
Source File: TestAndnL.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(AndnLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(AndnLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #26
Source File: TestBlsmskL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsmskLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #27
Source File: TestTzcntL.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(TzcntLExpr.class, args,
                           "-XX:+UseCountTrailingZerosInstruction");
}
 
Example #28
Source File: TestBlsmskL.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(BlsmskLExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(BlsmskLCommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}
 
Example #29
Source File: TestTzcntL.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. " +
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(TzcntLExpr.class, args,
                           "-XX:+UseCountTrailingZerosInstruction");
}
 
Example #30
Source File: TestAndnI.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String args[]) throws Throwable {
    if (!CPUInfo.hasFeature("bmi1")) {
        System.out.println("CPU does not support bmi1 feature. "+
                           "Test skipped.");
        return;
    }

    BMITestRunner.runTests(AndnIExpr.class, args,
                           "-XX:+UseBMI1Instructions");
    BMITestRunner.runTests(AndnICommutativeExpr.class, args,
                           "-XX:+UseBMI1Instructions");
}