test/compiler/intrinsics/bmi/TestLzcntI.java

Print this page
rev 7044 : 8043674: Update compiler/intrinsic/bmi tests to run it on all platforms
Reviewed-by: fzhinkin
Contributed-by: Dmitrij Pochepko <dmitrij.pochepko@oracle.com>

*** 39,54 **** public class TestLzcntI { 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"); } public static class LzcntIExpr extends Expr.BitCountingIntExpr { --- 39,53 ---- public class TestLzcntI { 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"); } public static class LzcntIExpr extends Expr.BitCountingIntExpr {