diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-11-01 21:31:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 21:31:41 -0700 |
commit | 0ff4359de75b4dd2a786dfa50cb17b3ec01a701a (patch) | |
tree | 78210cf7cae6e79e7d0fb94cc685b34b6f90f9b2 /test | |
parent | 1bcbf5fd9b6cbedf302309eaae719115b2d83d4a (diff) | |
download | binaryen-0ff4359de75b4dd2a786dfa50cb17b3ec01a701a.tar.gz binaryen-0ff4359de75b4dd2a786dfa50cb17b3ec01a701a.tar.bz2 binaryen-0ff4359de75b4dd2a786dfa50cb17b3ec01a701a.zip |
fix large f32 consts, fixes #817 (#820)
Diffstat (limited to 'test')
-rw-r--r-- | test/unit.asm.js | 4 | ||||
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 5 | ||||
-rw-r--r-- | test/unit.fromasm.no-opts | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index 6ccf6c489..f002965ec 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -589,6 +589,10 @@ function asm(global, env, buffer) { return; } + function big_fround() { + return Math_fround(4294967295); + } + function dropIgnoredImportsInIf($0,$1,$2) { $0 = $0|0; $1 = $1|0; diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index f372b2d57..608d68dcb 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -1677,6 +1677,11 @@ ) (return) ) + (func $big_fround (result f32) + (return + (f32.const 4294967296) + ) + ) (func $dropIgnoredImportsInIf (param $$0 i32) (param $$1 i32) (param $$2 i32) (block $do-once (if diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts index 0b90cb3b8..0b8a67ca7 100644 --- a/test/unit.fromasm.no-opts +++ b/test/unit.fromasm.no-opts @@ -1683,6 +1683,11 @@ ) (return) ) + (func $big_fround (result f32) + (return + (f32.const 4294967296) + ) + ) (func $dropIgnoredImportsInIf (param $$0 i32) (param $$1 i32) (param $$2 i32) (block $do-once (if |