changeset 55509 | d58442b8abc1 |
parent 54914 | 9feb4852536f |
child 58299 | 6df94ce3ab2f |
55508:a6e2d06391d6 | 55509:d58442b8abc1 |
---|---|
28 |
28 |
29 import java.util.ArrayList; |
29 import java.util.ArrayList; |
30 import java.util.Collection; |
30 import java.util.Collection; |
31 import java.util.List; |
31 import java.util.List; |
32 |
32 |
33 import org.graalvm.compiler.api.test.Graal; |
|
33 import org.graalvm.compiler.core.test.GraalCompilerTest; |
34 import org.graalvm.compiler.core.test.GraalCompilerTest; |
35 import org.graalvm.compiler.hotspot.HotSpotGraalRuntimeProvider; |
|
36 import org.graalvm.compiler.runtime.RuntimeProvider; |
|
34 import org.graalvm.compiler.test.AddExports; |
37 import org.graalvm.compiler.test.AddExports; |
35 import org.junit.Before; |
38 import org.junit.Before; |
36 import org.junit.Test; |
39 import org.junit.Test; |
37 import org.junit.runner.RunWith; |
40 import org.junit.runner.RunWith; |
38 import org.junit.runners.Parameterized; |
41 import org.junit.runners.Parameterized; |
46 public final class MathDoubleFMATest extends GraalCompilerTest { |
49 public final class MathDoubleFMATest extends GraalCompilerTest { |
47 |
50 |
48 @Before |
51 @Before |
49 public void checkAMD64() { |
52 public void checkAMD64() { |
50 assumeTrue("skipping AMD64 specific test", getTarget().arch instanceof AMD64); |
53 assumeTrue("skipping AMD64 specific test", getTarget().arch instanceof AMD64); |
54 HotSpotGraalRuntimeProvider rt = (HotSpotGraalRuntimeProvider) Graal.getRequiredCapability(RuntimeProvider.class); |
|
55 assumeTrue("skipping FMA specific test", rt.getVMConfig().useFMAIntrinsics); |
|
51 } |
56 } |
52 |
57 |
53 @Parameters(name = "{0}, {1}, {2}") |
58 @Parameters(name = "{0}, {1}, {2}") |
54 public static Collection<Object[]> data() { |
59 public static Collection<Object[]> data() { |
55 double[] inputs = {0.0d, 1.0d, 4.0d, -0.0d, -1.0d, -4.0d, Double.MIN_VALUE, Double.MAX_VALUE, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, |
60 double[] inputs = {0.0d, 1.0d, 4.0d, -0.0d, -1.0d, -4.0d, Double.MIN_VALUE, Double.MAX_VALUE, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, |