Skip to content

Commit

Permalink
Update spectest
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson authored Oct 27, 2024
1 parent 6be835b commit 9acc0af
Show file tree
Hide file tree
Showing 930 changed files with 3,080 additions and 2,121 deletions.
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
__pycache__/
*.py[cod]

build/
dist/
*.egg-info/
*.egg

.pytest_cache/
dist
res/spec
351 changes: 184 additions & 167 deletions res/spectest/address.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions res/spectest/address.wast
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@
(assert_return (invoke "32_good4" (i32.const 65508)) (i32.const 0))
(assert_trap (invoke "32_good5" (i32.const 65508)) "out of bounds memory access")

(assert_trap (invoke "8u_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "8s_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "16u_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "16s_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "32_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "32_good3" (i32.const -1)) "out of bounds memory access")

(assert_trap (invoke "8u_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "8s_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "16u_bad" (i32.const 0)) "out of bounds memory access")
Expand Down Expand Up @@ -478,6 +485,14 @@
(assert_return (invoke "64_good4" (i32.const 65504)) (i64.const 0))
(assert_trap (invoke "64_good5" (i32.const 65504)) "out of bounds memory access")

(assert_trap (invoke "8u_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "8s_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "16u_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "16s_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "32u_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "32s_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "64_good3" (i32.const -1)) "out of bounds memory access")

(assert_trap (invoke "8u_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "8s_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "16u_bad" (i32.const 0)) "out of bounds memory access")
Expand Down Expand Up @@ -538,6 +553,9 @@
(assert_return (invoke "32_good4" (i32.const 65525)) (f32.const 0.0))
(assert_trap (invoke "32_good5" (i32.const 65525)) "out of bounds memory access")

(assert_trap (invoke "32_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "32_good3" (i32.const -1)) "out of bounds memory access")

(assert_trap (invoke "32_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "32_bad" (i32.const 1)) "out of bounds memory access")

Expand Down Expand Up @@ -585,5 +603,8 @@
(assert_return (invoke "64_good4" (i32.const 65511)) (f64.const 0.0))
(assert_trap (invoke "64_good5" (i32.const 65511)) "out of bounds memory access")

(assert_trap (invoke "64_good3" (i32.const -1)) "out of bounds memory access")
(assert_trap (invoke "64_good3" (i32.const -1)) "out of bounds memory access")

(assert_trap (invoke "64_bad" (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "64_bad" (i32.const 1)) "out of bounds memory access")
Binary file modified res/spectest/binary-leb128.71.wasm
Binary file not shown.
Binary file added res/spectest/binary-leb128.81.wasm
Binary file not shown.
Binary file added res/spectest/binary-leb128.82.wasm
Binary file not shown.
4 changes: 3 additions & 1 deletion res/spectest/binary-leb128.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@
{"type": "assert_malformed", "line": 925, "filename": "binary-leb128.77.wasm", "text": "integer too large", "module_type": "binary"},
{"type": "assert_malformed", "line": 935, "filename": "binary-leb128.78.wasm", "text": "integer too large", "module_type": "binary"},
{"type": "assert_malformed", "line": 945, "filename": "binary-leb128.79.wasm", "text": "integer too large", "module_type": "binary"},
{"type": "assert_malformed", "line": 955, "filename": "binary-leb128.80.wasm", "text": "integer too large", "module_type": "binary"}]}
{"type": "assert_malformed", "line": 955, "filename": "binary-leb128.80.wasm", "text": "integer too large", "module_type": "binary"},
{"type": "module", "line": 966, "filename": "binary-leb128.81.wasm"},
{"type": "assert_malformed", "line": 987, "filename": "binary-leb128.82.wasm", "text": "integer representation too long", "module_type": "binary"}]}
40 changes: 39 additions & 1 deletion res/spectest/binary-leb128.wast
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
"\41\00" ;; i32.const 0
"\41\03" ;; i32.const 3
"\36" ;; i32.store
"\03" ;; alignment 2
"\02" ;; alignment 2
"\82\80\80\80\10" ;; offset 2 with unused bits set
"\0b" ;; end
)
Expand Down Expand Up @@ -961,3 +961,41 @@
)
"integer too large"
)


(module binary
"\00asm" "\01\00\00\00"
"\01\04\01" ;; type section
"\60\00\00" ;; empty function type
"\03\02\01" ;; function section
"\00" ;; function 0, type 0
"\0a\1b\01\19" ;; code section
"\00" ;; no locals
"\00" ;; unreachable
"\fc\80\00" ;; i32_trunc_sat_f32_s with 2 bytes
"\00" ;; unreachable
"\fc\81\80\00" ;; i32_trunc_sat_f32_u with 3 bytes
"\00" ;; unreachable
"\fc\86\80\80\00" ;; i64_trunc_sat_f64_s with 4 bytes
"\00" ;; unreachable
"\fc\87\80\80\80\00" ;; i64_trunc_sat_f64_u with 5 bytes
"\00" ;; unreachable
"\0b" ;; end
)

(assert_malformed
(module binary
"\00asm" "\01\00\00\00"
"\01\04\01" ;; type section
"\60\00\00" ;; empty function type
"\03\02\01" ;; function section
"\00" ;; function 0, type 0
"\0a\0d\01\0b" ;; code section
"\00" ;; no locals
"\00" ;; unreachable
"\fc\87\80\80\80\80\00" ;; i64_trunc_sat_f64_u with 6 bytes
"\00" ;; unreachable
"\0b" ;; end
)
"integer representation too long"
)
Binary file added res/spectest/binary.100.wasm
Binary file not shown.
Binary file added res/spectest/binary.101.wasm
Binary file not shown.
Binary file added res/spectest/binary.102.wasm
Binary file not shown.
Binary file added res/spectest/binary.103.wasm
Binary file not shown.
Binary file added res/spectest/binary.104.wasm
Binary file not shown.
Binary file modified res/spectest/binary.32.wasm
Binary file not shown.
Binary file modified res/spectest/binary.33.wasm
Binary file not shown.
Binary file modified res/spectest/binary.34.wasm
Binary file not shown.
Binary file modified res/spectest/binary.35.wasm
Binary file not shown.
Binary file modified res/spectest/binary.36.wasm
Binary file not shown.
Binary file modified res/spectest/binary.37.wasm
Binary file not shown.
Binary file modified res/spectest/binary.38.wasm
Binary file not shown.
Binary file modified res/spectest/binary.39.wasm
Binary file not shown.
Binary file modified res/spectest/binary.40.wasm
Binary file not shown.
Binary file modified res/spectest/binary.41.wasm
Binary file not shown.
Binary file modified res/spectest/binary.42.wasm
Binary file not shown.
Binary file modified res/spectest/binary.43.wasm
Binary file not shown.
Binary file modified res/spectest/binary.44.wasm
Binary file not shown.
Binary file modified res/spectest/binary.45.wasm
Binary file not shown.
Binary file modified res/spectest/binary.46.wasm
Binary file not shown.
Binary file modified res/spectest/binary.47.wasm
Binary file not shown.
Binary file modified res/spectest/binary.48.wasm
Binary file not shown.
Binary file modified res/spectest/binary.49.wasm
Binary file not shown.
Binary file modified res/spectest/binary.50.wasm
Binary file not shown.
Binary file modified res/spectest/binary.51.wasm
Binary file not shown.
Binary file modified res/spectest/binary.52.wasm
Binary file not shown.
Binary file modified res/spectest/binary.53.wasm
Binary file not shown.
Binary file modified res/spectest/binary.54.wasm
Binary file not shown.
Binary file modified res/spectest/binary.55.wasm
Binary file not shown.
Binary file modified res/spectest/binary.56.wasm
Binary file not shown.
Binary file modified res/spectest/binary.57.wasm
Binary file not shown.
Binary file modified res/spectest/binary.58.wasm
Binary file not shown.
Binary file modified res/spectest/binary.59.wasm
Binary file not shown.
Binary file modified res/spectest/binary.60.wasm
Binary file not shown.
Binary file modified res/spectest/binary.61.wasm
Binary file not shown.
Binary file modified res/spectest/binary.62.wasm
Binary file not shown.
Binary file modified res/spectest/binary.63.wasm
Binary file not shown.
Binary file modified res/spectest/binary.64.wasm
Binary file not shown.
Binary file modified res/spectest/binary.65.wasm
Binary file not shown.
Binary file modified res/spectest/binary.66.wasm
Binary file not shown.
Binary file modified res/spectest/binary.67.wasm
Binary file not shown.
Binary file modified res/spectest/binary.68.wasm
Binary file not shown.
Binary file modified res/spectest/binary.69.wasm
Binary file not shown.
Binary file modified res/spectest/binary.70.wasm
Binary file not shown.
Binary file modified res/spectest/binary.71.wasm
Binary file not shown.
Binary file modified res/spectest/binary.72.wasm
Binary file not shown.
Binary file modified res/spectest/binary.73.wasm
Binary file not shown.
Binary file modified res/spectest/binary.74.wasm
Binary file not shown.
Binary file modified res/spectest/binary.75.wasm
Binary file not shown.
Binary file modified res/spectest/binary.76.wasm
Binary file not shown.
Binary file modified res/spectest/binary.77.wasm
Binary file not shown.
Binary file modified res/spectest/binary.78.wasm
Binary file not shown.
Binary file modified res/spectest/binary.79.wasm
Binary file not shown.
Binary file modified res/spectest/binary.80.wasm
Binary file not shown.
Binary file modified res/spectest/binary.81.wasm
Binary file not shown.
Binary file modified res/spectest/binary.82.wasm
Binary file not shown.
Binary file modified res/spectest/binary.83.wasm
Binary file not shown.
Binary file added res/spectest/binary.84.wasm
Binary file not shown.
Binary file added res/spectest/binary.85.wasm
Binary file not shown.
Binary file added res/spectest/binary.86.wasm
Binary file not shown.
Binary file added res/spectest/binary.87.wasm
Binary file not shown.
Binary file added res/spectest/binary.88.wasm
Binary file not shown.
Binary file added res/spectest/binary.89.wasm
Binary file not shown.
Binary file added res/spectest/binary.90.wasm
Binary file not shown.
Binary file added res/spectest/binary.91.wasm
Binary file not shown.
Binary file added res/spectest/binary.92.wasm
Binary file not shown.
Binary file added res/spectest/binary.93.wasm
Binary file not shown.
Binary file added res/spectest/binary.94.wasm
Binary file not shown.
Binary file added res/spectest/binary.95.wasm
Binary file not shown.
Binary file added res/spectest/binary.96.wasm
Binary file not shown.
Binary file added res/spectest/binary.97.wasm
Binary file not shown.
Binary file added res/spectest/binary.98.wasm
Binary file not shown.
Binary file added res/spectest/binary.99.wasm
Binary file not shown.
Loading

0 comments on commit 9acc0af

Please sign in to comment.