| ;;; TOOL: run-gen-wasm |
| ;;; TOOL: run-objdump-gen-wasm |
| ;;; ARGS: -x |
| magic |
| version |
| section(TYPE) { count[1] function params[0] results[0] } |
| section(FUNCTION) { count[2] sig[0] sig[0] } |
| section(CODE) { |
| count[2] |
| func { |
| local_decls[1] |
| locals[0] i32 |
| } |
| func { |
| local_decls[4] |
| locals[1] i64 |
| locals[0] i32 |
| locals[2] f64 |
| locals[0] f32 |
| } |
| } |
| (;; STDOUT ;;; |
| (module |
| (type (;0;) (func)) |
| (func (;0;) (type 0)) |
| (func (;1;) (type 0) |
| (local i64 f64 f64))) |
| |
| function-local-count-zero.wasm: file format wasm 0x1 |
| |
| Section Details: |
| |
| Type[1]: |
| - type[0] () -> nil |
| Function[2]: |
| - func[0] sig=0 |
| - func[1] sig=0 |
| Code[2]: |
| - func[0] size=4 |
| - func[1] size=10 |
| |
| Code Disassembly: |
| |
| 000017 func[0]: |
| 000018: 00 7f | local[] type=i32 |
| 00001a: 0b | end |
| 00001c func[1]: |
| 00001d: 01 7e | local[0] type=i64 |
| 00001f: 00 7f | local[] type=i32 |
| 000021: 02 7c | local[1..2] type=f64 |
| 000023: 00 7d | local[] type=f32 |
| 000025: 0b | end |
| ;;; STDOUT ;;) |