summaryrefslogtreecommitdiff
path: root/test/lld
diff options
context:
space:
mode:
Diffstat (limited to 'test/lld')
-rw-r--r--test/lld/basic_safe_stack.wat.out2
-rw-r--r--test/lld/duplicate_imports.wat.out6
-rw-r--r--test/lld/em_asm.wat.mem.out4
-rw-r--r--test/lld/em_asm.wat.out6
-rw-r--r--test/lld/em_asm64.wat.out6
-rw-r--r--test/lld/em_asm_O0.wat.out4
-rw-r--r--test/lld/em_asm_main_thread.wat.out6
-rw-r--r--test/lld/em_asm_pthread.wasm.out4
-rw-r--r--test/lld/em_asm_table.wat.out4
-rw-r--r--test/lld/hello_world.passive.wat.out6
-rw-r--r--test/lld/hello_world.wat.mem.out2
-rw-r--r--test/lld/hello_world.wat.out2
-rw-r--r--test/lld/init.wat.out2
-rw-r--r--test/lld/longjmp.wat.out2
-rw-r--r--test/lld/recursive.wat.out2
-rw-r--r--test/lld/recursive_safe_stack.wat.out6
-rw-r--r--test/lld/reserved_func_ptr.wat.out2
-rw-r--r--test/lld/safe_stack_standalone-wasm.wat.out6
-rw-r--r--test/lld/standalone-wasm-with-start.wat.out6
-rw-r--r--test/lld/standalone-wasm.wat.out6
-rw-r--r--test/lld/standalone-wasm2.wat.out2
-rw-r--r--test/lld/standalone-wasm3.wat.out2
22 files changed, 44 insertions, 44 deletions
diff --git a/test/lld/basic_safe_stack.wat.out b/test/lld/basic_safe_stack.wat.out
index 09c440ece..9500aea41 100644
--- a/test/lld/basic_safe_stack.wat.out
+++ b/test/lld/basic_safe_stack.wat.out
@@ -4,10 +4,10 @@
(type $i32_i32_=>_none (func (param i32 i32)))
(type $i32_=>_i32 (func (param i32) (result i32)))
(import "env" "__handle_stack_overflow" (func $__handle_stack_overflow))
- (memory $0 2)
(global $__stack_pointer (mut i32) (i32.const 66112))
(global $__stack_base (mut i32) (i32.const 0))
(global $__stack_limit (mut i32) (i32.const 0))
+ (memory $0 2)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "stackRestore" (func $stackRestore))
diff --git a/test/lld/duplicate_imports.wat.out b/test/lld/duplicate_imports.wat.out
index 5a5fa94e3..50f73f88d 100644
--- a/test/lld/duplicate_imports.wat.out
+++ b/test/lld/duplicate_imports.wat.out
@@ -13,12 +13,12 @@
(import "env" "invoke_ffd" (func $invoke_ffd (param i32 f32 f64) (result f32)))
(import "env" "invoke_ffd" (func $invoke_ffd2 (param i32 f64 f64) (result f32)))
(import "env" "puts" (func $legalimport$puts2 (param i32 i32) (result i32)))
- (memory $0 2)
- (data (i32.const 568) "Hello, world\00")
- (table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 581))
+ (memory $0 2)
+ (data (i32.const 568) "Hello, world\00")
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/em_asm.wat.mem.out b/test/lld/em_asm.wat.mem.out
index 22d0fdc5c..2f11aeb55 100644
--- a/test/lld/em_asm.wat.mem.out
+++ b/test/lld/em_asm.wat.mem.out
@@ -4,11 +4,11 @@
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (param i32 i32 i32) (result i32)))
- (memory $0 2)
- (table $0 1 1 funcref)
(global $__stack_pointer (mut i32) (i32.const 66208))
(global $global$1 i32 (i32.const 574))
(global $global$2 i32 (i32.const 658))
+ (memory $0 2)
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/em_asm.wat.out b/test/lld/em_asm.wat.out
index 167baddde..c0261d891 100644
--- a/test/lld/em_asm.wat.out
+++ b/test/lld/em_asm.wat.out
@@ -4,13 +4,13 @@
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (param i32 i32 i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66208))
+ (global $global$1 i32 (i32.const 574))
+ (global $global$2 i32 (i32.const 658))
(memory $0 2)
(data $.rodata (i32.const 568) "\00ii\00i\00")
(data $em_asm (i32.const 574) "")
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i32) (i32.const 66208))
- (global $global$1 i32 (i32.const 574))
- (global $global$2 i32 (i32.const 658))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/em_asm64.wat.out b/test/lld/em_asm64.wat.out
index 1678b83f2..d4a8b6ded 100644
--- a/test/lld/em_asm64.wat.out
+++ b/test/lld/em_asm64.wat.out
@@ -4,13 +4,13 @@
(type $i32_i64_=>_i32 (func (param i32 i64) (result i32)))
(type $i64_i64_i64_=>_i32 (func (param i64 i64 i64) (result i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (param i64 i64 i64) (result i32)))
+ (global $__stack_pointer (mut i64) (i64.const 66208))
+ (global $global$1 i32 (i32.const 574))
+ (global $global$2 i32 (i32.const 658))
(memory $0 i64 2)
(data $.rodata (i64.const 568) "\00ii\00i\00")
(data $em_asm (i64.const 574) "")
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i64) (i64.const 66208))
- (global $global$1 i32 (i32.const 574))
- (global $global$2 i32 (i32.const 658))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/em_asm_O0.wat.out b/test/lld/em_asm_O0.wat.out
index b1765812c..74e545ad5 100644
--- a/test/lld/em_asm_O0.wat.out
+++ b/test/lld/em_asm_O0.wat.out
@@ -3,11 +3,11 @@
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (param i32 i32 i32) (result i32)))
- (memory $0 2)
- (data $em_asm (i32.const 568) "")
(global $__stack_pointer (mut i32) (i32.const 66192))
(global $global$1 i32 (i32.const 568))
(global $global$2 i32 (i32.const 652))
+ (memory $0 2)
+ (data $em_asm (i32.const 568) "")
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/em_asm_main_thread.wat.out b/test/lld/em_asm_main_thread.wat.out
index 91a022dbc..31ee579c0 100644
--- a/test/lld/em_asm_main_thread.wat.out
+++ b/test/lld/em_asm_main_thread.wat.out
@@ -7,14 +7,14 @@
(type $6 (func (param i32 i32) (result i32)))
(type $0 (func (param i32 i32 i32) (result i32)))
(import "env" "emscripten_asm_const_int_sync_on_main_thread" (func $emscripten_asm_const_int_sync_on_main_thread (param i32 i32 i32) (result i32)))
- (memory $0 2)
- (data (i32.const 568) "")
- (table $0 1 1 funcref)
(global $0 i32 (i32.const 568))
(global $1 i32 (i32.const 652))
(global $global$0 (mut i32) (i32.const 66192))
(global $global$1 i32 (i32.const 66192))
(global $global$2 i32 (i32.const 652))
+ (memory $0 2)
+ (data (i32.const 568) "")
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/em_asm_pthread.wasm.out b/test/lld/em_asm_pthread.wasm.out
index a89db9b24..43eb27176 100644
--- a/test/lld/em_asm_pthread.wasm.out
+++ b/test/lld/em_asm_pthread.wasm.out
@@ -63,8 +63,6 @@
(import "wasi_snapshot_preview1" "fd_write" (func $fimport$16 (param i32 i32 i32 i32) (result i32)))
(import "env" "initPthreadsJS" (func $fimport$17))
(import "env" "setTempRet0" (func $setTempRet0 (param i32)))
- (table $0 5 5 funcref)
- (elem (i32.const 1) $6 $73 $72 $74)
(global $global$0 (mut i32) (i32.const 5246928))
(global $global$1 i32 (i32.const 0))
(global $global$2 i32 (i32.const 0))
@@ -77,6 +75,8 @@
(global $global$11 i32 (i32.const 1836))
(global $global$12 i32 (i32.const 1658))
(global $global$13 i32 (i32.const 1782))
+ (table $0 5 5 funcref)
+ (elem (i32.const 1) $6 $73 $72 $74)
(export "__wasm_call_ctors" (func $0))
(export "main" (func $4))
(export "__indirect_function_table" (table $0))
diff --git a/test/lld/em_asm_table.wat.out b/test/lld/em_asm_table.wat.out
index 99baf943b..9a6af1d7a 100644
--- a/test/lld/em_asm_table.wat.out
+++ b/test/lld/em_asm_table.wat.out
@@ -6,10 +6,10 @@
(import "env" "memory" (memory $2 8192))
(import "env" "emscripten_log" (func $fimport$0 (param i32 i32)))
(import "env" "emscripten_asm_const_int" (func $fimport$1 (param i32 i32 i32) (result i32)))
- (table $0 159609 funcref)
- (elem (i32.const 1) $fimport$0 $fimport$1)
(global $global$0 (mut i32) (i32.const 1024))
(global $global$1 i32 (i32.const 1048))
+ (table $0 159609 funcref)
+ (elem (i32.const 1) $fimport$0 $fimport$1)
(export "__data_end" (global $global$1))
(export "dynCall_vii" (func $dynCall_vii))
(export "dynCall_iiii" (func $dynCall_iiii))
diff --git a/test/lld/hello_world.passive.wat.out b/test/lld/hello_world.passive.wat.out
index 5d4a2ed10..a4c1a9c1b 100644
--- a/test/lld/hello_world.passive.wat.out
+++ b/test/lld/hello_world.passive.wat.out
@@ -4,12 +4,12 @@
(type $0 (func (param i32) (result i32)))
(type $3 (func (param i32 i32) (result i32)))
(import "env" "puts" (func $puts (param i32) (result i32)))
- (memory $0 2)
- (data "Hello, world\00")
- (table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 581))
+ (memory $0 2)
+ (data "Hello, world\00")
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/hello_world.wat.mem.out b/test/lld/hello_world.wat.mem.out
index 6a002d7b2..9e8e50c7a 100644
--- a/test/lld/hello_world.wat.mem.out
+++ b/test/lld/hello_world.wat.mem.out
@@ -4,9 +4,9 @@
(type $i32_=>_i32 (func (param i32) (result i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(import "env" "puts" (func $puts (param i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66128))
(memory $0 2)
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i32) (i32.const 66128))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/hello_world.wat.out b/test/lld/hello_world.wat.out
index 8783b5662..5f69eb918 100644
--- a/test/lld/hello_world.wat.out
+++ b/test/lld/hello_world.wat.out
@@ -4,10 +4,10 @@
(type $i32_=>_i32 (func (param i32) (result i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(import "env" "puts" (func $puts (param i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66128))
(memory $0 2)
(data $.rodata (i32.const 568) "Hello, world\00")
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i32) (i32.const 66128))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/init.wat.out b/test/lld/init.wat.out
index 4ec84de43..06ea07837 100644
--- a/test/lld/init.wat.out
+++ b/test/lld/init.wat.out
@@ -2,9 +2,9 @@
(type $none_=>_none (func))
(type $none_=>_i32 (func (result i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66112))
(memory $0 2)
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i32) (i32.const 66112))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/longjmp.wat.out b/test/lld/longjmp.wat.out
index 9be7a12c7..3cc23cbbd 100644
--- a/test/lld/longjmp.wat.out
+++ b/test/lld/longjmp.wat.out
@@ -16,10 +16,10 @@
(import "env" "testSetjmp" (func $fimport$5 (param i32 i32 i32) (result i32)))
(import "env" "setTempRet0" (func $fimport$6 (param i32)))
(import "env" "free" (func $fimport$7 (param i32)))
+ (global $global$0 (mut i32) (i32.const 66112))
(memory $0 2)
(table $0 2 2 funcref)
(elem (i32.const 1) $fimport$3)
- (global $global$0 (mut i32) (i32.const 66112))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $0))
(export "main" (func $2))
diff --git a/test/lld/recursive.wat.out b/test/lld/recursive.wat.out
index f47981a47..029397fe7 100644
--- a/test/lld/recursive.wat.out
+++ b/test/lld/recursive.wat.out
@@ -3,10 +3,10 @@
(type $none_=>_none (func))
(type $none_=>_i32 (func (result i32)))
(import "env" "iprintf" (func $iprintf (param i32 i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66128))
(memory $0 2)
(data $.rodata (i32.const 568) "%d:%d\n\00Result: %d\n\00")
(table $0 1 1 funcref)
- (global $__stack_pointer (mut i32) (i32.const 66128))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/recursive_safe_stack.wat.out b/test/lld/recursive_safe_stack.wat.out
index 7e8037ea0..d906b777b 100644
--- a/test/lld/recursive_safe_stack.wat.out
+++ b/test/lld/recursive_safe_stack.wat.out
@@ -5,14 +5,14 @@
(type $2 (func (result i32)))
(import "env" "printf" (func $printf (param i32 i32) (result i32)))
(import "env" "__handle_stack_overflow" (func $__handle_stack_overflow))
- (memory $0 2)
- (data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
- (table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 587))
(global $__stack_base (mut i32) (i32.const 0))
(global $__stack_limit (mut i32) (i32.const 0))
+ (memory $0 2)
+ (data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/reserved_func_ptr.wat.out b/test/lld/reserved_func_ptr.wat.out
index 5b4fc2447..d1924226f 100644
--- a/test/lld/reserved_func_ptr.wat.out
+++ b/test/lld/reserved_func_ptr.wat.out
@@ -8,10 +8,10 @@
(type $f32_f32_i32_=>_f32 (func (param f32 f32 i32) (result f32)))
(type $f64_i32_=>_f64 (func (param f64 i32) (result f64)))
(import "env" "_Z4atoiPKc" (func $atoi\28char\20const*\29 (param i32) (result i32)))
+ (global $__stack_pointer (mut i32) (i32.const 66112))
(memory $0 2)
(table $0 3 3 funcref)
(elem (i32.const 1) $address_taken_func\28int\2c\20int\2c\20int\29 $address_taken_func2\28int\2c\20int\2c\20int\29)
- (global $__stack_pointer (mut i32) (i32.const 66112))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
diff --git a/test/lld/safe_stack_standalone-wasm.wat.out b/test/lld/safe_stack_standalone-wasm.wat.out
index 87d723ed5..1e598c4fa 100644
--- a/test/lld/safe_stack_standalone-wasm.wat.out
+++ b/test/lld/safe_stack_standalone-wasm.wat.out
@@ -4,14 +4,14 @@
(type $i32_i32_=>_none (func (param i32 i32)))
(type $2 (func (result i32)))
(import "env" "printf" (func $printf (param i32 i32) (result i32)))
- (memory $0 2)
- (data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
- (table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 587))
(global $__stack_base (mut i32) (i32.const 0))
(global $__stack_limit (mut i32) (i32.const 0))
+ (memory $0 2)
+ (data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
+ (table $0 1 1 funcref)
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/standalone-wasm-with-start.wat.out b/test/lld/standalone-wasm-with-start.wat.out
index 027e026d1..650ef4542 100644
--- a/test/lld/standalone-wasm-with-start.wat.out
+++ b/test/lld/standalone-wasm-with-start.wat.out
@@ -1,11 +1,11 @@
(module
(type $none_=>_i32 (func (result i32)))
- (memory $0 2)
- (table $0 1 1 funcref)
- (elem (i32.const 0) $foo)
(global $global$0 (mut i32) (i32.const 66112))
(global $global$1 i32 (i32.const 66112))
(global $global$2 i32 (i32.const 576))
+ (memory $0 2)
+ (table $0 1 1 funcref)
+ (elem (i32.const 0) $foo)
(export "memory" (memory $0))
(export "_start" (func $_start))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/standalone-wasm.wat.out b/test/lld/standalone-wasm.wat.out
index f8339a270..d3a589c7d 100644
--- a/test/lld/standalone-wasm.wat.out
+++ b/test/lld/standalone-wasm.wat.out
@@ -1,12 +1,12 @@
(module
(type $none_=>_i32 (func (result i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
- (memory $0 2)
- (table $0 1 1 funcref)
- (elem (i32.const 0) $foo)
(global $global$0 (mut i32) (i32.const 66112))
(global $global$1 i32 (i32.const 66112))
(global $global$2 i32 (i32.const 576))
+ (memory $0 2)
+ (table $0 1 1 funcref)
+ (elem (i32.const 0) $foo)
(export "memory" (memory $0))
(export "main" (func $main))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/standalone-wasm2.wat.out b/test/lld/standalone-wasm2.wat.out
index fec51bb24..4f3cb355c 100644
--- a/test/lld/standalone-wasm2.wat.out
+++ b/test/lld/standalone-wasm2.wat.out
@@ -1,9 +1,9 @@
(module
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
- (memory $0 2)
(global $global$0 (mut i32) (i32.const 66112))
(global $global$1 i32 (i32.const 66112))
(global $global$2 i32 (i32.const 576))
+ (memory $0 2)
(export "memory" (memory $0))
(export "main" (func $main))
(export "__heap_base" (global $global$1))
diff --git a/test/lld/standalone-wasm3.wat.out b/test/lld/standalone-wasm3.wat.out
index 57e31ffb5..9f63753c5 100644
--- a/test/lld/standalone-wasm3.wat.out
+++ b/test/lld/standalone-wasm3.wat.out
@@ -1,9 +1,9 @@
(module
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
- (memory $0 2)
(global $global$0 (mut i32) (i32.const 66112))
(global $global$1 i32 (i32.const 66112))
(global $global$2 i32 (i32.const 576))
+ (memory $0 2)
(export "memory" (memory $0))
(export "__heap_base" (global $global$1))
(export "__data_end" (global $global$2))