forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
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 bytecodealliance#92 from near/viktar/spectests
Viktar/spectests
- Loading branch information
Showing
594 changed files
with
8,555 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
set -eux | ||
|
||
# NB: This might have false-positives locally, but it's worth it for iteration speed. | ||
# If you ever run into a situation when modules are out of date, run this command manually. | ||
if [ ! -d "tests/zkasm/node_modules" ]; then | ||
npm install --prefix tests/zkasm | ||
fi | ||
TEST_PATH=../../${1:-"cranelift/zkasm_data/spectest/i64/generated"} | ||
npm test --prefix tests/zkasm $TEST_PATH |
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,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 1 | ||
i64.const 1 | ||
i64.add | ||
i64.const 2 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 1 | ||
i64.const 0 | ||
i64.add | ||
i64.const 1 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const -1 | ||
i64.const -1 | ||
i64.add | ||
i64.const -2 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const -1 | ||
i64.const 1 | ||
i64.add | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x7fffffffffffffff | ||
i64.const 1 | ||
i64.add | ||
i64.const 0x8000000000000000 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x8000000000000000 | ||
i64.const -1 | ||
i64.add | ||
i64.const 0x7fffffffffffffff | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x8000000000000000 | ||
i64.const 0x8000000000000000 | ||
i64.add | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x3fffffff | ||
i64.const 1 | ||
i64.add | ||
i64.const 0x40000000 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 1 | ||
i64.const 0 | ||
i64.and | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0 | ||
i64.const 1 | ||
i64.and | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 1 | ||
i64.const 1 | ||
i64.and | ||
i64.const 1 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0 | ||
i64.const 0 | ||
i64.and | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x7fffffffffffffff | ||
i64.const 0x8000000000000000 | ||
i64.and | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x7fffffffffffffff | ||
i64.const -1 | ||
i64.and | ||
i64.const 0x7fffffffffffffff | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0xf0f0ffff | ||
i64.const 0xfffff0f0 | ||
i64.and | ||
i64.const 0xf0f0f0f0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0xffffffffffffffff | ||
i64.const 0xffffffffffffffff | ||
i64.and | ||
i64.const 0xffffffffffffffff | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0xffffffffffffffff | ||
i64.clz | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0 | ||
i64.clz | ||
i64.const 64 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x00008000 | ||
i64.clz | ||
i64.const 48 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0xff | ||
i64.clz | ||
i64.const 56 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x8000000000000000 | ||
i64.clz | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 1 | ||
i64.clz | ||
i64.const 63 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 2 | ||
i64.clz | ||
i64.const 62 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x7fffffffffffffff | ||
i64.clz | ||
i64.const 1 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const -1 | ||
i64.ctz | ||
i64.const 0 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0 | ||
i64.ctz | ||
i64.const 64 | ||
call $assert_eq) | ||
(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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(module | ||
(import "env" "assert_eq" (func $assert_eq (param i64) (param i64))) | ||
(func $main | ||
i64.const 0x00008000 | ||
i64.ctz | ||
i64.const 15 | ||
call $assert_eq) | ||
(start $main)) |
Oops, something went wrong.