]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/dot_s/memops.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / dot_s / memops.s
1 .text
2 .file "/tmp/tmpG0LbqO/a.out.bc"
3 .type _Z6reporti,@function
4 _Z6reporti: # @_Z6reporti
5 .param i32
6 # BB#0:
7 i32.const $push0=, 8
8 i32.store 0($pop0), $0
9 i32.const $push1=, .str
10 call emscripten_asm_const@FUNCTION, $pop1
11 return
12 .endfunc
13 .Lfunc_end0:
14 .size _Z6reporti, .Lfunc_end0-_Z6reporti
15
16 .globl main
17 .type main,@function
18 main: # @main
19 .result i32
20 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # XXX this was 1 short in the backend output, an extra one was added manually
21 # BB#0:
22 i32.const $7=, 0
23 i32.load $7=, 0($7)
24 i32.const $8=, 1048576
25 i32.sub $12=, $7, $8
26 i32.const $8=, 0
27 i32.store 0($8), $12
28 i32.const $1=, 0
29 copy_local $0=, $1
30 copy_local $6=, $1
31 .LBB1_1: # %.preheader1
32 # =>This Loop Header: Depth=1
33 # Child Loop .LBB1_2 Depth 2
34 # Child Loop .LBB1_3 Depth 2
35 block
36 loop .LBB1_5
37 copy_local $4=, $1
38 .LBB1_2: # Parent Loop .LBB1_1 Depth=1
39 # => This Inner Loop Header: Depth=2
40 block
41 loop
42 i32.const $10=, 0
43 i32.add $10=, $12, $10
44 i32.add $push1=, $10, $4
45 i32.add $push0=, $6, $4
46 i32.store8 0($pop1), $pop0
47 i32.const $2=, 1
48 i32.add $4=, $4, $2
49 i32.const $3=, 1048576
50 i32.ne $push2=, $4, $3
51 copy_local $5=, $1
52 br_if 0, $pop2
53 end_loop
54 end_block
55 block
56 loop
57 i32.const $11=, 0
58 i32.add $11=, $12, $11
59 i32.add $push3=, $11, $5
60 i32.load8_u $push4=, 0($pop3)
61 i32.and $push5=, $pop4, $2
62 i32.add $6=, $pop5, $6
63 i32.add $5=, $5, $2
64 i32.ne $push6=, $5, $3
65 br_if 0, $pop6
66 end_loop
67 end_block
68 i32.const $push7=, 3
69 i32.mul $push8=, $6, $pop7
70 i32.const $push9=, 5
71 i32.div_s $push10=, $6, $pop9
72 i32.add $push11=, $pop8, $pop10
73 i32.const $push12=, 17
74 i32.add $push13=, $pop11, $pop12
75 i32.const $push14=, 65535
76 i32.and $6=, $pop13, $pop14
77 i32.add $0=, $0, $2
78 i32.const $push15=, 100
79 i32.ne $push16=, $0, $pop15
80 br_if 0, $pop16
81 end_loop
82 end_block
83 call _Z6reporti@FUNCTION, $6
84 i32.const $push17=, 0
85 i32.const $9=, 1048576
86 i32.add $12=, $12, $9
87 i32.const $9=, 0
88 i32.store 0($9), $12
89 return $pop17
90 .endfunc
91 .Lfunc_end1:
92 .size main, .Lfunc_end1-main
93
94 .type .str,@object # @.str
95 .data
96 .str:
97 .asciz "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }"
98 .size .str, 51
99
100