From 7c3ba4d49dc0f3e0629d3d2018591acebc0d954a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 1 Sep 2006 12:25:22 -0700 Subject: Add a test for ENDIF, revealing issues. --- assembler/test/.gitignore | 1 + assembler/test/Makefile.am | 3 +++ assembler/test/endif.expected | 1 + assembler/test/endif.g4a | 1 + 4 files changed, 6 insertions(+) create mode 100644 assembler/test/endif.expected create mode 100644 assembler/test/endif.g4a (limited to 'assembler/test') diff --git a/assembler/test/.gitignore b/assembler/test/.gitignore index fae3c04d..68a959c3 100644 --- a/assembler/test/.gitignore +++ b/assembler/test/.gitignore @@ -14,4 +14,5 @@ iff while else wait +endif immediate diff --git a/assembler/test/Makefile.am b/assembler/test/Makefile.am index b70ba602..3045e96d 100644 --- a/assembler/test/Makefile.am +++ b/assembler/test/Makefile.am @@ -16,6 +16,7 @@ TESTS = \ while \ else \ wait \ + endif \ immediate # Tests that are expected to fail because they contain some inccorect code. @@ -53,6 +54,8 @@ TESTDATA = \ else.g4a \ wait.expected \ wait.g4a \ + endif.expected \ + endif.g4a \ immediate.g4a \ immediate.expected diff --git a/assembler/test/endif.expected b/assembler/test/endif.expected new file mode 100644 index 00000000..b8a3003b --- /dev/null +++ b/assembler/test/endif.expected @@ -0,0 +1 @@ + { 0x00000025, 0x00001c00, 0x00000000, 0x00010000 }, diff --git a/assembler/test/endif.g4a b/assembler/test/endif.g4a new file mode 100644 index 00000000..b3b09fab --- /dev/null +++ b/assembler/test/endif.g4a @@ -0,0 +1 @@ +endif; -- cgit v1.2.3