Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,792 changes: 3,896 additions & 3,896 deletions test/core/memory64/memory_copy64.wast

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions test/core/memory64/memory_copy_mixed.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
;; Valid cases
(module
(memory $m32 1 1)
(memory $m64 i64 1 1)

(func (export "test32")
(memory.copy $m32 $m32 (i32.const 13) (i32.const 2) (i32.const 3)))

(func (export "test64")
(memory.copy $m64 $m64 (i64.const 13) (i64.const 2) (i64.const 3)))

(func (export "test_64to32")
(memory.copy $m32 $m64 (i32.const 13) (i64.const 2) (i32.const 3)))

(func (export "test_32to64")
(memory.copy $m64 $m32 (i64.const 13) (i32.const 2) (i32.const 3)))
)

;; Invalid cases
(assert_invalid (module
(memory $m32 1 1)
(memory $m64 i64 1 1)

(func (export "bad_size_arg")
(memory.copy $m32 $m64 (i32.const 13) (i64.const 2) (i64.const 3)))
)
"type mismatch"
)

(assert_invalid (module
(memory $m32 1 1)
(memory $m64 i64 1 1)

(func (export "bad_src_idx")
(memory.copy $m32 $m64 (i32.const 13) (i32.const 2) (i32.const 3)))
)
"type mismatch"
)

(assert_invalid (module
(memory $m32 1 1)
(memory $m64 i64 1 1)

(func (export "bad_dst_idx")
(memory.copy $m32 $m64 (i64.const 13) (i64.const 2) (i32.const 3)))
)
"type mismatch"
)
3,678 changes: 1,839 additions & 1,839 deletions test/core/memory64/table_copy64.wast

Large diffs are not rendered by default.

Loading
Loading