tuned the liability of the license.
[muis.git] / problems / dhrystone-stripped-ref.s
blobc72c451d1ab28953133c031d878c1c123406c2d0
1 .file 1 "debug.c"
3 # GNU C 2.7.2.3 [AL 1.1, MM 40, tma 0.1] SimpleScalar running sstrix compiled by GNU C
5 # Cc1 defaults:
6 # -mgas -mgpOPT
8 # Cc1 arguments (-G value = 8, Cpu = default, ISA = 1):
9 # -quiet -dumpbase -O0 -o
11 gcc2_compiled.:
12 __gnu_compiled_c:
13 .globl Version
14 .sdata
15 .align 2
16 Version:
17 .ascii "1.1\000"
18 .text
19 .align 2
20 .globl main
21 .sdata
22 .align 2
23 $LC0:
24 .ascii "1\000"
25 .align 2
26 $LC1:
27 .ascii "%s\000"
28 .align 2
29 $LC2:
30 .ascii "looping\000"
31 .text
32 .align 2
33 .globl Proc0
34 .align 2
35 .globl Func2
36 .align 2
37 .globl Proc6
38 .align 2
39 .globl Func3
40 .align 2
41 .globl Func1
43 .comm IntGlob,4
45 .comm BoolGlob,4
47 .comm Array1Glob,204
49 .comm Array2Glob,10404
51 .text
53 .loc 1 48
54 .ent main
55 main:
56 .frame $fp,24,$31 # vars= 0, regs= 2/0, args= 16, extra= 0
57 .mask 0xc0000000,-4
58 .fmask 0x00000000,0
59 subu $sp,$sp,24
60 sw $31,20($sp)
61 sw $fp,16($sp)
62 move $fp,$sp
63 jal __main
64 jal Proc0
65 move $4,$0
66 jal exit
67 $L1:
68 move $sp,$fp # sp not trusted here
69 lw $31,20($sp)
70 lw $fp,16($sp)
71 addu $sp,$sp,24
72 j $31
73 .end main
75 .loc 1 62
76 .ent Proc0
77 Proc0:
78 .frame $fp,104,$31 # vars= 72, regs= 3/0, args= 16, extra= 0
79 .mask 0xc0010000,-8
80 .fmask 0x00000000,0
81 subu $sp,$sp,104
82 sw $31,96($sp)
83 sw $fp,92($sp)
84 sw $16,88($sp)
85 move $fp,$sp
86 addu $2,$fp,24
87 move $4,$2
88 la $5,$LC0
89 jal strcpy
90 move $16,$0
91 $L3:
92 sltu $2,$16,50
93 bne $2,$0,$L6
94 j $L4
95 $L6:
96 la $4,$LC1
97 la $5,$LC2
98 jal printf
99 addu $2,$fp,24
100 addu $3,$fp,56
101 move $4,$2
102 move $5,$3
103 jal Func2
104 xori $3,$2,0x0000
105 sltu $2,$3,1
106 sw $2,BoolGlob
107 $L5:
108 addu $16,$16,1
109 j $L3
110 $L4:
111 $L2:
112 move $sp,$fp # sp not trusted here
113 lw $31,96($sp)
114 lw $fp,92($sp)
115 lw $16,88($sp)
116 addu $sp,$sp,104
117 j $31
118 .end Proc0
120 .loc 1 84
121 .ent Func2
122 Func2:
123 .frame $fp,32,$31 # vars= 8, regs= 2/0, args= 16, extra= 0
124 .mask 0xc0000000,-4
125 .fmask 0x00000000,0
126 subu $sp,$sp,32
127 sw $31,28($sp)
128 sw $fp,24($sp)
129 move $fp,$sp
130 sw $4,32($fp)
131 sw $5,36($fp)
132 li $2,0x00000001 # 1
133 sw $2,16($fp)
134 $L8:
135 lw $2,16($fp)
136 slt $3,$2,2
137 bne $3,$0,$L10
138 j $L9
139 $L10:
140 lw $2,32($fp)
141 lw $4,16($fp)
142 addu $3,$2,$4
143 lb $2,0($3)
144 lw $3,16($fp)
145 lw $4,36($fp)
146 addu $3,$3,$4
147 addu $4,$3,1
148 lb $3,0($4)
149 move $4,$2
150 move $5,$3
151 jal Func1
152 bne $2,$0,$L11
153 lw $3,16($fp)
154 addu $2,$3,1
155 move $3,$2
156 sw $3,16($fp)
157 $L11:
158 j $L8
159 $L9:
160 lb $2,20($fp)
161 li $3,0x00000058 # 88
162 bne $2,$3,$L12
163 li $2,0x00000001 # 1
164 j $L7
165 j $L13
166 $L12:
167 move $2,$0
168 j $L7
169 $L13:
170 $L7:
171 move $sp,$fp # sp not trusted here
172 lw $31,28($sp)
173 lw $fp,24($sp)
174 addu $sp,$sp,32
175 j $31
176 .end Func2
178 .loc 1 110
179 .ent Proc6
180 Proc6:
181 .frame $fp,8,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
182 .mask 0x40000000,-8
183 .fmask 0x00000000,0
184 subu $sp,$sp,8
185 sw $fp,0($sp)
186 move $fp,$sp
187 sw $4,8($fp)
188 sw $5,12($fp)
189 lw $2,12($fp)
190 lw $3,8($fp)
191 sw $3,0($2)
192 lw $2,8($fp)
193 sltu $3,$2,5
194 beq $3,$0,$L23
195 lw $2,8($fp)
196 move $3,$2
197 sll $2,$3,2
198 la $3,$L22
199 addu $2,$2,$3
200 lw $3,0($2)
201 j $3
202 .rdata
203 .align 3
204 .align 2
205 $L22:
206 .word $L16
207 .word $L17
208 .word $L19
209 .word $L20
210 .word $L21
211 .text
212 $L16:
213 lw $2,12($fp)
214 sw $0,0($2)
215 j $L15
216 $L17:
217 lw $2,IntGlob
218 slt $3,$2,101
219 bne $3,$0,$L18
220 lw $2,12($fp)
221 sw $0,0($2)
222 $L18:
223 $L19:
224 lw $2,12($fp)
225 li $3,0x00000001 # 1
226 sw $3,0($2)
227 j $L15
228 $L20:
229 j $L15
230 $L21:
231 lw $2,12($fp)
232 li $3,0x00000002 # 2
233 sw $3,0($2)
234 $L23:
235 $L15:
236 $L14:
237 move $sp,$fp # sp not trusted here
238 lw $fp,0($sp)
239 addu $sp,$sp,8
240 j $31
241 .end Proc6
243 .loc 1 125
244 .ent Func3
245 Func3:
246 .frame $fp,16,$31 # vars= 8, regs= 1/0, args= 0, extra= 0
247 .mask 0x40000000,-8
248 .fmask 0x00000000,0
249 subu $sp,$sp,16
250 sw $fp,8($sp)
251 move $fp,$sp
252 sw $4,16($fp)
253 lw $2,16($fp)
254 sw $2,0($fp)
255 move $2,$0
256 j $L24
257 $L24:
258 move $sp,$fp # sp not trusted here
259 lw $fp,8($sp)
260 addu $sp,$sp,16
261 j $31
262 .end Func3
264 .loc 1 134
265 .ent Func1
266 Func1:
267 .frame $fp,16,$31 # vars= 8, regs= 1/0, args= 0, extra= 0
268 .mask 0x40000000,-8
269 .fmask 0x00000000,0
270 subu $sp,$sp,16
271 sw $fp,8($sp)
272 move $fp,$sp
273 move $3,$4
274 move $4,$5
275 sb $3,0($fp)
276 sb $4,1($fp)
277 move $2,$0
278 j $L25
279 $L25:
280 move $sp,$fp # sp not trusted here
281 lw $fp,8($sp)
282 addu $sp,$sp,16
283 j $31
284 .end Func1