summaryrefslogtreecommitdiff
path: root/assembler/test
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-09-01 11:55:22 -0700
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:24 +0000
commit055be60abf1dc4d3b9a77a75fe83b8256caaa52b (patch)
tree4cc7569aa3d97714dde4d9f1ed68e224b9f29273 /assembler/test
parentd1b879192816aeccd6e49d872856f0e6e98bb1e7 (diff)
Add a test for wait instruction (not yet implemented).
Diffstat (limited to 'assembler/test')
-rw-r--r--assembler/test/.gitignore1
-rw-r--r--assembler/test/Makefile.am3
-rw-r--r--assembler/test/wait.expected1
-rw-r--r--assembler/test/wait.g4a1
4 files changed, 6 insertions, 0 deletions
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;