Add memcpy compiler test

This commit is contained in:
dcodeIO
2017-12-08 16:11:58 +01:00
parent bbb57baecb
commit da672e2ca6
19 changed files with 4367 additions and 132 deletions

View File

@@ -8,40 +8,40 @@
(export "memory" (memory $0))
(func $switch/doSwitch (; 0 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(block $break|1.1
(block $case4|1.1
(block $case3|1.1
(block $case2|1.1
(block $case1|1.1
(block $case0|1.1
(block $break|0
(block $case4|0
(block $case3|0
(block $case2|0
(block $case1|0
(block $case0|0
(set_local $1
(get_local $0)
)
(br_if $case0|1.1
(br_if $case0|0
(i32.eq
(get_local $1)
(i32.const 1)
)
)
(br_if $case1|1.1
(br_if $case1|0
(i32.eq
(get_local $1)
(i32.const 0)
)
)
(br_if $case3|1.1
(br_if $case3|0
(i32.eq
(get_local $1)
(i32.const 2)
)
)
(br_if $case4|1.1
(br_if $case4|0
(i32.eq
(get_local $1)
(i32.const 3)
)
)
(br $case2|1.1)
(br $case2|0)
)
(return
(i32.const 1)
@@ -60,33 +60,33 @@
)
(func $switch/doSwitchDefaultFirst (; 1 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(block $break|1.1
(block $case3|1.1
(block $case2|1.1
(block $case1|1.1
(block $case0|1.1
(block $break|0
(block $case3|0
(block $case2|0
(block $case1|0
(block $case0|0
(set_local $1
(get_local $0)
)
(br_if $case1|1.1
(br_if $case1|0
(i32.eq
(get_local $1)
(i32.const 1)
)
)
(br_if $case2|1.1
(br_if $case2|0
(i32.eq
(get_local $1)
(i32.const 2)
)
)
(br_if $case3|1.1
(br_if $case3|0
(i32.eq
(get_local $1)
(i32.const 3)
)
)
(br $case0|1.1)
(br $case0|0)
)
(return
(i32.const 0)
@@ -104,32 +104,32 @@
)
(func $switch/doSwitchDefaultOmitted (; 2 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(block $break|1.1
(block $case2|1.1
(block $case1|1.1
(block $case0|1.1
(block $break|0
(block $case2|0
(block $case1|0
(block $case0|0
(set_local $1
(get_local $0)
)
(br_if $case0|1.1
(br_if $case0|0
(i32.eq
(get_local $1)
(i32.const 1)
)
)
(br_if $case1|1.1
(br_if $case1|0
(i32.eq
(get_local $1)
(i32.const 2)
)
)
(br_if $case2|1.1
(br_if $case2|0
(i32.eq
(get_local $1)
(i32.const 3)
)
)
(br $break|1.1)
(br $break|0)
)
(return
(i32.const 1)