summaryrefslogtreecommitdiff
path: root/test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-07-07 18:28:28 +0000
committerGitHub <noreply@github.com>2021-07-07 18:28:28 +0000
commit0a682d32870c3a7b2c908b0d7d7cab95338393c5 (patch)
treeae42e3699c85e0060bf83526a478b22377c304db /test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast
parent7200d7b4db7e8d12d2c187621958aa85cdc6b5e5 (diff)
downloadbinaryen-0a682d32870c3a7b2c908b0d7d7cab95338393c5.tar.gz
binaryen-0a682d32870c3a7b2c908b0d7d7cab95338393c5.tar.bz2
binaryen-0a682d32870c3a7b2c908b0d7d7cab95338393c5.zip
Port test/passes/O* to lit (#3969)
Diffstat (limited to 'test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast')
-rw-r--r--test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast80
1 files changed, 0 insertions, 80 deletions
diff --git a/test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast b/test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast
deleted file mode 100644
index b1085b922..000000000
--- a/test/passes/O3_inline-functions-with-loops_flexible-inline-max-function-size=30.wast
+++ /dev/null
@@ -1,80 +0,0 @@
-(module
- (type $t0 (func (param i32) (result i32)))
- (func $fib (export "fib") (type $t0) (param $p0 i32) (result i32)
- (if $I0
- (i32.le_s
- (local.get $p0)
- (i32.const 2)
- )
- (then
- (return
- (local.get $p0)
- )
- )
- )
- (i32.add
- (call $fib
- (i32.sub
- (local.get $p0)
- (i32.const 1)
- )
- )
- (call $fib
- (i32.sub
- (local.get $p0)
- (i32.const 2)
- )
- )
- )
- )
- (func $looped (export "looped") (type $t0) (param $p0 i32) (result i32)
- (loop $L0
- (if $I1
- (i32.ge_s
- (local.get $p0)
- (i32.const 0)
- )
- (then
- (local.set $p0
- (i32.sub
- (local.get $p0)
- (i32.const 1)
- )
- )
- (br $L0)
- )
- )
- )
- (local.get $p0)
- )
-
- (func $t0 (export "t0") (type $t0) (param $p0 i32) (result i32)
- (call $looped
- (local.get $p0)
- )
- )
-
- (func $t1 (export "t1") (type $t0) (param $p0 i32) (result i32)
- (call $looped
- (i32.add
- (local.get $p0)
- (i32.const 1)
- )
- )
- )
- (func $t2 (export "t2") (type $t0) (param $p0 i32) (result i32)
- (call $fib
- (local.get $p0)
- )
- )
-
- (func $t3 (export "t3") (type $t0) (param $p0 i32) (result i32)
- (call $fib
- (i32.add
- (local.get $p0)
- (i32.const 1)
- )
- )
- )
- (memory $memory (export "memory") 0)
-)