hotspot/test/compiler/testlibrary/rtm/predicate/SupportedCPU.java
changeset 40059 c2304140ed64
parent 39438 206a712f8f16
child 41705 332239c052cc
equal deleted inserted replaced
40058:b4441f6cfe79 40059:c2304140ed64
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 package compiler.testlibrary.rtm.predicate;
    25 package compiler.testlibrary.rtm.predicate;
    26 
    26 
       
    27 import jdk.test.lib.Platform;
    27 import sun.hotspot.cpuinfo.CPUInfo;
    28 import sun.hotspot.cpuinfo.CPUInfo;
    28 
    29 
    29 import java.util.function.BooleanSupplier;
    30 import java.util.function.BooleanSupplier;
    30 
       
    31 import jdk.test.lib.Platform;
       
    32 
    31 
    33 public class SupportedCPU implements BooleanSupplier {
    32 public class SupportedCPU implements BooleanSupplier {
    34     @Override
    33     @Override
    35     public boolean getAsBoolean() {
    34     public boolean getAsBoolean() {
    36         if (Platform.isPPC()) { return CPUInfo.hasFeature("tcheck"); }
    35         if (Platform.isPPC()) { return CPUInfo.hasFeature("tcheck"); }