-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve conflicts and update unreachable.wast to use if_else
- Loading branch information
Showing
13 changed files
with
94 additions
and
46 deletions.
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
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
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
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
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,35 @@ | ||
(module | ||
(func $return_i32 (result i32) | ||
(unreachable)) | ||
(func $return_f64 (result f64) | ||
(unreachable)) | ||
|
||
(func $if (param i32) (result f32) | ||
(if_else (get_local 0) (unreachable) (f32.const 0))) | ||
|
||
(func $block | ||
(block (i32.const 1) (unreachable) (i32.const 2))) | ||
|
||
(func $return_i64 (result i64) | ||
(return (i64.const 1)) | ||
(unreachable)) | ||
|
||
(func $call (result f64) | ||
(call $return_i32) | ||
(unreachable)) | ||
|
||
(export "return_i32" $return_i32) | ||
(export "return_f64" $return_f64) | ||
(export "if" $if) | ||
(export "block" $block) | ||
(export "return_i64" $return_i64) | ||
(export "call" $call) | ||
) | ||
|
||
(assert_trap (invoke "return_i32") "unreachable executed") | ||
(assert_trap (invoke "return_f64") "unreachable executed") | ||
(assert_trap (invoke "if" (i32.const 1)) "unreachable executed") | ||
(assert_return (invoke "if" (i32.const 0)) (f32.const 0)) | ||
(assert_trap (invoke "block") "unreachable executed") | ||
(assert_return (invoke "return_i64") (i64.const 1)) | ||
(assert_trap (invoke "call") "unreachable executed") |