mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 01:41:30 +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:
@ -116,7 +116,7 @@
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.add
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 1023)
|
||||
@ -877,7 +877,7 @@
|
||||
(i64.const 4294967295)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $5)
|
||||
)
|
||||
(i64.const 32)
|
||||
@ -912,7 +912,7 @@
|
||||
(tee_local $3
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.add
|
||||
(i32.add
|
||||
(i32.or
|
||||
@ -1321,7 +1321,7 @@
|
||||
(set_local $3
|
||||
(f64.reinterpret/i64
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.and
|
||||
(get_local $7)
|
||||
(i32.xor
|
||||
@ -1523,7 +1523,7 @@
|
||||
(i64.const 4294967295)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $8)
|
||||
)
|
||||
(i64.const 32)
|
||||
@ -3366,7 +3366,7 @@
|
||||
)
|
||||
(i64.shl
|
||||
(get_local $2)
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $3)
|
||||
@ -3422,7 +3422,7 @@
|
||||
)
|
||||
(i64.shl
|
||||
(get_local $5)
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $6)
|
||||
@ -3543,7 +3543,7 @@
|
||||
(i64.const 4503599627370496)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $3)
|
||||
)
|
||||
(i64.const 52)
|
||||
@ -3551,7 +3551,7 @@
|
||||
)
|
||||
(i64.shr_u
|
||||
(get_local $2)
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $3)
|
||||
@ -3561,7 +3561,7 @@
|
||||
)
|
||||
)
|
||||
(i64.shl
|
||||
(i64.extend_u/i32
|
||||
(i64.extend_s/i32
|
||||
(get_local $8)
|
||||
)
|
||||
(i64.const 63)
|
||||
|
Reference in New Issue
Block a user