Search in sources :

Example 1 with HotSpotBackend

use of org.graalvm.compiler.hotspot.HotSpotBackend in project graal by oracle.

the class StubAVXTest method checkAMD64.

@Before
public void checkAMD64() {
    Assume.assumeTrue("skipping AMD64 specific test", getTarget().arch instanceof AMD64);
    Assume.assumeTrue("skipping AVX test", ((AMD64) getTarget().arch).getFeatures().contains(CPUFeature.AVX));
    if (getBackend() instanceof HotSpotBackend) {
        HotSpotBackend backend = (HotSpotBackend) getBackend();
        Assume.assumeTrue("skipping because of MaxVectorSize", backend.getRuntime().getVMConfig().maxVectorSize >= 32);
    }
}
Also used : AMD64(jdk.vm.ci.amd64.AMD64) HotSpotBackend(org.graalvm.compiler.hotspot.HotSpotBackend) Before(org.junit.Before)

Aggregations

AMD64 (jdk.vm.ci.amd64.AMD64)1 HotSpotBackend (org.graalvm.compiler.hotspot.HotSpotBackend)1 Before (org.junit.Before)1