summaryrefslogtreecommitdiff
path: root/test/merge/basics.wast.combined
diff options
context:
space:
mode:
Diffstat (limited to 'test/merge/basics.wast.combined')
-rw-r--r--test/merge/basics.wast.combined28
1 files changed, 10 insertions, 18 deletions
diff --git a/test/merge/basics.wast.combined b/test/merge/basics.wast.combined
index 96ea89cfd..66e9221a0 100644
--- a/test/merge/basics.wast.combined
+++ b/test/merge/basics.wast.combined
@@ -9,8 +9,12 @@
(elem (get_global $tableBase) $only-a $willCollide $some-func $some-collide $only-a $some-func $only-b $willCollide$0 $some-func-b $some-collide$0)
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
+ (import "env" "__memory_base" (global $__memory_base i32))
+ (import "env" "__table_base" (global $__table_base i32))
(import "env" "memoryBase" (global $memoryBase$0 i32))
(import "env" "tableBase" (global $tableBase$0 i32))
+ (import "env" "__memory_base" (global $__memory_base$0 i32))
+ (import "env" "__table_base" (global $__table_base$0 i32))
(import "env" "some-func" (func $some-func))
(import "env" "some-collide" (func $some-collide))
(import "env" "some-func-b" (func $some-func-b))
@@ -87,44 +91,32 @@
(get_global $global-b-mut)
)
(drop
- (i32.add
- (get_global $memoryBase$0)
- (i32.const 16)
- )
+ (get_global $memoryBase$0)
)
(drop
- (i32.add
- (get_global $tableBase$0)
- (i32.const 6)
- )
+ (get_global $tableBase$0)
)
(drop
(i32.add
(get_global $memoryBase$0)
- (i32.const 1016)
+ (i32.const 1000)
)
)
(drop
(i32.add
(get_global $tableBase$0)
- (i32.const 1006)
+ (i32.const 1000)
)
)
(drop
(i32.add
- (i32.add
- (get_global $tableBase$0)
- (i32.const 6)
- )
+ (get_global $tableBase$0)
(unreachable)
)
)
(drop
(i32.sub
- (i32.add
- (get_global $tableBase$0)
- (i32.const 6)
- )
+ (get_global $tableBase$0)
(i32.const 1000)
)
)