diff --git a/tests/expectations/gas/branch.wat b/tests/expectations/gas/branch.wat index 56c5ecf..4adafa9 100644 --- a/tests/expectations/gas/branch.wat +++ b/tests/expectations/gas/branch.wat @@ -4,11 +4,9 @@ (import "env" "gas" (func (;0;) (type 1))) (func (;1;) (type 0) (result i32) (local i32 i32) - i32.const 3 + i32.const 13 call 0 block ;; label = @1 - i32.const 17 - call 0 i32.const 0 set_local 0 i32.const 1 @@ -20,6 +18,8 @@ set_local 1 i32.const 1 br_if 0 (;@1;) + i32.const 5 + call 0 get_local 0 get_local 1 tee_local 0 diff --git a/tests/expectations/gas/call.wat b/tests/expectations/gas/call.wat index 878022a..fb32a0b 100644 --- a/tests/expectations/gas/call.wat +++ b/tests/expectations/gas/call.wat @@ -4,7 +4,7 @@ (import "env" "gas" (func (;0;) (type 1))) (func (;1;) (type 0) (param i32 i32) (result i32) (local i32) - i32.const 6 + i32.const 5 call 0 get_local 0 get_local 1 @@ -12,7 +12,7 @@ set_local 2 get_local 2) (func (;2;) (type 0) (param i32 i32) (result i32) - i32.const 4 + i32.const 3 call 0 get_local 0 get_local 1 diff --git a/tests/expectations/gas/ifs.wat b/tests/expectations/gas/ifs.wat index 89c72e7..7575504 100644 --- a/tests/expectations/gas/ifs.wat +++ b/tests/expectations/gas/ifs.wat @@ -3,17 +3,17 @@ (type (;1;) (func (param i32))) (import "env" "gas" (func (;0;) (type 1))) (func (;1;) (type 0) (param i32) (result i32) - i32.const 3 + i32.const 2 call 0 i32.const 1 if (result i32) ;; label = @1 - i32.const 4 + i32.const 3 call 0 get_local 0 i32.const 1 i32.add else - i32.const 3 + i32.const 2 call 0 get_local 0 i32.popcnt diff --git a/tests/expectations/gas/simple.wat b/tests/expectations/gas/simple.wat index d23ec7c..b967d21 100644 --- a/tests/expectations/gas/simple.wat +++ b/tests/expectations/gas/simple.wat @@ -3,24 +3,22 @@ (type (;1;) (func (param i32))) (import "env" "gas" (func (;0;) (type 1))) (func (;1;) (type 0) - i32.const 3 + i32.const 2 call 0 i32.const 1 if ;; label = @1 - i32.const 2 + i32.const 1 call 0 loop ;; label = @2 - i32.const 3 + i32.const 2 call 0 i32.const 123 drop end end) (func (;2;) (type 0) - i32.const 2 + i32.const 1 call 0 block ;; label = @1 - i32.const 1 - call 0 end) (export "simple" (func 1))) diff --git a/tests/expectations/gas/start.wat b/tests/expectations/gas/start.wat index 89f43b5..18a447d 100644 --- a/tests/expectations/gas/start.wat +++ b/tests/expectations/gas/start.wat @@ -6,15 +6,13 @@ (import "env" "memory" (memory (;0;) 1 1)) (import "env" "gas" (func (;1;) (type 2))) (func (;2;) (type 1) - i32.const 5 + i32.const 4 call 1 i32.const 8 i32.const 4 call 0 unreachable) - (func (;3;) (type 1) - i32.const 1 - call 1) + (func (;3;) (type 1)) (export "call" (func 3)) (start 2) (data (i32.const 8) "\01\02\03\04"))