Skip to content

Commit f2eda34

Browse files
authored
Update the upstream testsuite submodule (#958)
No major updates necessary in the implementation, just updating tests and their expectations.
1 parent 40d3637 commit f2eda34

File tree

139 files changed

+3050
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+3050
-82
lines changed

tests/roundtrip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ fn skip_test(test: &Path, contents: &[u8]) -> bool {
135135
"exception-handling/try_delegate.wast",
136136
"exception-handling/try_catch.wast",
137137
"exception-handling/throw.wast",
138-
// Blocked on WebAssembly/testsuite being updated
139-
"relaxed-simd/relaxed_dot_product.wast",
138+
// This is an empty file which currently doesn't parse
139+
"multi-memory/memory_copy1.wast",
140140
];
141141
if broken.iter().any(|x| test.ends_with(x)) {
142142
return true;
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
(module
2+
(type (;0;) (func))
3+
(type (;1;) (func (result i32)))
4+
(func (;0;) (type 0)
5+
unreachable
6+
call_indirect (type 0)
7+
)
8+
(func (;1;) (type 0)
9+
unreachable
10+
call_indirect (type 0)
11+
nop
12+
)
13+
(func (;2;) (type 0)
14+
unreachable
15+
call_indirect (type 0)
16+
call_indirect (type 0)
17+
)
18+
(func (;3;) (type 0)
19+
unreachable
20+
call_indirect (type 0)
21+
call_indirect (type 0)
22+
)
23+
(func (;4;) (type 0)
24+
unreachable
25+
call_indirect (type 0)
26+
call_indirect (type 0)
27+
call_indirect (type 0)
28+
)
29+
(func (;5;) (type 0)
30+
unreachable
31+
call_indirect (type 0)
32+
)
33+
(func (;6;) (type 0)
34+
unreachable
35+
call_indirect (type 0)
36+
)
37+
(func (;7;) (type 0)
38+
unreachable
39+
call_indirect (type 0)
40+
call_indirect (type 0)
41+
)
42+
(func (;8;) (type 0)
43+
unreachable
44+
call_indirect (type 0)
45+
call_indirect (type 0)
46+
)
47+
(func (;9;) (type 1) (result i32)
48+
unreachable
49+
call_indirect (type 0)
50+
select
51+
)
52+
(func (;10;) (type 1) (result i32)
53+
unreachable
54+
call_indirect (type 0)
55+
select
56+
call_indirect (type 0)
57+
)
58+
(table (;0;) 1 funcref)
59+
)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(module
2+
(type $out-i32 (;0;) (func (result i32)))
3+
(func $const-i32-a (;0;) (type $out-i32) (result i32)
4+
i32.const 65
5+
)
6+
(func $const-i32-b (;1;) (type $out-i32) (result i32)
7+
i32.const 66
8+
)
9+
(func (;2;) (type $out-i32) (result i32)
10+
i32.const 7
11+
call_indirect (type $out-i32)
12+
)
13+
(func (;3;) (type $out-i32) (result i32)
14+
i32.const 9
15+
call_indirect (type $out-i32)
16+
)
17+
(table (;0;) 11 funcref)
18+
(export "call-7" (func 2))
19+
(export "call-9" (func 3))
20+
(elem (;0;) (i32.const 6) funcref (ref.null func) (ref.func $const-i32-a))
21+
(elem (;1;) (i32.const 9) funcref (ref.func $const-i32-b) (ref.null func))
22+
)

tests/snapshots/testsuite/elem.wast/13.print

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/snapshots/testsuite/elem.wast/14.print

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/snapshots/testsuite/elem.wast/15.print

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
(module
2-
(import "spectest" "table" (table (;0;) 0 funcref))
3-
(elem (;0;) (i32.const 0) func)
2+
(type (;0;) (func))
3+
(func $f (;0;) (type 0))
4+
(table (;0;) 10 funcref)
5+
(elem (;0;) (i32.const 9) func $f)
46
)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
(module
2-
(table (;0;) 0 0 funcref)
3-
(elem (;0;) (i32.const 0) func)
2+
(type (;0;) (func))
3+
(import "spectest" "table" (table (;0;) 10 funcref))
4+
(func $f (;0;) (type 0))
5+
(elem (;0;) (i32.const 9) func $f)
46
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(module
2-
(table (;0;) 20 funcref)
3-
(elem (;0;) (i32.const 20) func)
2+
(table (;0;) 0 funcref)
3+
(elem (;0;) (i32.const 0) func)
44
)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(module
2-
(type (;0;) (func))
32
(import "spectest" "table" (table (;0;) 0 funcref))
4-
(func $f (;0;) (type 0))
5-
(elem (;0;) (i32.const 0) func $f)
3+
(elem (;0;) (i32.const 0) func)
64
)

0 commit comments

Comments
 (0)