diff options
Diffstat (limited to 'test/dot_s/asm_const.s')
-rw-r--r-- | test/dot_s/asm_const.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/dot_s/asm_const.s b/test/dot_s/asm_const.s new file mode 100644 index 000000000..39df173c4 --- /dev/null +++ b/test/dot_s/asm_const.s @@ -0,0 +1,23 @@ + .text + .file "/tmp/tmpkxUaTH/a.out.bc" + .globl main + .type main,@function +main: # @main + .result i32 +# BB#0: + i32.const $push0=, .str + call emscripten_asm_const, $pop0 + i32.const $push1=, 0 + return $pop1 +func_end0: + .size main, func_end0-main + + .type .str,@object # @.str + .data +.str: + .asciz "{ Module.print(\"hello, world!\"); }" + .size .str, 35 + + + .imports + .import emscripten_asm_const "" emscripten_asm_const (param i32) |