diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/emcc_O2_hello_world.fromasm | 2 | ||||
-rw-r--r-- | test/emcc_hello_world.fromasm | 2 | ||||
-rw-r--r-- | test/hello_world.fromasm | 2 | ||||
-rw-r--r-- | test/memorygrowth.fromasm | 2 | ||||
-rw-r--r-- | test/min.fromasm | 2 | ||||
-rw-r--r-- | test/two_sides.fromasm | 2 | ||||
-rw-r--r-- | test/unit.fromasm | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/test/emcc_O2_hello_world.fromasm b/test/emcc_O2_hello_world.fromasm index efbb9d052..5c6c31dfa 100644 --- a/test/emcc_O2_hello_world.fromasm +++ b/test/emcc_O2_hello_world.fromasm @@ -1,5 +1,6 @@ (module (memory 256 256) + (data (get_global $memInitBase) "emcc_O2_hello_world.asm.js") (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) @@ -29,6 +30,7 @@ (import $___syscall140 "env" "___syscall140" (param i32 i32) (result i32)) (import $___syscall146 "env" "___syscall146" (param i32 i32) (result i32)) (import $i32u-div "asm2wasm" "i32u-div" (param i32 i32) (result i32)) + (import $memInitBase global "env" "memInitBase" i32) (export "_free" $_free) (export "_main" $_main) (export "_memset" $_memset) diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm index 9c533ee9d..14d0b8824 100644 --- a/test/emcc_hello_world.fromasm +++ b/test/emcc_hello_world.fromasm @@ -1,5 +1,6 @@ (module (memory 256 256) + (data (get_global $memInitBase) "emcc_hello_world.asm.js") (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$id (func (param f64) (result i32))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) @@ -38,6 +39,7 @@ (import $i32s-rem "asm2wasm" "i32s-rem" (param i32 i32) (result i32)) (import $i32u-rem "asm2wasm" "i32u-rem" (param i32 i32) (result i32)) (import $i32u-div "asm2wasm" "i32u-div" (param i32 i32) (result i32)) + (import $memInitBase global "env" "memInitBase" i32) (export "_i64Subtract" $_i64Subtract) (export "_free" $_free) (export "_main" $_main) diff --git a/test/hello_world.fromasm b/test/hello_world.fromasm index 675ef17ca..0aae371f0 100644 --- a/test/hello_world.fromasm +++ b/test/hello_world.fromasm @@ -1,5 +1,7 @@ (module (memory 256 256) + (data (get_global $memInitBase) "hello_world.asm.js") + (import $memInitBase global "env" "memInitBase" i32) (export "add" $add) (export "memory" memory) (func $add (param $0 i32) (param $1 i32) (result i32) diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm index 3cec8a5a3..36e9590ed 100644 --- a/test/memorygrowth.fromasm +++ b/test/memorygrowth.fromasm @@ -1,5 +1,6 @@ (module (memory 256 256) + (data (get_global $memInitBase) "memorygrowth.asm.js") (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) @@ -25,6 +26,7 @@ (import $xa "env" "___unlock" (param i32)) (import $ya "env" "___syscall146" (param i32 i32) (result i32)) (import $i32u-div "asm2wasm" "i32u-div" (param i32 i32) (result i32)) + (import $memInitBase global "env" "memInitBase" i32) (export "_free" $fb) (export "_main" $Na) (export "_pthread_self" $ib) diff --git a/test/min.fromasm b/test/min.fromasm index 9c0d90097..9135999dd 100644 --- a/test/min.fromasm +++ b/test/min.fromasm @@ -1,6 +1,8 @@ (module (memory 256 256) + (data (get_global $memInitBase) "min.asm.js") (import $tDP global "env" "tempDoublePtr" i32) + (import $memInitBase global "env" "memInitBase" i32) (export "floats" $floats) (export "memory" memory) (func $floats (param $0 f32) (result f32) diff --git a/test/two_sides.fromasm b/test/two_sides.fromasm index 9d114dc8c..0eed39325 100644 --- a/test/two_sides.fromasm +++ b/test/two_sides.fromasm @@ -1,7 +1,9 @@ (module (memory 256 256) + (data (get_global $memInitBase) "two_sides.asm.js") (type $FUNCSIG$id (func (param f64) (result i32))) (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32)) + (import $memInitBase global "env" "memInitBase" i32) (export "_test" $_test) (export "memory" memory) (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32) diff --git a/test/unit.fromasm b/test/unit.fromasm index 049b4dc8a..530761b62 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -1,5 +1,6 @@ (module (memory 256 256) + (data (get_global $memInitBase) "unit.asm.js") (type $FUNCSIG$id (func (param f64) (result i32))) (type $FUNCSIG$ddd (func (param f64 f64) (result f64))) (type $FUNCSIG$iii (func (param i32 i32) (result i32))) @@ -18,6 +19,7 @@ (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32)) (import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64)) (import $i32u-div "asm2wasm" "i32u-div" (param i32 i32) (result i32)) + (import $memInitBase global "env" "memInitBase" i32) (export "big_negative" $big_negative) (export "pick" $big_negative) (export "memory" memory) |