summaryrefslogtreecommitdiff
path: root/test/dot_s/debug.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/dot_s/debug.wast')
-rw-r--r--test/dot_s/debug.wast51
1 files changed, 51 insertions, 0 deletions
diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast
new file mode 100644
index 000000000..3a859fd0d
--- /dev/null
+++ b/test/dot_s/debug.wast
@@ -0,0 +1,51 @@
+(module
+ (memory 1)
+ (export "memory" memory)
+ (export "fib" $fib)
+ (func $fib (param $0 i32) (result i32)
+ (local $1 i32)
+ (local $2 i32)
+ (local $3 i32)
+ (local $4 i32)
+ (set_local $3
+ (i32.const 0)
+ )
+ (set_local $2
+ (i32.const -1)
+ )
+ (set_local $4
+ (i32.const 1)
+ )
+ (loop $label$1 $label$0
+ (set_local $2
+ (i32.add
+ (get_local $2)
+ (i32.const 1)
+ )
+ )
+ (br_if $label$1
+ (i32.ge_s
+ (get_local $2)
+ (get_local $0)
+ )
+ )
+ (set_local $1
+ (i32.add
+ (get_local $4)
+ (get_local $3)
+ )
+ )
+ (set_local $3
+ (get_local $4)
+ )
+ (set_local $4
+ (get_local $1)
+ )
+ (br $label$0)
+ )
+ (return
+ (get_local $4)
+ )
+ )
+)
+;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [] }