blob: eed76652b8b93b6bfc56ae33e4873359bd1f1bb7 [file] [edit]
;;; TOOL: run-objdump
(module
(memory 1)
(func $f (param i32 i32) (result i32)
i32.const 0
i32.const 0
i32.load
i32.const 1
i32.add
i32.store
get_local 0
get_local 1
i32.add)
(export "f" (func $f)))
(;; STDOUT ;;;
basic_dump_only.wasm: file format wasm 0x1
Code Disassembly:
000024 <f>:
000026: 41 00 | i32.const 0
000028: 41 00 | i32.const 0
00002a: 28 02 00 | i32.load 2 0
00002d: 41 01 | i32.const 1
00002f: 6a | i32.add
000030: 36 02 00 | i32.store 2 0
000033: 20 00 | get_local 0
000035: 20 01 | get_local 1
000037: 6a | i32.add
000038: 0b | end
;;; STDOUT ;;)