diff options
Diffstat (limited to 'test/dump')
29 files changed, 109 insertions, 109 deletions
diff --git a/test/dump/atomic.txt b/test/dump/atomic.txt index 211da4cd..4e463efd 100644 --- a/test/dump/atomic.txt +++ b/test/dump/atomic.txt @@ -4,9 +4,9 @@ (module (memory 1 1 shared) (func - i32.const 0 i32.const 0 atomic.notify drop - i32.const 0 i32.const 0 i64.const 0 i32.atomic.wait drop - i32.const 0 i64.const 0 i64.const 0 i64.atomic.wait drop + i32.const 0 i32.const 0 memory.atomic.notify drop + i32.const 0 i32.const 0 i64.const 0 memory.atomic.wait32 drop + i32.const 0 i64.const 0 i64.const 0 memory.atomic.wait64 drop i32.const 0 i32.atomic.load drop i32.const 0 i64.atomic.load drop diff --git a/test/dump/basic.txt b/test/dump/basic.txt index 3b7b8ba2..092a9c05 100644 --- a/test/dump/basic.txt +++ b/test/dump/basic.txt @@ -10,8 +10,8 @@ i32.const 1 i32.add i32.store - get_local 0 - get_local 1 + local.get 0 + local.get 1 i32.add) (export "f" (func $f))) (;; STDERR ;;; diff --git a/test/dump/basic_dump_only.txt b/test/dump/basic_dump_only.txt index dd15954e..1e20171c 100644 --- a/test/dump/basic_dump_only.txt +++ b/test/dump/basic_dump_only.txt @@ -8,8 +8,8 @@ i32.const 1 i32.add i32.store - get_local 0 - get_local 1 + local.get 0 + local.get 1 i32.add) (export "f" (func $f))) (;; STDOUT ;;; diff --git a/test/dump/bulk-memory.txt b/test/dump/bulk-memory.txt index 2b56eb49..3ae30e66 100644 --- a/test/dump/bulk-memory.txt +++ b/test/dump/bulk-memory.txt @@ -11,7 +11,7 @@ i32.const 0 i32.const 0 i32.const 0 memory.fill ) - (table 1 anyfunc) + (table 1 funcref) (elem func 0) (func i32.const 0 i32.const 0 i32.const 0 table.init 0 diff --git a/test/dump/bulk-memory64.txt b/test/dump/bulk-memory64.txt index 8ac1c7f6..8c0326db 100644 --- a/test/dump/bulk-memory64.txt +++ b/test/dump/bulk-memory64.txt @@ -10,7 +10,7 @@ i64.const 0 i32.const 0 i64.const 0 memory.fill ) - (table 1 anyfunc) + (table 1 funcref) (elem func 0) (func i32.const 0 i32.const 0 i32.const 0 table.init 0 diff --git a/test/dump/callindirect.txt b/test/dump/callindirect.txt index 442b6733..1660f746 100644 --- a/test/dump/callindirect.txt +++ b/test/dump/callindirect.txt @@ -6,7 +6,7 @@ i32.const 0 i32.const 0 call_indirect (type $t)) - (table anyfunc (elem $f))) + (table funcref (elem $f))) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION diff --git a/test/dump/cast.txt b/test/dump/cast.txt index 3145f322..21651f5d 100644 --- a/test/dump/cast.txt +++ b/test/dump/cast.txt @@ -3,16 +3,16 @@ (module (func i32.const 0 - f32.reinterpret/i32 + f32.reinterpret_i32 drop f32.const 0 - i32.reinterpret/f32 + i32.reinterpret_f32 drop i64.const 0 - f64.reinterpret/i64 + f64.reinterpret_i64 drop f64.const 0 - i64.reinterpret/f64 + i64.reinterpret_f64 drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC diff --git a/test/dump/convert-sat.txt b/test/dump/convert-sat.txt index 7542c11f..03122c26 100644 --- a/test/dump/convert-sat.txt +++ b/test/dump/convert-sat.txt @@ -3,35 +3,35 @@ (module (func f32.const 0 - i32.trunc_s:sat/f32 + i32.trunc_sat_f32_s drop f32.const 0 - i32.trunc_u:sat/f32 + i32.trunc_sat_f32_u drop f64.const 0 - i32.trunc_s:sat/f64 + i32.trunc_sat_f64_s drop f64.const 0 - i32.trunc_u:sat/f64 + i32.trunc_sat_f64_u drop f32.const 0 - i64.trunc_s:sat/f32 + i64.trunc_sat_f32_s drop f32.const 0 - i64.trunc_u:sat/f32 + i64.trunc_sat_f32_u drop f64.const 0 - i64.trunc_s:sat/f64 + i64.trunc_sat_f64_s drop f64.const 0 - i64.trunc_u:sat/f64 + i64.trunc_sat_f64_u drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC diff --git a/test/dump/convert.txt b/test/dump/convert.txt index 0da3f2b3..6934d024 100644 --- a/test/dump/convert.txt +++ b/test/dump/convert.txt @@ -3,33 +3,33 @@ (module (func i32.const 0 - f64.convert_u/i32 - i32.trunc_u/f64 - f64.convert_s/i32 - i32.trunc_s/f64 - f32.convert_u/i32 - i32.trunc_u/f32 - f32.convert_s/i32 - i32.trunc_s/f32 - i64.extend_u/i32 - i32.wrap/i64 + f64.convert_i32_u + i32.trunc_f64_u + f64.convert_i32_s + i32.trunc_f64_s + f32.convert_i32_u + i32.trunc_f32_u + f32.convert_i32_s + i32.trunc_f32_s + i64.extend_i32_u + i32.wrap_i64 drop i32.const 0 - i64.extend_s/i32 - f64.convert_u/i64 - i64.trunc_u/f64 - f64.convert_s/i64 - i64.trunc_s/f64 - f32.convert_u/i64 - i64.trunc_u/f32 - f32.convert_s/i64 - i64.trunc_s/f32 + i64.extend_i32_s + f64.convert_i64_u + i64.trunc_f64_u + f64.convert_i64_s + i64.trunc_f64_s + f32.convert_i64_u + i64.trunc_f32_u + f32.convert_i64_s + i64.trunc_f32_s drop f32.const 0 - f64.promote/f32 - f32.demote/f64 + f64.promote_f32 + f32.demote_f64 drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC diff --git a/test/dump/global.txt b/test/dump/global.txt index 369f45a5..9a270ff5 100644 --- a/test/dump/global.txt +++ b/test/dump/global.txt @@ -12,10 +12,10 @@ (global f32 (f32.const 3)) (global f64 (f64.const 4)) - (global i32 (get_global 0)) - (global i64 (get_global 1)) - (global f32 (get_global 2)) - (global f64 (get_global 3))) + (global i32 (global.get 0)) + (global i64 (global.get 1)) + (global f32 (global.get 2)) + (global f64 (global.get 3))) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION diff --git a/test/dump/getglobal.txt b/test/dump/globalget.txt index a4a70776..5a8fc45c 100644 --- a/test/dump/getglobal.txt +++ b/test/dump/globalget.txt @@ -3,7 +3,7 @@ (module (global i32 (i32.const 0)) (func (result i32) - get_global 0)) + global.get 0)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION @@ -48,7 +48,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -getglobal.wasm: file format wasm 0x1 +globalget.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/setglobal.txt b/test/dump/globalset.txt index 5e975c36..ad6a35b5 100644 --- a/test/dump/setglobal.txt +++ b/test/dump/globalset.txt @@ -4,7 +4,7 @@ (global (mut f32) (f32.const 1)) (func f32.const 2 - set_global 0)) + global.set 0)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION @@ -50,7 +50,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -setglobal.wasm: file format wasm 0x1 +globalset.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/import.txt b/test/dump/import.txt index 834acbb4..6f16b6dc 100644 --- a/test/dump/import.txt +++ b/test/dump/import.txt @@ -5,7 +5,7 @@ (import "ignored" "test" (func (param i32 i64 f32 f64))) (import "ignored" "test2" (func (param i32) (result i32))) (import "ignored" "testmem" (memory 0)) - (import "ignored" "testtable" (table 0 anyfunc)) + (import "ignored" "testtable" (table 0 funcref)) (import "ignored" "testtag" (tag (param i32))) ) (;; STDERR ;;; diff --git a/test/dump/invalid-elem-segment-offset.txt b/test/dump/invalid-elem-segment-offset.txt index 01d02024..3c70d430 100644 --- a/test/dump/invalid-elem-segment-offset.txt +++ b/test/dump/invalid-elem-segment-offset.txt @@ -1,7 +1,7 @@ ;;; TOOL: wat2wasm ;;; ARGS: -v --no-check (module - (table 1 anyfunc) + (table 1 funcref) (func) (elem (i32.eqz (i32.const 1)) 0)) (;; STDERR ;;; diff --git a/test/dump/tee_local.txt b/test/dump/local-tee.txt index 5b1acf8b..07eb9c3f 100644 --- a/test/dump/tee_local.txt +++ b/test/dump/local-tee.txt @@ -4,7 +4,7 @@ (func (local i32) i32.const 0 - tee_local 0 + local.tee 0 drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC @@ -44,7 +44,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -tee_local.wasm: file format wasm 0x1 +local-tee.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/getlocal-param.txt b/test/dump/localget-param.txt index e9f5664f..e3f7c415 100644 --- a/test/dump/getlocal-param.txt +++ b/test/dump/localget-param.txt @@ -3,17 +3,17 @@ (module (func (param i32 f32) (local i64 f32 i32 f32) - get_local 0 + local.get 0 drop - get_local 1 + local.get 1 drop - get_local 2 + local.get 2 drop - get_local 3 + local.get 3 drop - get_local 4 + local.get 4 drop - get_local 5 + local.get 5 drop )) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC @@ -74,7 +74,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -getlocal-param.wasm: file format wasm 0x1 +localget-param.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/getlocal.txt b/test/dump/localget.txt index f29d71ef..c0310cf0 100644 --- a/test/dump/getlocal.txt +++ b/test/dump/localget.txt @@ -3,21 +3,21 @@ (module (func (local f64 f32 i64 i32 i32 f32 f64 i64) - get_local 0 + local.get 0 drop - get_local 1 + local.get 1 drop - get_local 2 + local.get 2 drop - get_local 3 + local.get 3 drop - get_local 4 + local.get 4 drop - get_local 5 + local.get 5 drop - get_local 6 + local.get 6 drop - get_local 7 + local.get 7 drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC @@ -88,7 +88,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -getlocal.wasm: file format wasm 0x1 +localget.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/setlocal-param.txt b/test/dump/localset-param.txt index 6cd74b99..da5609a2 100644 --- a/test/dump/setlocal-param.txt +++ b/test/dump/localset-param.txt @@ -8,17 +8,17 @@ ;; f32 4 5 (local i64 f32 i32 f32) i32.const 0 - set_local 0 + local.set 0 f32.const 0 - set_local 1 + local.set 1 i64.const 0 - set_local 2 + local.set 2 f32.const 0 - set_local 3 + local.set 3 i32.const 0 - set_local 4 + local.set 4 f32.const 0 - set_local 5)) + local.set 5)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION @@ -84,7 +84,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -setlocal-param.wasm: file format wasm 0x1 +localset-param.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/setlocal.txt b/test/dump/localset.txt index 6604c410..644c9978 100644 --- a/test/dump/setlocal.txt +++ b/test/dump/localset.txt @@ -8,21 +8,21 @@ ;; f64 6 7 (local f64 f32 i64 i32 i32 f32 f64 i64) f64.const 0 - set_local 0 + local.set 0 f32.const 0 - set_local 1 + local.set 1 i64.const 0 - set_local 2 + local.set 2 i32.const 0 - set_local 3 + local.set 3 i32.const 0 - set_local 4 + local.set 4 f32.const 0 - set_local 5 + local.set 5 f64.const 0 - set_local 6 + local.set 6 i64.const 0 - set_local 7)) + local.set 7)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION @@ -100,7 +100,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -setlocal.wasm: file format wasm 0x1 +localset.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/grow-memory.txt b/test/dump/memory-grow.txt index 80de8a01..6a309641 100644 --- a/test/dump/grow-memory.txt +++ b/test/dump/memory-grow.txt @@ -3,8 +3,8 @@ (module (memory 1 2) (func (param i32) - get_local 0 - grow_memory + local.get 0 + memory.grow drop)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC @@ -52,7 +52,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -grow-memory.wasm: file format wasm 0x1 +memory-grow.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/current-memory.txt b/test/dump/memory-size.txt index 28059287..533d952a 100644 --- a/test/dump/current-memory.txt +++ b/test/dump/memory-size.txt @@ -3,7 +3,7 @@ (module (memory 1) (func (result i32) - current_memory)) + memory.size)) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION @@ -46,7 +46,7 @@ ;;; STDERR ;;) (;; STDOUT ;;; -current-memory.wasm: file format wasm 0x1 +memory-size.wasm: file format wasm 0x1 Code Disassembly: diff --git a/test/dump/no-canonicalize.txt b/test/dump/no-canonicalize.txt index 39dda617..de3196ec 100644 --- a/test/dump/no-canonicalize.txt +++ b/test/dump/no-canonicalize.txt @@ -4,20 +4,20 @@ (import "stdio" "print" (func (param i32))) (memory 100) (export "f1" (func $f1)) - (table anyfunc (elem $f2 $f3)) + (table funcref (elem $f2 $f3)) (type $t (func (param i32) (result i32))) (func $f1 (param i32 i32) - get_local 0 - get_local 1 + local.get 0 + local.get 1 call_indirect (type $t) drop) (func $f2 (param i32) - get_local 0 + local.get 0 i32.const 1 i32.add drop) (func $f3 (param i32) - get_local 0 + local.get 0 i32.const 2 i32.mul drop)) diff --git a/test/dump/reference-types.txt b/test/dump/reference-types.txt index 9ccba7e8..2fd082cc 100644 --- a/test/dump/reference-types.txt +++ b/test/dump/reference-types.txt @@ -19,12 +19,12 @@ (func (param externref) i32.const 0 - get_local 0 + local.get 0 table.set $foo ) (func (param externref) i32.const 0 - get_local 0 + local.get 0 table.set $bar ) diff --git a/test/dump/relocations-all-features.txt b/test/dump/relocations-all-features.txt index ee017fd2..e6a0f9b5 100644 --- a/test/dump/relocations-all-features.txt +++ b/test/dump/relocations-all-features.txt @@ -7,14 +7,14 @@ (import "__extern" "bar" (func (param i32) (param i32) (result i32))) (global $g i32 (i32.const 0)) (func $f (param i32) (result i32) - get_global 0 + global.get 0 call 2 call 0 i32.const 1234 i32.const 0 call_indirect (param i32) (param i32) (result i32)) (export "f" (func $f)) - (table anyfunc (elem 1))) + (table funcref (elem 1))) (;; STDOUT ;;; relocations-all-features.wasm: file format wasm 0x1 diff --git a/test/dump/relocations-long-func-bodies.txt b/test/dump/relocations-long-func-bodies.txt index caabf95f..84b82b86 100644 --- a/test/dump/relocations-long-func-bodies.txt +++ b/test/dump/relocations-long-func-bodies.txt @@ -4,9 +4,9 @@ (module (global $g i32 (i32.const 0)) (func $previous_func - (drop (get_global 0))) + (drop (global.get 0))) (func $long_func - (drop (get_global 0)) + (drop (global.get 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) (drop (i32.const 0)) diff --git a/test/dump/relocations.txt b/test/dump/relocations.txt index 97fe671f..58679803 100644 --- a/test/dump/relocations.txt +++ b/test/dump/relocations.txt @@ -7,14 +7,14 @@ (import "__extern" "bar" (func (param i32) (param i32) (result i32))) (global $g i32 (i32.const 0)) (func $f (param i32) (result i32) - get_global 0 + global.get 0 call 2 call 0 i32.const 1234 i32.const 0 call_indirect (param i32) (param i32) (result i32)) (export "f" (func $f)) - (table anyfunc (elem 1))) + (table funcref (elem 1))) (;; STDOUT ;;; relocations.wasm: file format wasm 0x1 diff --git a/test/dump/table-multi.txt b/test/dump/table-multi.txt index 0f9e7a03..fc4555e0 100644 --- a/test/dump/table-multi.txt +++ b/test/dump/table-multi.txt @@ -3,8 +3,8 @@ ;;; ARGS1: -x (module (func (param i32)) - (table anyfunc (elem 0)) - (table anyfunc (elem 0))) + (table funcref (elem 0)) + (table funcref (elem 0))) (;; STDERR ;;; 0000000: 0061 736d ; WASM_BINARY_MAGIC 0000004: 0100 0000 ; WASM_BINARY_VERSION diff --git a/test/dump/table.txt b/test/dump/table.txt index 8e004267..10aadb5e 100644 --- a/test/dump/table.txt +++ b/test/dump/table.txt @@ -7,7 +7,7 @@ (func (param i32 i64)) (func (result f64) f64.const 0) - (table 6 6 anyfunc) + (table 6 6 funcref) (elem (i32.const 0) 1 1) (elem (i32.const 2) 0 0 1 2)) (;; STDERR ;;; diff --git a/test/dump/tail-call.txt b/test/dump/tail-call.txt index 61c10f66..0c725584 100644 --- a/test/dump/tail-call.txt +++ b/test/dump/tail-call.txt @@ -1,7 +1,7 @@ ;;; TOOL: run-objdump ;;; ARGS0: --enable-tail-call (module - (table 1 anyfunc) + (table 1 funcref) (func return_call 0) (func i32.const 0 return_call_indirect) ) |