mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 01:11:32 +00:00
Switch signed/unsigned instructions when upcasting 32- to 64-bit integers, fixes #247
Matches C semantics now. Turns around some instructions in tests, especially libm, but doesn't break anything.
This commit is contained in:
@ -2683,7 +2683,7 @@
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.add
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $2)
|
||||
)
|
||||
(i64.const 1023)
|
||||
@ -2750,7 +2750,7 @@
|
||||
(i64.shl
|
||||
(i64.sub
|
||||
(i64.const 1023)
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
@ -2900,7 +2900,7 @@
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.add
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 1023)
|
||||
@ -4954,7 +4954,7 @@
|
||||
(i64.const 4294967295)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $5)
|
||||
)
|
||||
(i64.const 32)
|
||||
@ -4989,7 +4989,7 @@
|
||||
(tee_local $3
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.add
|
||||
(i32.add
|
||||
(i32.or
|
||||
@ -5398,7 +5398,7 @@
|
||||
(set_local $3
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.and
|
||||
(get_local $7)
|
||||
(i32.xor
|
||||
@ -5600,7 +5600,7 @@
|
||||
(i64.const 4294967295)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $8)
|
||||
)
|
||||
(i64.const 32)
|
||||
|
Reference in New Issue
Block a user