summaryrefslogtreecommitdiff
path: root/twasm/asm/tests.asm
diff options
context:
space:
mode:
Diffstat (limited to 'twasm/asm/tests.asm')
-rw-r--r--twasm/asm/tests.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/twasm/asm/tests.asm b/twasm/asm/tests.asm
index d5341f0..f48d8bf 100644
--- a/twasm/asm/tests.asm
+++ b/twasm/asm/tests.asm
@@ -403,6 +403,11 @@ test_get_tte_type:
cmp al, 0x02 ; register
jne .fail
+ mov di, 0x0056 ; mov
+ call get_tte_type
+ cmp al, 0x01 ; operator
+ jne .fail
+
mov di, 0xFFFF ; unrecognised token
call get_tte_type
cmp al, UNRECOGNISED_ID_TYPE
@@ -439,6 +444,11 @@ test_get_tte_typed_metadata:
cmp al, 0x03 ; width: 64 bits
jne .fail
+ mov di, 0x0056 ; mov
+ call get_tte_typed_metadata
+ cmp al, 0x02 ; # operands
+ jne .fail
+
mov di, 0xFFFF ; unrecognised token
call get_tte_typed_metadata
cmp al, UNRECOGNISED_ID_METADATA