aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/mips/irix/tst/fields.sbk
blob: 482486cb565ec93e8d228dd2df52b846548e0bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
.set reorder
.globl x
.data
.align 2
x:
.word 0x1
.byte 0x2
.space 3
.byte 0x0
.byte 0x34
.space 2
.byte 0xa
.byte 0x6
.space 2
.globl i
.sdata
.align 2
i:
.word 0x10
.globl y
.sdata
.align 2
y:
.byte 0xe0
.space 3
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x9
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0x82000000,-8
.cprestore 28
sw $31,32($sp)
la $4,L.4
lw $5,x
lb $6,x+4
lw $24,x+8
sra $7,$24,20
lw $24,x+8
sll $24,$24,12
sra $24,$24,28
sw $24,16($sp)
lw $24,x+12
sll $24,$24,4
sra $24,$24,29
sw $24,20($sp)
lb $24,x+13
sw $24,24($sp)
jal printf
la $4,L.10
lw $24,y
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
lw $7,y+4
jal printf
lw $24,x+8
and $24,$24,0xfff0ffff
lw $15,i
sll $15,$15,28
sra $15,$15,28
sll $15,$15,16
and $15,$15,0xf0000
or $24,$24,$15
sw $24,x+8
lw $24,x+12
and $24,$24,0xf1ffffff
sw $24,x+12
la $4,L.4
lw $5,x
lb $6,x+4
lw $24,x+8
sra $7,$24,20
lw $24,x+8
sll $24,$24,12
sra $24,$24,28
sw $24,16($sp)
lw $24,x+12
sll $24,$24,4
sra $24,$24,29
sw $24,20($sp)
lb $24,x+13
sw $24,24($sp)
jal printf
lw $24,y
and $24,$24,0x3fffffff
or $24,$24,0x80000000
sw $24,y
lw $24,i
sw $24,y+4
la $4,L.10
lw $24,y
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
lw $7,y+4
jal printf
la $4,x
jal f2
move $2,$0
L.3:
lw $25,28($sp)
lw $31,32($sp)
addu $sp,$sp,40
j $31
.end main
.globl f1
.text
.align 2
.ent f1
f1:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
move $30,$4
lw $24,($30)
and $24,$24,0xc3ffffff
sw $24,($30)
lw $24,($30)
and $24,$24,0x3fffffff
and $15,$0,3
sll $15,$15,30
and $15,$15,0xc0000000
or $24,$24,$15
sw $24,($30)
lw $24,($30)
and $24,$24,0x3c000000
beq $24,$0,L.22
la $4,L.24
jal printf
L.22:
lw $24,($30)
or $24,$24,0xc0000000
sw $24,($30)
lw $24,($30)
or $24,$24,0x3c000000
sw $24,($30)
la $4,L.25
lw $24,($30)
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
jal printf
move $2,$0
L.21:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end f1
.globl f2
.text
.align 2
.ent f2
f2:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$4
lw $24,i
bne $24,$0,L.28
la $23,1
b L.29
L.28:
move $23,$0
L.29:
lw $24,($30)
and $24,$24,0x3fffffff
move $15,$23
and $15,$15,3
sll $15,$15,30
and $15,$15,0xc0000000
or $24,$24,$15
sw $24,($30)
move $4,$30
jal f1
lw $24,($30)
and $24,$24,0xc3ffffff
move $15,$0
and $15,$15,15
sll $15,$15,26
and $15,$15,0x3c000000
or $24,$24,$15
sw $24,($30)
move $2,$0
L.26:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end f2
.rdata
.align 0
L.25:
.byte 112
.byte 45
.byte 62
.byte 97
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 44
.byte 32
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.24:
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 33
.byte 61
.byte 32
.byte 48
.byte 33
.byte 10
.byte 0
.align 0
L.10:
.byte 121
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.4:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0