Mercurial > hg > graal-compiler
changeset 7928:47a7e8d80536
Added new basic array PTX test.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 11:03:33 +0100 |
parents | 3362be58312a |
children | 9ac11c77d128 |
files | graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java |
diffstat | 1 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java Tue Mar 05 11:02:01 2013 +0100 +++ b/graal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test/BasicPTXTest.java Tue Mar 05 11:03:33 2013 +0100 @@ -42,13 +42,21 @@ public class BasicPTXTest extends GraalCompilerTest { @Test - public void test1() { - test("test1Snippet"); + public void testAdd() { + test("testAddSnippet"); + } + + public static int testAddSnippet(int a) { + return a + 1; } - @SuppressWarnings("all") - public static int test1Snippet(int a) { - return a + 1; + @Test + public void testArray() { + test("testArraySnippet"); + } + + public static int testArraySnippet(int[] array) { + return array[0]; } private void test(String snippet) {