From 055be60abf1dc4d3b9a77a75fe83b8256caaa52b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 1 Sep 2006 11:55:22 -0700 Subject: Add a test for wait instruction (not yet implemented). --- assembler/test/.gitignore | 1 + assembler/test/Makefile.am | 3 +++ assembler/test/wait.expected | 1 + assembler/test/wait.g4a | 1 + 4 files changed, 6 insertions(+) create mode 100644 assembler/test/wait.expected create mode 100644 assembler/test/wait.g4a (limited to 'assembler/test') diff --git a/assembler/test/.gitignore b/assembler/test/.gitignore index fbbf94ba..cc9661c9 100644 --- a/assembler/test/.gitignore +++ b/assembler/test/.gitignore @@ -12,4 +12,5 @@ jmpi if iff while +wait immediate diff --git a/assembler/test/Makefile.am b/assembler/test/Makefile.am index dec7e938..fb7d94fa 100644 --- a/assembler/test/Makefile.am +++ b/assembler/test/Makefile.am @@ -14,6 +14,7 @@ TESTS = \ if \ iff \ while \ + wait \ immediate # Tests that are expected to fail because they contain some inccorect code. @@ -47,6 +48,8 @@ TESTDATA = \ iff.g4a \ while.expected \ while.g4a \ + wait.expected \ + wait.g4a \ immediate.g4a \ immediate.expected diff --git a/assembler/test/wait.expected b/assembler/test/wait.expected new file mode 100644 index 00000000..06a055b9 --- /dev/null +++ b/assembler/test/wait.expected @@ -0,0 +1 @@ + { 0x00000030, 0x20000000, 0x00001200, 0x00010000 }, diff --git a/assembler/test/wait.g4a b/assembler/test/wait.g4a new file mode 100644 index 00000000..59d11fa9 --- /dev/null +++ b/assembler/test/wait.g4a @@ -0,0 +1 @@ +wait n0; -- cgit v1.2.3