diff options
author | litvin <litvindev@gmail.com> | 2015-01-12 10:18:17 +0300 |
---|---|---|
committer | jao <jao@gnu.org> | 2015-03-03 19:24:16 +0100 |
commit | 09b22f2e082350f398dcd142b6af70a30f105ce1 (patch) | |
tree | 7a6237a66ba550a3a96da5a371de11af036d2a9b /mixlib/testsuite | |
parent | b83ce265d72783b8cc60e4020ec87908470cb8b6 (diff) | |
download | mdk-09b22f2e082350f398dcd142b6af70a30f105ce1.tar.gz mdk-09b22f2e082350f398dcd142b6af70a30f105ce1.tar.bz2 |
Add missed instructions: SLB,SRB,JAE,JAO,JXE,JXO (from volume 2, section 4.5.2)
Diffstat (limited to 'mixlib/testsuite')
-rw-r--r-- | mixlib/testsuite/mix_vm_ins_t.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mixlib/testsuite/mix_vm_ins_t.c b/mixlib/testsuite/mix_vm_ins_t.c index 458cbba..1d368a7 100644 --- a/mixlib/testsuite/mix_vm_ins_t.c +++ b/mixlib/testsuite/mix_vm_ins_t.c @@ -245,6 +245,23 @@ test_shift_(mix_vm_t *vm, mix_dump_context_t *dc) test.rA_a = mix_word_new_b(0,6,7,8,3); test.rX_a = mix_word_new_bn(4,0,0,5,0); run_test_(&test, vm, dc); + + mix_ins_fill_from_id(ins, mix_SLB); + ins.index = 0; + ins.address = 3; + fill_test_desc_(&test, vm, &ins); + test.rA_b = mix_word_new(06543217654); + test.rX_b = mix_word_new(03217654321); + test.rA_a = mix_word_new(05432176543); + test.rX_a = mix_word_new(02176543210); + run_test_(&test, vm, dc); + + mix_ins_fill_from_id(ins, mix_SRB); + ins.address = 6; + fill_test_desc_(&test, vm, &ins); + test.rA_a = mix_word_new(00054321765); + test.rX_a = mix_word_new(04321765432); + run_test_(&test, vm, dc); } static void |