summaryrefslogtreecommitdiff
path: root/test/dump/unary.txt
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-02-27 15:44:14 -0800
committerBen Smith <binji@chromium.org>2016-02-28 17:03:15 -0800
commit20135f5f783b8f5cfa5f94683bc8c667e60d4a68 (patch)
tree0031a2b357728bfdc22196055ae58b541c82ea26 /test/dump/unary.txt
parent6da3f5272ccc3be7384f0a5e5886ee85f755fec8 (diff)
downloadwabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.tar.gz
wabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.tar.bz2
wabt-20135f5f783b8f5cfa5f94683bc8c667e60d4a68.zip
binary format has magic and version number
Diffstat (limited to 'test/dump/unary.txt')
-rw-r--r--test/dump/unary.txt91
1 files changed, 47 insertions, 44 deletions
diff --git a/test/dump/unary.txt b/test/dump/unary.txt
index 4cdee569..92685a69 100644
--- a/test/dump/unary.txt
+++ b/test/dump/unary.txt
@@ -26,51 +26,54 @@
(f64.trunc
(f64.nearest (f64.const 0))))))))))
(;; STDOUT ;;;
-0000000: 01 ; WASM_BINARY_SECTION_SIGNATURES
-0000001: 01 ; num signatures
+0000000: 0061 736d ; WASM_BINARY_MAGIC
+0000004: 0a00 0000 ; WASM_BINARY_VERSION
+0000008: 01 ; WASM_BINARY_SECTION_SIGNATURES
+0000009: 01 ; num signatures
; signature 0
-0000002: 00 ; num params
-0000003: 00 ; result_type
-0000004: 02 ; WASM_BINARY_SECTION_FUNCTIONS
-0000005: 01 ; num functions
+000000a: 00 ; num params
+000000b: 00 ; result_type
+000000c: 02 ; WASM_BINARY_SECTION_FUNCTIONS
+000000d: 01 ; num functions
; function 0
-0000006: 00 ; func flags
-0000007: 0000 ; func signature index
-0000009: 0000 ; func body size
-000000b: 5a ; OPCODE_BOOL_NOT
-000000c: 57 ; OPCODE_I32_CLZ
-000000d: 58 ; OPCODE_I32_CTZ
-000000e: 59 ; OPCODE_I32_POPCNT
-000000f: 09 ; OPCODE_I8_CONST
-0000010: 00 ; u8 literal
-0000011: 72 ; OPCODE_I64_CLZ
-0000012: 73 ; OPCODE_I64_CTZ
-0000013: 74 ; OPCODE_I64_POPCNT
-0000014: 0b ; OPCODE_I64_CONST
-0000015: 0000 0000 0000 0000 ; u64 literal
-000001d: 7c ; OPCODE_F32_NEG
-000001e: 7b ; OPCODE_F32_ABS
-000001f: 82 ; OPCODE_F32_SQRT
-0000020: 7e ; OPCODE_F32_CEIL
-0000021: 7f ; OPCODE_F32_FLOOR
-0000022: 80 ; OPCODE_F32_TRUNC
-0000023: 81 ; OPCODE_F32_NEAREST_INT
-0000024: 0d ; OPCODE_F32_CONST
-0000025: 0000 0000 ; f32 literal
-0000029: 90 ; OPCODE_F64_NEG
-000002a: 8f ; OPCODE_F64_ABS
-000002b: 96 ; OPCODE_F64_SQRT
-000002c: 92 ; OPCODE_F64_CEIL
-000002d: 93 ; OPCODE_F64_FLOOR
-000002e: 94 ; OPCODE_F64_TRUNC
-000002f: 95 ; OPCODE_F64_NEAREST_INT
-0000030: 0c ; OPCODE_F64_CONST
-0000031: 0000 0000 0000 0000 ; f64 literal
-0000009: 2e00 ; FIXUP func body size
-0000039: 06 ; WASM_BINARY_SECTION_END
+000000e: 00 ; func flags
+000000f: 0000 ; func signature index
+0000011: 0000 ; func body size
+0000013: 5a ; OPCODE_BOOL_NOT
+0000014: 57 ; OPCODE_I32_CLZ
+0000015: 58 ; OPCODE_I32_CTZ
+0000016: 59 ; OPCODE_I32_POPCNT
+0000017: 09 ; OPCODE_I8_CONST
+0000018: 00 ; u8 literal
+0000019: 72 ; OPCODE_I64_CLZ
+000001a: 73 ; OPCODE_I64_CTZ
+000001b: 74 ; OPCODE_I64_POPCNT
+000001c: 0b ; OPCODE_I64_CONST
+000001d: 0000 0000 0000 0000 ; u64 literal
+0000025: 7c ; OPCODE_F32_NEG
+0000026: 7b ; OPCODE_F32_ABS
+0000027: 82 ; OPCODE_F32_SQRT
+0000028: 7e ; OPCODE_F32_CEIL
+0000029: 7f ; OPCODE_F32_FLOOR
+000002a: 80 ; OPCODE_F32_TRUNC
+000002b: 81 ; OPCODE_F32_NEAREST_INT
+000002c: 0d ; OPCODE_F32_CONST
+000002d: 0000 0000 ; f32 literal
+0000031: 90 ; OPCODE_F64_NEG
+0000032: 8f ; OPCODE_F64_ABS
+0000033: 96 ; OPCODE_F64_SQRT
+0000034: 92 ; OPCODE_F64_CEIL
+0000035: 93 ; OPCODE_F64_FLOOR
+0000036: 94 ; OPCODE_F64_TRUNC
+0000037: 95 ; OPCODE_F64_NEAREST_INT
+0000038: 0c ; OPCODE_F64_CONST
+0000039: 0000 0000 0000 0000 ; f64 literal
+0000011: 2e00 ; FIXUP func body size
+0000041: 06 ; WASM_BINARY_SECTION_END
;; dump
-0000000: 0101 0000 0201 0000 002e 005a 5758 5909
-0000010: 0072 7374 0b00 0000 0000 0000 007c 7b82
-0000020: 7e7f 8081 0d00 0000 0090 8f96 9293 9495
-0000030: 0c00 0000 0000 0000 0006
+0000000: 0061 736d 0a00 0000 0101 0000 0201 0000
+0000010: 002e 005a 5758 5909 0072 7374 0b00 0000
+0000020: 0000 0000 007c 7b82 7e7f 8081 0d00 0000
+0000030: 0090 8f96 9293 9495 0c00 0000 0000 0000
+0000040: 0006
;;; STDOUT ;;)