summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'test/example')
-rw-r--r--test/example/c-api-kitchen-sink.txt298
-rw-r--r--test/example/c-api-kitchen-sink.txt.txt149
2 files changed, 0 insertions, 447 deletions
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index d16999b47..1de260b20 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -1030,155 +1030,6 @@ optimized:
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
- (call $check
- (i32.const 1337)
- )
- )
- (func $two-blocks (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- )
- (func $loop (type $v)
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (func $if (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $if-else (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 3)
- )
- )
- (func $loop-tail (type $v)
- (block $block$3$break
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $nontrivial-loop-plus-phi-to-head (type $v)
- (call $check
- (i32.const 0)
- )
- (block $block$7$break
- (block $block$4$break
- (loop $shape$1$continue
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- (br $block$4$break)
- )
- )
- (call $check
- (i32.const 3)
- )
- (call $check
- (i32.const 4)
- )
- (call $check
- (i32.const 5)
- )
- )
- (call $check
- (i32.const 6)
- )
- )
- (func $switch (type $v)
- (call $check
- (i32.const 0)
- )
- (block $switch$1$leave
- (call $check
- (i32.const 3)
- )
- )
- )
- (func $duffs-device (type $v)
- (local $0 i32)
- (call $check
- (i32.const 0)
- )
- (set_local $0
- (i32.const 2)
- )
- (loop $shape$1$continue
- (if
- (i32.eq
- (get_local $0)
- (i32.const 2)
- )
- (block
- (call $check
- (i32.const 1)
- )
- (set_local $0
- (i32.const 3)
- )
- (br $shape$1$continue)
- )
- (if
- (i32.eq
- (get_local $0)
- (i32.const 3)
- )
- (block
- (call $check
- (i32.const 2)
- )
- (set_local $0
- (i32.const 2)
- )
- (br $shape$1$continue)
- )
- )
- )
- )
- )
- (func $return (type $i) (result i32)
- (call $check
- (i32.const 42)
- )
- (i32.const 1337)
- )
)
module loaded from binary form:
(module
@@ -3037,155 +2888,6 @@ optimized:
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
- (call $check
- (i32.const 1337)
- )
- )
- (func $two-blocks (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- )
- (func $loop (type $v)
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (func $if (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $if-else (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 3)
- )
- )
- (func $loop-tail (type $v)
- (block $block$3$break
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $nontrivial-loop-plus-phi-to-head (type $v)
- (call $check
- (i32.const 0)
- )
- (block $block$7$break
- (block $block$4$break
- (loop $shape$1$continue
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- (br $block$4$break)
- )
- )
- (call $check
- (i32.const 3)
- )
- (call $check
- (i32.const 4)
- )
- (call $check
- (i32.const 5)
- )
- )
- (call $check
- (i32.const 6)
- )
- )
- (func $switch (type $v)
- (call $check
- (i32.const 0)
- )
- (block $switch$1$leave
- (call $check
- (i32.const 3)
- )
- )
- )
- (func $duffs-device (type $v)
- (local $0 i32)
- (call $check
- (i32.const 0)
- )
- (set_local $0
- (i32.const 2)
- )
- (loop $shape$1$continue
- (if
- (i32.eq
- (get_local $0)
- (i32.const 2)
- )
- (block
- (call $check
- (i32.const 1)
- )
- (set_local $0
- (i32.const 3)
- )
- (br $shape$1$continue)
- )
- (if
- (i32.eq
- (get_local $0)
- (i32.const 3)
- )
- (block
- (call $check
- (i32.const 2)
- )
- (set_local $0
- (i32.const 2)
- )
- (br $shape$1$continue)
- )
- )
- )
- )
- )
- (func $return (type $i) (result i32)
- (call $check
- (i32.const 42)
- )
- (i32.const 1337)
- )
)
BinaryenModuleDispose(the_module);
functionTypes.clear();
diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt
index 26a765b26..16e4941d3 100644
--- a/test/example/c-api-kitchen-sink.txt.txt
+++ b/test/example/c-api-kitchen-sink.txt.txt
@@ -1023,153 +1023,4 @@
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
- (call $check
- (i32.const 1337)
- )
- )
- (func $two-blocks (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- )
- (func $loop (type $v)
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (func $if (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $if-else (type $v)
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 3)
- )
- )
- (func $loop-tail (type $v)
- (block $block$3$break
- (loop $shape$0$continue
- (call $check
- (i32.const 0)
- )
- (call $check
- (i32.const 1)
- )
- (br $shape$0$continue)
- )
- )
- (call $check
- (i32.const 2)
- )
- )
- (func $nontrivial-loop-plus-phi-to-head (type $v)
- (call $check
- (i32.const 0)
- )
- (block $block$7$break
- (block $block$4$break
- (loop $shape$1$continue
- (call $check
- (i32.const 1)
- )
- (call $check
- (i32.const 2)
- )
- (br $block$4$break)
- )
- )
- (call $check
- (i32.const 3)
- )
- (call $check
- (i32.const 4)
- )
- (call $check
- (i32.const 5)
- )
- )
- (call $check
- (i32.const 6)
- )
- )
- (func $switch (type $v)
- (call $check
- (i32.const 0)
- )
- (block $switch$1$leave
- (call $check
- (i32.const 3)
- )
- )
- )
- (func $duffs-device (type $v)
- (local $0 i32)
- (call $check
- (i32.const 0)
- )
- (set_local $0
- (i32.const 2)
- )
- (loop $shape$1$continue
- (if
- (i32.eq
- (get_local $0)
- (i32.const 2)
- )
- (block
- (call $check
- (i32.const 1)
- )
- (set_local $0
- (i32.const 3)
- )
- (br $shape$1$continue)
- )
- (if
- (i32.eq
- (get_local $0)
- (i32.const 3)
- )
- (block
- (call $check
- (i32.const 2)
- )
- (set_local $0
- (i32.const 2)
- )
- (br $shape$1$continue)
- )
- )
- )
- )
- )
- (func $return (type $i) (result i32)
- (call $check
- (i32.const 42)
- )
- (i32.const 1337)
- )
)