Update gas expectations.

This commit is contained in:
Jim Posen 2019-07-02 15:56:52 +02:00
parent 0cf7daa9e5
commit b3f8f62105
5 changed files with 14 additions and 18 deletions

View File

@ -4,11 +4,9 @@
(import "env" "gas" (func (;0;) (type 1))) (import "env" "gas" (func (;0;) (type 1)))
(func (;1;) (type 0) (result i32) (func (;1;) (type 0) (result i32)
(local i32 i32) (local i32 i32)
i32.const 3 i32.const 13
call 0 call 0
block ;; label = @1 block ;; label = @1
i32.const 17
call 0
i32.const 0 i32.const 0
set_local 0 set_local 0
i32.const 1 i32.const 1
@ -20,6 +18,8 @@
set_local 1 set_local 1
i32.const 1 i32.const 1
br_if 0 (;@1;) br_if 0 (;@1;)
i32.const 5
call 0
get_local 0 get_local 0
get_local 1 get_local 1
tee_local 0 tee_local 0

View File

@ -4,7 +4,7 @@
(import "env" "gas" (func (;0;) (type 1))) (import "env" "gas" (func (;0;) (type 1)))
(func (;1;) (type 0) (param i32 i32) (result i32) (func (;1;) (type 0) (param i32 i32) (result i32)
(local i32) (local i32)
i32.const 6 i32.const 5
call 0 call 0
get_local 0 get_local 0
get_local 1 get_local 1
@ -12,7 +12,7 @@
set_local 2 set_local 2
get_local 2) get_local 2)
(func (;2;) (type 0) (param i32 i32) (result i32) (func (;2;) (type 0) (param i32 i32) (result i32)
i32.const 4 i32.const 3
call 0 call 0
get_local 0 get_local 0
get_local 1 get_local 1

View File

@ -3,17 +3,17 @@
(type (;1;) (func (param i32))) (type (;1;) (func (param i32)))
(import "env" "gas" (func (;0;) (type 1))) (import "env" "gas" (func (;0;) (type 1)))
(func (;1;) (type 0) (param i32) (result i32) (func (;1;) (type 0) (param i32) (result i32)
i32.const 3 i32.const 2
call 0 call 0
i32.const 1 i32.const 1
if (result i32) ;; label = @1 if (result i32) ;; label = @1
i32.const 4 i32.const 3
call 0 call 0
get_local 0 get_local 0
i32.const 1 i32.const 1
i32.add i32.add
else else
i32.const 3 i32.const 2
call 0 call 0
get_local 0 get_local 0
i32.popcnt i32.popcnt

View File

@ -3,24 +3,22 @@
(type (;1;) (func (param i32))) (type (;1;) (func (param i32)))
(import "env" "gas" (func (;0;) (type 1))) (import "env" "gas" (func (;0;) (type 1)))
(func (;1;) (type 0) (func (;1;) (type 0)
i32.const 3 i32.const 2
call 0 call 0
i32.const 1 i32.const 1
if ;; label = @1 if ;; label = @1
i32.const 2 i32.const 1
call 0 call 0
loop ;; label = @2 loop ;; label = @2
i32.const 3 i32.const 2
call 0 call 0
i32.const 123 i32.const 123
drop drop
end end
end) end)
(func (;2;) (type 0) (func (;2;) (type 0)
i32.const 2 i32.const 1
call 0 call 0
block ;; label = @1 block ;; label = @1
i32.const 1
call 0
end) end)
(export "simple" (func 1))) (export "simple" (func 1)))

View File

@ -6,15 +6,13 @@
(import "env" "memory" (memory (;0;) 1 1)) (import "env" "memory" (memory (;0;) 1 1))
(import "env" "gas" (func (;1;) (type 2))) (import "env" "gas" (func (;1;) (type 2)))
(func (;2;) (type 1) (func (;2;) (type 1)
i32.const 5 i32.const 4
call 1 call 1
i32.const 8 i32.const 8
i32.const 4 i32.const 4
call 0 call 0
unreachable) unreachable)
(func (;3;) (type 1) (func (;3;) (type 1))
i32.const 1
call 1)
(export "call" (func 3)) (export "call" (func 3))
(start 2) (start 2)
(data (i32.const 8) "\01\02\03\04")) (data (i32.const 8) "\01\02\03\04"))