Commit b7135579 authored by qinsoon's avatar qinsoon

fix a few wrong tests (they are not valid tests)

parent 21f48ca6
Pipeline #724 passed with stages
in 28 minutes and 58 seconds
......@@ -95,10 +95,9 @@ fn ccall_exit() -> VM {
consta! ((vm, ccall_exit_v1) int32_10_local = int32_10);
let blk_entry_ccall = gen_ccall_exit(int32_10_local.clone(), &mut ccall_exit_v1, &vm);
// RET %const_int32_0
consta! ((vm, ccall_exit_v1) int32_0_local = int32_0);
// RET
inst! ((vm, ccall_exit_v1) blk_entry_ret:
RET (int32_0_local)
RET
);
define_block!((vm, ccall_exit_v1) blk_entry() {
......
......@@ -93,7 +93,7 @@ fn truncate_then_call() -> VM {
);
inst!((vm, truncate_then_call_v1) blk_entry_ret:
RET (arg)
RET (res)
);
define_block!((vm, truncate_then_call_v1) blk_entry(arg) {
......
......@@ -421,7 +421,7 @@ fn create_catch_exception_and_add(vm: &VM) {
let blk_exception_exit = gen_ccall_exit(res4.clone(), &mut catch_and_add_v1, &vm);
inst! ((vm, catch_and_add_v1) blk_exception_ret:
RET (res4)
RET
);
define_block! ((vm, catch_and_add_v1) blk_exception(ev0, ev1, ev2, ev3, ev4) [exc_arg] {
......@@ -579,7 +579,7 @@ fn create_catch_twice(vm: &VM) {
let blk_exception2_exit = gen_ccall_exit(res.clone(), &mut catch_twice_v1, &vm);
inst! ((vm, catch_twice_v1) blk_exception2_ret:
RET (res)
RET
);
define_block! ((vm, catch_twice_v1) blk_exception2(blk_exception2_exc_arg1) [exc_arg2] {
......
......@@ -453,7 +453,7 @@ pub fn struct_insts_macro() -> VM {
let blk_check_ccall = gen_ccall_exit(blk_check_res.clone(), &mut struct_insts_v1, &vm);
inst! ((vm, struct_insts_v1) blk_check_ret:
RET (blk_check_res)
RET
);
define_block! ((vm, struct_insts_v1) blk_check(blk_check_a) {
......@@ -723,10 +723,9 @@ pub fn hybrid_fix_part_insts() -> VM {
// CCALL exit(%res)
let blk_check_ccall = gen_ccall_exit(blk_check_res.clone(), &mut hybrid_fix_part_insts_v1, &vm);
// RET <@int64> 0
consta! ((vm, hybrid_fix_part_insts_v1) int64_0_local = int64_0);
// RET
inst! ((vm, hybrid_fix_part_insts_v1) blk_check_ret:
RET (int64_0_local)
RET
);
define_block! ((vm, hybrid_fix_part_insts_v1) blk_check(blk_check_a) {
......@@ -967,9 +966,9 @@ pub fn hybrid_var_part_insts() -> VM {
let blk_exit_exit = gen_ccall_exit(blk_exit_sum.clone(), &mut hybrid_var_part_insts_v1, &vm);
// RET @int64_0
// RET
inst! ((vm, hybrid_var_part_insts_v1) blk_exit_ret:
RET (int64_0_local)
RET
);
define_block! ((vm, hybrid_var_part_insts_v1) blk_exit(blk_exit_sum) {
......
......@@ -843,7 +843,7 @@ fn coalesce_branch2_moves() -> VM {
typedef! ((vm) int64 = mu_int(64));
typedef! ((vm) int1 = mu_int(1));
funcsig! ((vm) sig = (int64, int64, int64, int64, int64, int64) -> ());
funcsig! ((vm) sig = (int64, int64, int64, int64, int64, int64) -> (int64));
funcdecl!((vm) <sig> coalesce_branch2_moves);
funcdef! ((vm) <sig> coalesce_branch2_moves VERSION coalesce_branch2_moves_v1);
......
......@@ -260,7 +260,7 @@ pub fn global_access(vm: &VM) {
);
inst! ((vm, global_access_v1) blk_0_ret:
RET (blk_0_x)
RET
);
define_block!((vm, global_access_v1) blk_0() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment