summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/address.2asm.js1
-rw-r--r--test/unit.wast.fromBinary10
2 files changed, 6 insertions, 5 deletions
diff --git a/test/address.2asm.js b/test/address.2asm.js
index 7c0e95e09..3aa8b0cd8 100644
--- a/test/address.2asm.js
+++ b/test/address.2asm.js
@@ -21,6 +21,7 @@ function asmFunc(global, env, buffer) {
print(HEAPU8[(i + 2 | 0) >> 0] | 0 | 0);
print(HEAPU8[(i + 25 | 0) >> 0] | 0 | 0);
print(HEAPU16[i >> 1] | 0 | 0);
+ print((wasm2asm_i32$0 = i, HEAPU8[wasm2asm_i32$0 >> 0] | 0 | 0 | (HEAPU8[(wasm2asm_i32$0 + 1 | 0) >> 0] | 0 | 0) << 8) | 0);
print((wasm2asm_i32$0 = i, HEAPU8[(wasm2asm_i32$0 + 1 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2asm_i32$0 + 2 | 0) >> 0] | 0 | 0) << 8) | 0);
print(HEAPU16[(i + 2 | 0) >> 1] | 0 | 0);
print((wasm2asm_i32$0 = i, HEAPU8[(wasm2asm_i32$0 + 25 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2asm_i32$0 + 26 | 0) >> 0] | 0 | 0) << 8) | 0);
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary
index f3c05b225..b399d35ff 100644
--- a/test/unit.wast.fromBinary
+++ b/test/unit.wast.fromBinary
@@ -9,9 +9,9 @@
(type $4 (func (result f64)))
(type $5 (func (result i32)))
(type $6 (func (param i32) (result i32)))
- (import $_emscripten_asm_const_vi "env" "_emscripten_asm_const_vi")
- (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32))
- (import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64))
+ (import $import$0 "env" "_emscripten_asm_const_vi")
+ (import $import$1 "asm2wasm" "f64-to-int" (param f64) (result i32))
+ (import $import$2 "asm2wasm" "f64-rem" (param f64 f64) (result f64))
(export "big_negative" $big_negative)
(table $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative (type $1)
@@ -142,7 +142,7 @@
(local $var$1 f64)
(block $label$0
(set_local $var$0
- (call_import $f64-to-int
+ (call_import $import$1
(get_local $var$1)
)
)
@@ -268,7 +268,7 @@
)
)
(func $frem (type $4) (result f64)
- (call_import $f64-rem
+ (call_import $import$2
(f64.const 5.5)
(f64.const 1.2)
)