forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from near/viktar/testing_tests
ci: check wat correctness
- Loading branch information
Showing
796 changed files
with
1,668 additions
and
1,618 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
unreachable | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 999999999 | ||
i32.const 1000000000 | ||
i32.add | ||
i32.const 1999999999 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 1 | ||
i32.const 0 | ||
i32.and | ||
i32.const 0 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 5 | ||
i32.const 2 | ||
i32.div_s | ||
i32.const 2 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 5 | ||
i32.eqz | ||
i32.const 0 | ||
call $assert_eq | ||
call $assert_eq_i32 | ||
i32.const 0 | ||
i32.eqz | ||
i32.const 1 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 4294967295 | ||
i32.const 1 | ||
i32.add | ||
i32.const 0 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 4 | ||
i32.const 4 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 2147483648 | ||
i32.const 2 | ||
i32.mul | ||
i32.const 0 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(import "env" "assert_eq_i64" (func $assert_eq_i64 (param i64) (param i64))) | ||
(func $main | ||
i64.const 9223372036854775807 | ||
i64.const 9223372036854775807 | ||
call $assert_eq) | ||
call $assert_eq_i64) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(import "env" "assert_eq_i64" (func $assert_eq_i64 (param i64) (param i64))) | ||
(func $main | ||
i64.const 2 | ||
i64.const 9223372036854775808 | ||
i64.mul | ||
i64.const 0 | ||
call $assert_eq) | ||
call $assert_eq_i64) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(import "env" "assert_eq_i64" (func $assert_eq_i64 (param i64) (param i64))) | ||
(func $main | ||
i64.const 5 | ||
i64.const 2 | ||
i64.rem_s | ||
i64.const 1 | ||
call $assert_eq | ||
call $assert_eq_i64 | ||
i64.const 8 | ||
i64.const 3 | ||
i64.rem_s | ||
i64.const 2 | ||
call $assert_eq) | ||
call $assert_eq_i64) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
(local $x i32) | ||
(local.set $x (i32.const 2)) | ||
(local.get $x) | ||
(i32.const 2) | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
;; 1 - true, 0 false | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i32) (param i32))) | ||
(import "env" "assert_eq_i32" (func $assert_eq_i32 (param i32) (param i32))) | ||
(func $main | ||
i32.const 2 | ||
i32.const 3 | ||
i32.lt_s | ||
i32.const 1 | ||
call $assert_eq | ||
call $assert_eq_i32 | ||
|
||
i32.const 3 | ||
i32.const 2 | ||
i32.lt_s | ||
i32.const 0 | ||
call $assert_eq) | ||
call $assert_eq_i32) | ||
(start $main)) |
Oops, something went wrong.