mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-29 22:51:46 +00:00
Update internal ABI to zero/sign-extend where necessary only (#87)
This commit is contained in:
@ -16,32 +16,29 @@
|
||||
(local $7 f64)
|
||||
(local $8 f64)
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $5
|
||||
(i32.lt_u
|
||||
(tee_local $1
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(tee_local $3
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(if (result i32)
|
||||
(tee_local $5
|
||||
(i32.lt_u
|
||||
(tee_local $1
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(tee_local $3
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 32)
|
||||
)
|
||||
(i64.const 32)
|
||||
)
|
||||
)
|
||||
(i32.const 1048576)
|
||||
)
|
||||
)
|
||||
(get_local $5)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 31)
|
||||
(i32.const 1048576)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
(get_local $5)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 31)
|
||||
)
|
||||
)
|
||||
(block
|
||||
(if
|
||||
@ -108,24 +105,21 @@
|
||||
(get_local $0)
|
||||
)
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $5
|
||||
(i32.eq
|
||||
(get_local $1)
|
||||
(i32.const 1072693248)
|
||||
)
|
||||
(if (result i32)
|
||||
(tee_local $5
|
||||
(i32.eq
|
||||
(get_local $1)
|
||||
(i32.const 1072693248)
|
||||
)
|
||||
(i64.eq
|
||||
(i64.shl
|
||||
(get_local $3)
|
||||
(i64.const 32)
|
||||
)
|
||||
(i64.const 0)
|
||||
)
|
||||
(get_local $5)
|
||||
)
|
||||
(i32.const 1)
|
||||
(i64.eq
|
||||
(i64.shl
|
||||
(get_local $3)
|
||||
(i64.const 32)
|
||||
)
|
||||
(i64.const 0)
|
||||
)
|
||||
(get_local $5)
|
||||
)
|
||||
(return
|
||||
(f64.const 0)
|
||||
|
Reference in New Issue
Block a user