diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dot_s/local_align.s | 26 | ||||
-rw-r--r-- | test/dot_s/local_align.wast | 14 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/dot_s/local_align.s b/test/dot_s/local_align.s new file mode 100644 index 000000000..0a8d5bc98 --- /dev/null +++ b/test/dot_s/local_align.s @@ -0,0 +1,26 @@ + .text + .file "local_align.bc" + .type foo,@function +foo: + .param i32 + .endfunc +.Lfunc_end0: + .size foo, .Lfunc_end0-foo + + .hidden main + .globl main + .type main,@function +main: + .result i32 + i32.const $push0=, buf + call foo@FUNCTION, $pop0 + i32.const $push1=, 0 + .endfunc +.Lfunc_end1: + .size main, .Lfunc_end1-main + + .type temp,@object + .lcomm temp,1,1 + + .type buf,@object + .lcomm buf,156,4 diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast new file mode 100644 index 000000000..85900cbed --- /dev/null +++ b/test/dot_s/local_align.wast @@ -0,0 +1,14 @@ +(module + (memory 1) + (export "memory" memory) + (export "main" $main) + (func $foo (param $0 i32) + ) + (func $main (result i32) + (call $foo + (i32.const 16) + ) + (i32.const 0) + ) +) +;; METADATA: { "asmConsts": {},"staticBump": 172, "initializers": [] } |