Add tests for jmpi, if, iff, and while, revealing issues.

This commit is contained in:
Eric Anholt 2006-08-31 15:27:30 -07:00 committed by Damien Lespiau
parent cc865f1bc0
commit 8828725dc9
10 changed files with 26 additions and 2 deletions

View File

@ -8,3 +8,7 @@ rndu
rndz
lzd
not
jmpi
if
iff
while

View File

@ -9,7 +9,11 @@ TESTS = \
rnde-intsrc \
rndz \
lzd \
not
not \
jmpi \
if \
iff \
while
# Tests that are expected to fail because they contain some inccorect code.
XFAIL_TESTS = \
@ -33,7 +37,15 @@ TESTDATA = \
lzd.expected \
lzd.g4a \
not.expected \
not.g4a
not.g4a \
jmpi.expected \
jmpi.g4a \
if.expected \
if.g4a \
iff.expected \
iff.g4a \
while.expected \
while.g4a
EXTRA_DIST = \
${TESTDATA} \

View File

@ -0,0 +1 @@
{ 0x00000022, 0x34001c00, 0x00011400, 0x00000002 },

1
assembler/test/if.g4a Normal file
View File

@ -0,0 +1 @@
if 2;

View File

@ -0,0 +1 @@
{ 0x00000023, 0x34001c00, 0x00011400, 0x00000002 },

1
assembler/test/iff.g4a Normal file
View File

@ -0,0 +1 @@
iff 2;

View File

@ -0,0 +1 @@
{ 0x00000020, 0x34001c00, 0x00011400, 0x00000002 },

1
assembler/test/jmpi.g4a Normal file
View File

@ -0,0 +1 @@
jmpi 2;

View File

@ -0,0 +1 @@
{ 0x00000027, 0x34001c00, 0x00011400, 0x0000007e },

1
assembler/test/while.g4a Normal file
View File

@ -0,0 +1 @@
while -2;