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

@ -262,7 +262,10 @@
)
(tee_local $1
(i32.mul
(get_local $1)
(i32.and
(get_local $1)
(i32.const 255)
)
(i32.const 16843009)
)
)
@ -2100,27 +2103,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