21 * questions. 22 */ 23 24 package com.oracle.graal.compiler.hsail.test.lambda; 25 26 import org.junit.*; 27 28 /** 29 * Tests call to {@link Math#tan(double)}. 30 */ 31 public class DoubleTanTest extends DoubleMathBase { 32 33 @Override 34 public void runTest() { 35 setupArrays(); 36 dispatchLambdaKernel(size, (gid) -> { 37 outArray[gid] = Math.tan(inArray[gid]); 38 }); 39 } 40 41 @Test 42 public void testUsingLambdaMethod() { 43 testGeneratedHsailUsingLambdaMethod(); 44 } 45 } | 21 * questions. 22 */ 23 24 package com.oracle.graal.compiler.hsail.test.lambda; 25 26 import org.junit.*; 27 28 /** 29 * Tests call to {@link Math#tan(double)}. 30 */ 31 public class DoubleTanTest extends DoubleMathBase { 32 33 @Override 34 public void runTest() { 35 setupArrays(); 36 dispatchLambdaKernel(size, (gid) -> { 37 outArray[gid] = Math.tan(inArray[gid]); 38 }); 39 } 40 41 // internally allocates a Rempiostruct, escape analysis not catching it 42 @Override 43 protected boolean supportsRequiredCapabilities() { 44 return (canHandleObjectAllocation()); 45 } 46 47 @Test 48 public void testUsingLambdaMethod() { 49 testGeneratedHsailUsingLambdaMethod(); 50 } 51 } |