Skip to content

Commit

Permalink
mem-length.data: Add test to check mem_len works as expected
Browse files Browse the repository at this point in the history
Add a simple test to ensure the mem_len variable is being passed into
the VM and/or JIT as expected. Note that due to how the register
offset testing works we need to disable it for this new test.
  • Loading branch information
sbates130272 committed May 3, 2021
1 parent 71a41b6 commit 5b22e3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/mem-len.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- asm
mov r0, r2
exit
-- mem
00 00 00 01
00 00 00 02
-- no register offset
-- result
0x8

0 comments on commit 5b22e3a

Please sign in to comment.