]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | .text |
2 | .file "980605-1.c" | |
3 | .section .text.f2,"ax",@progbits | |
4 | .hidden f2 # -- Begin function f2 | |
5 | .globl f2 | |
6 | .type f2,@function | |
7 | f2: # @f2 | |
8 | .param f64 | |
9 | .result i32 | |
10 | .local i32 | |
11 | # BB#0: # %entry | |
12 | i32.const $push0=, 0 | |
13 | i32.const $push11=, 0 | |
14 | i32.load $push10=, x($pop11) | |
15 | tee_local $push9=, $1=, $pop10 | |
16 | i32.const $push1=, 10 | |
17 | i32.add $push2=, $pop9, $pop1 | |
18 | i32.store x($pop0), $pop2 | |
19 | i32.trunc_u/f64 $push4=, $0 | |
20 | i32.const $push8=, 10 | |
21 | i32.mul $push3=, $1, $pop8 | |
22 | i32.add $push5=, $pop4, $pop3 | |
23 | i32.const $push6=, 45 | |
24 | i32.add $push7=, $pop5, $pop6 | |
25 | # fallthrough-return: $pop7 | |
26 | .endfunc | |
27 | .Lfunc_end0: | |
28 | .size f2, .Lfunc_end0-f2 | |
29 | # -- End function | |
30 | .section .text.getval,"ax",@progbits | |
31 | .hidden getval # -- Begin function getval | |
32 | .globl getval | |
33 | .type getval,@function | |
34 | getval: # @getval | |
35 | .result i32 | |
36 | .local i32 | |
37 | # BB#0: # %entry | |
38 | i32.const $push0=, 0 | |
39 | i32.const $push5=, 0 | |
40 | i32.load $push4=, x($pop5) | |
41 | tee_local $push3=, $0=, $pop4 | |
42 | i32.const $push1=, 1 | |
43 | i32.add $push2=, $pop3, $pop1 | |
44 | i32.store x($pop0), $pop2 | |
45 | copy_local $push6=, $0 | |
46 | # fallthrough-return: $pop6 | |
47 | .endfunc | |
48 | .Lfunc_end1: | |
49 | .size getval, .Lfunc_end1-getval | |
50 | # -- End function | |
51 | .section .text.f,"ax",@progbits | |
52 | .hidden f # -- Begin function f | |
53 | .globl f | |
54 | .type f,@function | |
55 | f: # @f | |
56 | .local i32, i32 | |
57 | # BB#0: # %entry | |
58 | i32.const $push12=, 0 | |
59 | i32.const $push10=, 0 | |
60 | i32.load $push9=, __stack_pointer($pop10) | |
61 | i32.const $push11=, 16 | |
62 | i32.sub $push23=, $pop9, $pop11 | |
63 | tee_local $push22=, $1=, $pop23 | |
64 | i32.store __stack_pointer($pop12), $pop22 | |
65 | i32.const $push0=, 0 | |
66 | i32.const $push21=, 0 | |
67 | i32.load $push20=, x($pop21) | |
68 | tee_local $push19=, $0=, $pop20 | |
69 | i32.const $push1=, 20 | |
70 | i32.add $push2=, $pop19, $pop1 | |
71 | i32.store x($pop0), $pop2 | |
72 | i32.const $push18=, 20 | |
73 | i32.mul $push3=, $0, $pop18 | |
74 | i32.const $push4=, 207 | |
75 | i32.add $push17=, $pop3, $pop4 | |
76 | tee_local $push16=, $0=, $pop17 | |
77 | i32.store 0($1), $pop16 | |
78 | i32.const $push6=, buf | |
79 | i32.const $push5=, .L.str | |
80 | i32.call $drop=, sprintf@FUNCTION, $pop6, $pop5, $1 | |
81 | block | |
82 | i32.const $push7=, 227 | |
83 | i32.ne $push8=, $0, $pop7 | |
84 | br_if 0, $pop8 # 0: down to label0 | |
85 | # BB#1: # %if.end | |
86 | i32.const $push15=, 0 | |
87 | i32.const $push13=, 16 | |
88 | i32.add $push14=, $1, $pop13 | |
89 | i32.store __stack_pointer($pop15), $pop14 | |
90 | return | |
91 | .LBB2_2: # %if.then | |
92 | end_block # label0: | |
93 | call abort@FUNCTION | |
94 | unreachable | |
95 | .endfunc | |
96 | .Lfunc_end2: | |
97 | .size f, .Lfunc_end2-f | |
98 | # -- End function | |
99 | .section .text.main,"ax",@progbits | |
100 | .hidden main # -- Begin function main | |
101 | .globl main | |
102 | .type main,@function | |
103 | main: # @main | |
104 | .result i32 | |
105 | # BB#0: # %entry | |
106 | call f@FUNCTION | |
107 | i32.const $push0=, 0 | |
108 | call exit@FUNCTION, $pop0 | |
109 | unreachable | |
110 | .endfunc | |
111 | .Lfunc_end3: | |
112 | .size main, .Lfunc_end3-main | |
113 | # -- End function | |
114 | .hidden x # @x | |
115 | .type x,@object | |
116 | .section .data.x,"aw",@progbits | |
117 | .globl x | |
118 | .p2align 2 | |
119 | x: | |
120 | .int32 1 # 0x1 | |
121 | .size x, 4 | |
122 | ||
123 | .hidden buf # @buf | |
124 | .type buf,@object | |
125 | .section .bss.buf,"aw",@nobits | |
126 | .globl buf | |
127 | buf: | |
128 | .skip 10 | |
129 | .size buf, 10 | |
130 | ||
131 | .type .L.str,@object # @.str | |
132 | .section .rodata.str1.1,"aMS",@progbits,1 | |
133 | .L.str: | |
134 | .asciz "%d\n" | |
135 | .size .L.str, 4 | |
136 | ||
137 | ||
138 | .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)" | |
139 | .functype sprintf, i32, i32, i32 | |
140 | .functype abort, void | |
141 | .functype exit, void, i32 |