mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 22:22:13 +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:
@@ -224,7 +224,7 @@
|
||||
(i64.const -1)
|
||||
)
|
||||
(set_global $unary/I
|
||||
(i64.extend_s/i32
|
||||
(i64.extend_u/i32
|
||||
(i64.eqz
|
||||
(i64.const 1)
|
||||
)
|
||||
@@ -246,7 +246,7 @@
|
||||
)
|
||||
)
|
||||
(set_global $unary/I
|
||||
(i64.extend_s/i32
|
||||
(i64.extend_u/i32
|
||||
(i64.eqz
|
||||
(get_global $unary/I)
|
||||
)
|
||||
@@ -467,7 +467,7 @@
|
||||
(f64.const -1.25)
|
||||
)
|
||||
(set_global $unary/I
|
||||
(i64.extend_s/i32
|
||||
(i64.extend_u/i32
|
||||
(f64.eq
|
||||
(f64.const 1.25)
|
||||
(f64.const 0)
|
||||
@@ -483,7 +483,7 @@
|
||||
)
|
||||
)
|
||||
(set_global $unary/I
|
||||
(i64.extend_s/i32
|
||||
(i64.extend_u/i32
|
||||
(f64.eq
|
||||
(get_global $unary/F)
|
||||
(f64.const 0)
|
||||
|
Reference in New Issue
Block a user