summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-28 17:00:00 -0700
committerGitHub <noreply@github.com>2016-09-28 17:00:00 -0700
commit345b04253dcf7d42dcefabdec4e4b0edc3a3ca44 (patch)
tree846f36b84b1e59e180dda600ff0b565db6caf74a /test
parent093894012d86673fd6bca304da08ccfba88deb44 (diff)
downloadbinaryen-345b04253dcf7d42dcefabdec4e4b0edc3a3ca44.tar.gz
binaryen-345b04253dcf7d42dcefabdec4e4b0edc3a3ca44.tar.bz2
binaryen-345b04253dcf7d42dcefabdec4e4b0edc3a3ca44.zip
fix signed int64 LEB bug with large negative values (#719)
Diffstat (limited to 'test')
-rw-r--r--test/unit.wast4
-rw-r--r--test/unit.wast.fromBinary4
-rw-r--r--test/unit.wast.fromBinary.noDebugInfo4
3 files changed, 12 insertions, 0 deletions
diff --git a/test/unit.wast b/test/unit.wast
index 2ba0f6612..90fab25f3 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -9,6 +9,7 @@
(type $5 (func (result i32)))
(type $6 (func (param i32) (result i32)))
(type $7 (func (param f64) (result f64)))
+ (type $8 (func (result i64)))
(import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi))
(import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
(import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
@@ -436,4 +437,7 @@
(get_local $0)
)
)
+ (func $big-i64 (type $8) (result i64)
+ (i64.const -9218868437227405313)
+ )
)
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary
index 8516d1775..4ff9f0d73 100644
--- a/test/unit.wast.fromBinary
+++ b/test/unit.wast.fromBinary
@@ -9,6 +9,7 @@
(type $5 (func (result i32)))
(type $6 (func (param i32) (result i32)))
(type $7 (func (param f64) (result f64)))
+ (type $8 (func (result i64)))
(import "env" "_emscripten_asm_const_vi" (func $import$0))
(import "asm2wasm" "f64-to-int" (func $import$1 (param f64) (result i32)))
(import "asm2wasm" "f64-rem" (func $import$2 (param f64 f64) (result f64)))
@@ -446,5 +447,8 @@
(get_local $var$0)
)
)
+ (func $big-i64 (type $8) (result i64)
+ (i64.const -9218868437227405313)
+ )
)
diff --git a/test/unit.wast.fromBinary.noDebugInfo b/test/unit.wast.fromBinary.noDebugInfo
index d6980b9be..04448e90b 100644
--- a/test/unit.wast.fromBinary.noDebugInfo
+++ b/test/unit.wast.fromBinary.noDebugInfo
@@ -9,6 +9,7 @@
(type $5 (func (result i32)))
(type $6 (func (param i32) (result i32)))
(type $7 (func (param f64) (result f64)))
+ (type $8 (func (result i64)))
(import "env" "_emscripten_asm_const_vi" (func $import$0))
(import "asm2wasm" "f64-to-int" (func $import$1 (param f64) (result i32)))
(import "asm2wasm" "f64-rem" (func $import$2 (param f64 f64) (result f64)))
@@ -446,5 +447,8 @@
(get_local $var$0)
)
)
+ (func $21 (type $8) (result i64)
+ (i64.const -9218868437227405313)
+ )
)