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

@ -242,63 +242,54 @@
)
)
(if
(i32.and
(if (result i32)
(tee_local $9
(i32.and
(if (result i32)
(tee_local $9
(if (result i32)
(tee_local $9
(if (result i32)
(tee_local $9
(i32.and
(if (result i32)
(tee_local $9
(i32.gt_s
(get_local $7)
(i32.const 2146435072)
)
)
(get_local $9)
(if (result i32)
(tee_local $9
(i32.eq
(get_local $7)
(i32.const 2146435072)
)
)
(i32.ne
(get_local $4)
(i32.const 0)
)
(get_local $9)
)
)
(i32.const 1)
(i32.gt_s
(get_local $7)
(i32.const 2146435072)
)
)
(get_local $9)
(i32.gt_s
(get_local $8)
(i32.const 2146435072)
(if (result i32)
(tee_local $9
(i32.eq
(get_local $7)
(i32.const 2146435072)
)
)
(i32.ne
(get_local $4)
(i32.const 0)
)
(get_local $9)
)
)
(i32.const 1)
)
)
(get_local $9)
(if (result i32)
(tee_local $9
(i32.eq
(get_local $8)
(i32.const 2146435072)
)
)
(i32.ne
(get_local $6)
(i32.const 0)
)
(get_local $9)
(i32.gt_s
(get_local $8)
(i32.const 2146435072)
)
)
)
(i32.const 1)
(get_local $9)
(if (result i32)
(tee_local $9
(i32.eq
(get_local $8)
(i32.const 2146435072)
)
)
(i32.ne
(get_local $6)
(i32.const 0)
)
(get_local $9)
)
)
(return
(f64.add
@ -538,33 +529,27 @@
(i32.const 0)
)
(if
(i32.and
(if (result i32)
(tee_local $15
(i32.and
(if (result i32)
(tee_local $15
(i32.eq
(get_local $7)
(i32.const 2146435072)
)
)
(get_local $15)
(i32.eq
(get_local $7)
(i32.const 0)
)
(if (result i32)
(tee_local $15
(if (result i32)
(tee_local $15
(i32.eq
(get_local $7)
(i32.const 2146435072)
)
(i32.const 1)
)
(get_local $15)
(i32.eq
(get_local $7)
(i32.const 0)
)
)
(get_local $15)
(i32.eq
(get_local $7)
(i32.const 1072693248)
)
)
(i32.const 1)
(get_local $15)
(i32.eq
(get_local $7)
(i32.const 1072693248)
)
)
(block
(set_local $14
@ -1772,35 +1757,29 @@
)
)
(if
(i32.and
(if (result i32)
(tee_local $7
(i32.and
(if (result i32)
(tee_local $7
(i32.eq
(i32.shl
(get_local $3)
(i32.const 1)
)
(i32.const 0)
)
)
(get_local $7)
(call $isNaN<f32>
(get_local $1)
(if (result i32)
(tee_local $7
(if (result i32)
(tee_local $7
(i32.eq
(i32.shl
(get_local $3)
(i32.const 1)
)
(i32.const 0)
)
(i32.const 1)
)
(get_local $7)
(call $isNaN<f32>
(get_local $1)
)
)
(get_local $7)
(i32.eq
(get_local $4)
(i32.const 255)
)
)
(i32.const 1)
(get_local $7)
(i32.eq
(get_local $4)
(i32.const 255)
)
)
(return
(f32.div
@ -2349,21 +2328,18 @@
)
)
(if
(i32.and
(if (result i32)
(tee_local $6
(i32.gt_s
(get_local $4)
(i32.const 2139095040)
)
)
(get_local $6)
(if (result i32)
(tee_local $6
(i32.gt_s
(get_local $5)
(get_local $4)
(i32.const 2139095040)
)
)
(i32.const 1)
(get_local $6)
(i32.gt_s
(get_local $5)
(i32.const 2139095040)
)
)
(return
(f32.add
@ -2535,33 +2511,27 @@
)
(nop)
(if
(i32.and
(if (result i32)
(tee_local $6
(i32.and
(if (result i32)
(tee_local $6
(i32.eq
(get_local $4)
(i32.const 2139095040)
)
)
(get_local $6)
(i32.eq
(get_local $4)
(i32.const 0)
)
(if (result i32)
(tee_local $6
(if (result i32)
(tee_local $6
(i32.eq
(get_local $4)
(i32.const 2139095040)
)
(i32.const 1)
)
(get_local $6)
(i32.eq
(get_local $4)
(i32.const 0)
)
)
(get_local $6)
(i32.eq
(get_local $4)
(i32.const 1065353216)
)
)
(i32.const 1)
(get_local $6)
(i32.eq
(get_local $4)
(i32.const 1065353216)
)
)
(block
(set_local $11
@ -3668,35 +3638,29 @@
)
)
(if
(i32.and
(if (result i32)
(tee_local $7
(i32.and
(if (result i32)
(tee_local $7
(i64.eq
(i64.shl
(get_local $3)
(i64.const 1)
)
(i64.const 0)
)
)
(get_local $7)
(call $isNaN<f64>
(get_local $1)
(if (result i32)
(tee_local $7
(if (result i32)
(tee_local $7
(i64.eq
(i64.shl
(get_local $3)
(i64.const 1)
)
(i64.const 0)
)
(i32.const 1)
)
(get_local $7)
(call $isNaN<f64>
(get_local $1)
)
)
(get_local $7)
(i32.eq
(get_local $4)
(i32.const 2047)
)
)
(i32.const 1)
(get_local $7)
(i32.eq
(get_local $4)
(i32.const 2047)
)
)
(return
(f64.div