protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit 2f1256aa3acb498bb39f80ff0231fd4c3672493b
parent 2fae731ead12789c54a099b48958d774b33c97da
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  1 Aug 2021 10:48:47 -0700

tweak test cases

Diffstat:
Mwasm/test/ifelse.wasm | 0
Mwasm/test/ifelse.wat | 17+++++++++++++++--
Mwasm/test/ifelse2.wasm | 0
Mwasm/test/ifelse2.wat | 13++++++++++++-
Mwasm/test/ifelse3.wasm | 0
Mwasm/test/ifelse3.wat | 11++++++++++-
Mwasm/test/ifelse4.wasm | 0
Mwasm/test/ifelse4.wat | 13++++++++++++-
8 files changed, 49 insertions(+), 5 deletions(-)

diff --git a/wasm/test/ifelse.wasm b/wasm/test/ifelse.wasm Binary files differ. diff --git a/wasm/test/ifelse.wat b/wasm/test/ifelse.wat @@ -9,7 +9,7 @@ local.get $rhs i32.sub ) - (func $start + (func $start (result i32) (local i32 i32) i32.const 0 local.set 0 @@ -36,8 +36,21 @@ end end end + i32.const 0 + ) + + (func $enter (result i32) + (local i32) + (call $start) + local.set 0 + (call $start) + local.get 0 + i32.ne ) - (export "_start" (func $start)) + + (export "start" (func $start)) + (export "_start" (func $enter)) + (export "add" (func $add)) (export "memory" (memory $mem)) (export "sub" (func $sub))) diff --git a/wasm/test/ifelse2.wasm b/wasm/test/ifelse2.wasm Binary files differ. diff --git a/wasm/test/ifelse2.wat b/wasm/test/ifelse2.wat @@ -35,6 +35,17 @@ end i32.const 0 ) - (export "_start" (func $start)) + + (func $enter (result i32) + (local i32) + (call $start) + local.set 0 + (call $start) + local.get 0 + i32.ne + ) + + (export "start" (func $start)) + (export "_start" (func $enter)) (export "add" (func $add)) (export "sub" (func $sub))) diff --git a/wasm/test/ifelse3.wasm b/wasm/test/ifelse3.wasm Binary files differ. diff --git a/wasm/test/ifelse3.wat b/wasm/test/ifelse3.wat @@ -25,7 +25,16 @@ end i32.const 0 ) - (export "_start" (func $start)) + + (func $enter (result i32) + (call $start) + drop + (call $start) + ) + + (export "start" (func $start)) + (export "_start" (func $enter)) + (export "add" (func $add)) (export "sub" (func $sub))) diff --git a/wasm/test/ifelse4.wasm b/wasm/test/ifelse4.wasm Binary files differ. diff --git a/wasm/test/ifelse4.wat b/wasm/test/ifelse4.wat @@ -25,7 +25,18 @@ end i32.const 0 ) - (export "_start" (func $start)) + + (func $enter (result i32) + (local i32) + (call $start) + local.set 0 + (call $start) + local.get 0 + i32.ne + ) + + (export "start" (func $start)) + (export "_start" (func $enter)) (export "add" (func $add)) (export "sub" (func $sub)))