summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit.asm.js2
-rw-r--r--test/unit.wast5
2 files changed, 4 insertions, 3 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index fd05746d6..c8d52f3e0 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -2,7 +2,7 @@ function () {
"use asm";
function big_negative() {
var temp = 0.0;
- temp = -2147483648;
+ temp = +-2147483648;
temp = -2147483648.0;
temp = -21474836480.0;
}
diff --git a/test/unit.wast b/test/unit.wast
index b5e054593..914cbf8bd 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -5,7 +5,9 @@
(local $temp f64)
(block
(set_local $temp
- (i32.const -2147483648)
+ (f64.convert_s/i32
+ (i32.const -2147483648)
+ )
)
(set_local $temp
(f64.const -2147483648)
@@ -16,4 +18,3 @@
)
)
)
-