-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2391: Fix Singlepass issue #2347 r=Hywan a=chenyukang # Description Fix Singlepass compiler issue: #2347 I'm not sure whether the unit test case added to a suitable file. Any better suggestion? @syrusakbary Edit by @Hywan: Close #2347, close #2159. Co-authored-by: yukang <[email protected]> Co-authored-by: Yukang <[email protected]>
- Loading branch information
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|