summaryrefslogtreecommitdiff
path: root/test/dump/select.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/dump/select.txt')
-rw-r--r--test/dump/select.txt70
1 files changed, 37 insertions, 33 deletions
diff --git a/test/dump/select.txt b/test/dump/select.txt
index 6ed00331..a23045c6 100644
--- a/test/dump/select.txt
+++ b/test/dump/select.txt
@@ -1,13 +1,13 @@
;;; FLAGS: -dv
(module
(func
- (select (i32.const 2) (i32.const 3) (i32.const 1))
- (select (i64.const 2) (i64.const 3) (i32.const 1))
- (select (f32.const 2) (f32.const 3) (i32.const 1))
- (select (f64.const 2) (f64.const 3) (i32.const 1))))
+ (drop (select (i32.const 2) (i32.const 3) (i32.const 1)))
+ (drop (select (i64.const 2) (i64.const 3) (i32.const 1)))
+ (drop (select (f32.const 2) (f32.const 3) (i32.const 1)))
+ (drop (select (f64.const 2) (f64.const 3) (i32.const 1)))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0b00 0000 ; WASM_BINARY_VERSION
+0000004: 0c00 0000 ; WASM_BINARY_VERSION
; section "type"
0000008: 04 ; string length
0000009: 7479 7065 ; section id: "type"
@@ -40,34 +40,38 @@
000002b: 10 ; OPCODE_I32_CONST
000002c: 01 ; i32 literal
000002d: 05 ; OPCODE_SELECT
-000002e: 11 ; OPCODE_I64_CONST
-000002f: 02 ; i64 literal
-0000030: 11 ; OPCODE_I64_CONST
-0000031: 03 ; i64 literal
-0000032: 10 ; OPCODE_I32_CONST
-0000033: 01 ; i32 literal
-0000034: 05 ; OPCODE_SELECT
-0000035: 13 ; OPCODE_F32_CONST
-0000036: 0000 0040 ; f32 literal
-000003a: 13 ; OPCODE_F32_CONST
-000003b: 0000 4040 ; f32 literal
-000003f: 10 ; OPCODE_I32_CONST
-0000040: 01 ; i32 literal
-0000041: 05 ; OPCODE_SELECT
-0000042: 12 ; OPCODE_F64_CONST
-0000043: 0000 0000 0000 0040 ; f64 literal
-000004b: 12 ; OPCODE_F64_CONST
-000004c: 0000 0000 0000 0840 ; f64 literal
-0000054: 10 ; OPCODE_I32_CONST
-0000055: 01 ; i32 literal
-0000056: 05 ; OPCODE_SELECT
-0000025: 31 ; FIXUP func body size
-0000023: 33 ; FIXUP section size
+000002e: 0b ; OPCODE_DROP
+000002f: 11 ; OPCODE_I64_CONST
+0000030: 02 ; i64 literal
+0000031: 11 ; OPCODE_I64_CONST
+0000032: 03 ; i64 literal
+0000033: 10 ; OPCODE_I32_CONST
+0000034: 01 ; i32 literal
+0000035: 05 ; OPCODE_SELECT
+0000036: 0b ; OPCODE_DROP
+0000037: 13 ; OPCODE_F32_CONST
+0000038: 0000 0040 ; f32 literal
+000003c: 13 ; OPCODE_F32_CONST
+000003d: 0000 4040 ; f32 literal
+0000041: 10 ; OPCODE_I32_CONST
+0000042: 01 ; i32 literal
+0000043: 05 ; OPCODE_SELECT
+0000044: 0b ; OPCODE_DROP
+0000045: 12 ; OPCODE_F64_CONST
+0000046: 0000 0000 0000 0040 ; f64 literal
+000004e: 12 ; OPCODE_F64_CONST
+000004f: 0000 0000 0000 0840 ; f64 literal
+0000057: 10 ; OPCODE_I32_CONST
+0000058: 01 ; i32 literal
+0000059: 05 ; OPCODE_SELECT
+000005a: 0b ; OPCODE_DROP
+0000025: 35 ; FIXUP func body size
+0000023: 37 ; FIXUP section size
;; dump
-0000000: 0061 736d 0b00 0000 0474 7970 6504 0140
+0000000: 0061 736d 0c00 0000 0474 7970 6504 0140
0000010: 0000 0866 756e 6374 696f 6e02 0100 0463
-0000020: 6f64 6533 0131 0010 0210 0310 0105 1102
-0000030: 1103 1001 0513 0000 0040 1300 0040 4010
-0000040: 0105 1200 0000 0000 0000 4012 0000 0000
-0000050: 0000 0840 1001 05
+0000020: 6f64 6537 0135 0010 0210 0310 0105 0b11
+0000030: 0211 0310 0105 0b13 0000 0040 1300 0040
+0000040: 4010 0105 0b12 0000 0000 0000 0040 1200
+0000050: 0000 0000 0008 4010 0105 0b
;;; STDOUT ;;)