summaryrefslogtreecommitdiff
path: root/test/dot_s
diff options
context:
space:
mode:
Diffstat (limited to 'test/dot_s')
-rw-r--r--test/dot_s/alias.wast2
-rw-r--r--test/dot_s/alternate-lcomm.wast2
-rw-r--r--test/dot_s/asm_const.wast2
-rw-r--r--test/dot_s/basics.wast2
-rw-r--r--test/dot_s/bcp-1.wast2
-rw-r--r--test/dot_s/data-offset-folding.wast2
-rw-r--r--test/dot_s/exit.wast2
-rw-r--r--test/dot_s/function-data-sections.wast2
-rw-r--r--test/dot_s/initializers.s23
-rw-r--r--test/dot_s/initializers.wast15
-rw-r--r--test/dot_s/lcomm-in-text-segment.wast2
-rw-r--r--test/dot_s/macClangMetaData.wast2
-rw-r--r--test/dot_s/memops.wast2
-rw-r--r--test/dot_s/minimal.wast2
-rw-r--r--test/dot_s/permute.wast2
-rw-r--r--test/dot_s/relocation.wast2
-rw-r--r--test/dot_s/start_main0.wast2
-rw-r--r--test/dot_s/start_main2.wast2
-rw-r--r--test/dot_s/symbolic-offset.wast2
-rw-r--r--test/dot_s/visibilities.wast2
20 files changed, 56 insertions, 18 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast
index 451692cca..5dc2440fe 100644
--- a/test/dot_s/alias.wast
+++ b/test/dot_s/alias.wast
@@ -12,4 +12,4 @@
(return)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }
diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast
index 6a5420861..8c046c709 100644
--- a/test/dot_s/alternate-lcomm.wast
+++ b/test/dot_s/alternate-lcomm.wast
@@ -2,4 +2,4 @@
(memory 1)
(export "memory" memory)
)
-;; METADATA: { "asmConsts": {},"staticBump": 8 }
+;; METADATA: { "asmConsts": {},"staticBump": 8, "initializers": [] }
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast
index 669b097c0..b56d7da88 100644
--- a/test/dot_s/asm_const.wast
+++ b/test/dot_s/asm_const.wast
@@ -15,4 +15,4 @@
)
)
)
-;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world!\"); }", ["vi"]]},"staticBump": 50 }
+;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world!\"); }", ["vi"]]},"staticBump": 50, "initializers": [] }
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index 91620910c..4f8ee2087 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -92,4 +92,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 51 }
+;; METADATA: { "asmConsts": {},"staticBump": 51, "initializers": [] }
diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast
index 091dff695..255d40b7d 100644
--- a/test/dot_s/bcp-1.wast
+++ b/test/dot_s/bcp-1.wast
@@ -306,4 +306,4 @@
(unreachable)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 103 }
+;; METADATA: { "asmConsts": {},"staticBump": 103, "initializers": [] }
diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast
index 6047d7523..e29612b19 100644
--- a/test/dot_s/data-offset-folding.wast
+++ b/test/dot_s/data-offset-folding.wast
@@ -5,4 +5,4 @@
)
(export "memory" memory)
)
-;; METADATA: { "asmConsts": {},"staticBump": 419 }
+;; METADATA: { "asmConsts": {},"staticBump": 419, "initializers": [] }
diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast
index a0477c611..92955d997 100644
--- a/test/dot_s/exit.wast
+++ b/test/dot_s/exit.wast
@@ -11,4 +11,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }
diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast
index 6e7921673..01af72d17 100644
--- a/test/dot_s/function-data-sections.wast
+++ b/test/dot_s/function-data-sections.wast
@@ -25,4 +25,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 19 }
+;; METADATA: { "asmConsts": {},"staticBump": 19, "initializers": [] }
diff --git a/test/dot_s/initializers.s b/test/dot_s/initializers.s
new file mode 100644
index 000000000..ed4ad1cff
--- /dev/null
+++ b/test/dot_s/initializers.s
@@ -0,0 +1,23 @@
+ .text
+ .file "/tmp/tmpAEEklZ/a.out.bc"
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0:
+ i32.const $push0=, 5
+ return $pop0
+.Lfunc_end0:
+ .size main, .Lfunc_end0-main
+ .globl f2
+ .type f2,@function
+f2:
+ return
+.Lfunc_end1:
+ .size f2, .Lfunc_end1-f2
+ .section .init_array.101,"aw",@init_array
+ .p2align 2
+ .int32 main@FUNCTION
+ .section .init_array,"aw",@init_array
+ .p2align 2
+ .int32 f2@FUNCTION
diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast
new file mode 100644
index 000000000..34a4ee1e1
--- /dev/null
+++ b/test/dot_s/initializers.wast
@@ -0,0 +1,15 @@
+(module
+ (memory 0)
+ (export "memory" memory)
+ (export "main" $main)
+ (export "f2" $f2)
+ (func $main (result i32)
+ (return
+ (i32.const 5)
+ )
+ )
+ (func $f2
+ (return)
+ )
+)
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": ["main", "f2", ] }
diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast
index 5ede27c60..1ffe2b172 100644
--- a/test/dot_s/lcomm-in-text-segment.wast
+++ b/test/dot_s/lcomm-in-text-segment.wast
@@ -4,4 +4,4 @@
)
(export "memory" memory)
)
-;; METADATA: { "asmConsts": {},"staticBump": 19 }
+;; METADATA: { "asmConsts": {},"staticBump": 19, "initializers": [] }
diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast
index 5257d05d0..828c457b1 100644
--- a/test/dot_s/macClangMetaData.wast
+++ b/test/dot_s/macClangMetaData.wast
@@ -15,4 +15,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 29 }
+;; METADATA: { "asmConsts": {},"staticBump": 29, "initializers": [] }
diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast
index b7a32aa0d..14090d602 100644
--- a/test/dot_s/memops.wast
+++ b/test/dot_s/memops.wast
@@ -205,4 +205,4 @@
)
)
)
-;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }", ["vi"]]},"staticBump": 66 }
+;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }", ["vi"]]},"staticBump": 66, "initializers": [] }
diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast
index 2e456e617..16bfec364 100644
--- a/test/dot_s/minimal.wast
+++ b/test/dot_s/minimal.wast
@@ -8,4 +8,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }
diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast
index 57fe2c468..74decd3bf 100644
--- a/test/dot_s/permute.wast
+++ b/test/dot_s/permute.wast
@@ -4,4 +4,4 @@
)
(export "memory" memory)
)
-;; METADATA: { "asmConsts": {},"staticBump": 271 }
+;; METADATA: { "asmConsts": {},"staticBump": 271, "initializers": [] }
diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast
index c985ff186..17d5345e9 100644
--- a/test/dot_s/relocation.wast
+++ b/test/dot_s/relocation.wast
@@ -14,4 +14,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 15 }
+;; METADATA: { "asmConsts": {},"staticBump": 15, "initializers": [] }
diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast
index 04fcb858c..4336fa530 100644
--- a/test/dot_s/start_main0.wast
+++ b/test/dot_s/start_main0.wast
@@ -10,4 +10,4 @@
(call $main)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }
diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast
index 5dadb8b6e..bf6a5296e 100644
--- a/test/dot_s/start_main2.wast
+++ b/test/dot_s/start_main2.wast
@@ -18,4 +18,4 @@
)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }
diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast
index 9fc46e4c5..ede3ffead 100644
--- a/test/dot_s/symbolic-offset.wast
+++ b/test/dot_s/symbolic-offset.wast
@@ -12,4 +12,4 @@
(return)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 19 }
+;; METADATA: { "asmConsts": {},"staticBump": 19, "initializers": [] }
diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast
index 7d420d9fd..5c0cd2f7a 100644
--- a/test/dot_s/visibilities.wast
+++ b/test/dot_s/visibilities.wast
@@ -14,4 +14,4 @@
(return)
)
)
-;; METADATA: { "asmConsts": {},"staticBump": 4 }
+;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] }