22 */ 23 24 package com.oracle.graal.compiler.hsail.test.lambda; 25 26 import org.junit.*; 27 28 /** 29 * Tests call to {@link Math#nextAfter(float, double)}. 30 */ 31 public class FloatNextAfterTest extends FloatMathLargeBase { 32 33 @Override 34 public void runTest() { 35 setupArrays(); 36 dispatchLambdaKernel(size, (gid) -> { 37 float direction = (gid & 1) == 0 ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY; 38 outArray[gid] = Math.nextAfter(inArray[gid], direction); 39 }); 40 } 41 42 @Test 43 public void testUsingLambdaMethod() { 44 testGeneratedHsailUsingLambdaMethod(); 45 } 46 } | 22 */ 23 24 package com.oracle.graal.compiler.hsail.test.lambda; 25 26 import org.junit.*; 27 28 /** 29 * Tests call to {@link Math#nextAfter(float, double)}. 30 */ 31 public class FloatNextAfterTest extends FloatMathLargeBase { 32 33 @Override 34 public void runTest() { 35 setupArrays(); 36 dispatchLambdaKernel(size, (gid) -> { 37 float direction = (gid & 1) == 0 ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY; 38 outArray[gid] = Math.nextAfter(inArray[gid], direction); 39 }); 40 } 41 42 @Override 43 protected boolean supportsRequiredCapabilities() { 44 return (runningOnSimulator() || runningCQETests()); 45 } 46 47 @Test 48 public void testUsingLambdaMethod() { 49 testGeneratedHsailUsingLambdaMethod(); 50 } 51 } |