Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Jun 7, 2021
1 parent c0440c5 commit af59712
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/wast/wasmer/nan-canonicalization-bug1.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
;; https://github.com/wasmerio/wasmer/issues/2347
(module
(type (;0;) (func (param f64) (result i32)))
(func (;0;) (type 0) (param f64) (result i32)
unreachable)
(func (;1;) (type 0) (param f64) (result i32)
i32.const -16579585
f64.convert_i32_s
f64.ceil
f64.ceil
local.get 0
f64.copysign
unreachable))

10 changes: 10 additions & 0 deletions tests/wast/wasmer/nan-canonicalization-bug2.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;; https://github.com/wasmerio/wasmer/issues/2159
(module
(func (export "_start") (result f64)
f64.const 0x0p+0 (;=0;)
f64.const 0x0p+0 (;=0;)
f64.const 0x0p+0 (;=0;)
f64.div
f64.copysign
)
)

0 comments on commit af59712

Please sign in to comment.