Update internal ABI to zero/sign-extend where necessary only (#87)

This commit is contained in:
Daniel Wirtz
2018-05-06 00:00:54 +02:00
committed by GitHub
parent ce2bf00d62
commit 50f6c1c460
72 changed files with 8846 additions and 9459 deletions

View File

@ -317,7 +317,10 @@
(i32.const -1)
(i32.const 255)
)
(get_local $1)
(i32.and
(get_local $1)
(i32.const 255)
)
)
)
(i32.store
@ -2384,27 +2387,24 @@
(return)
)
(if
(i32.and
(if (result i32)
(tee_local $3
(i32.le_u
(i32.add
(get_local $1)
(get_local $2)
)
(get_local $0)
)
)
(get_local $3)
(if (result i32)
(tee_local $3
(i32.le_u
(i32.add
(get_local $0)
(get_local $1)
(get_local $2)
)
(get_local $1)
(get_local $0)
)
)
(i32.const 1)
(get_local $3)
(i32.le_u
(i32.add
(get_local $0)
(get_local $2)
)
(get_local $1)
)
)
(block
(call $~lib/memory/copy_memory