equal
deleted
inserted
replaced
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"); } |