aboutsummaryrefslogtreecommitdiffhomepage
path: root/problems/15-Contains/01.vsm
blob: 53a55bbb0c92fae096f5e40d020754c54fd09a49 (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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# 16.times do |i|
#   j = i * 2
#   puts "lxor  $lm#{j} $ln0v $lr#{i * 32 + 0}v"
#   puts "lxor  $lm#{j} $ln8v $nowrite"
#   puts "ulmin $aluf $lr#{i * 32 + 0}v $lr#{i * 32 + 8}v"
#   puts "lxor  $lm#{j} $ln16v $lr#{i * 32 + 16}v"
#   puts "lxor  $lm#{j} $ln24v $nowrite"
#   puts "ulmin $aluf $lr#{i * 32 + 16}v $nowrite"
#   puts "ulmin $aluf $lr#{i * 32 + 8}v $nowrite"
#   puts "l1bmrland $aluf $lbi"
#   puts "l1bmm $lbi $lr#{i * 32 + 0}v"
#   puts "msr $lbf $lr#{i * 32 + 8}v"
#   puts "msr $aluf $lr#{i * 32 + 16}v"
#   puts "msr $aluf $lr#{i * 32 + 24}v"
#   puts "lpassa $llr#{i * 32 + 0}v $llm32v"
#   puts "lpassa $llr#{i * 32 + 16}v $llm48v"
#   puts "lpackbit $mabid $ls0 $t"
#   puts "nop"
#   puts "l1bmrland $lmt32 $lbi"
#   puts "l1bmm $lbi $ls#{j + 32}"
#   puts
# end
# (16 / 4).times do |i|
#   j = i * 8
#   puts "llnot $ls#{j + 32}v $ln#{j + 32}v"
# end

lxor  $lm0 $ln0v $lr0v
lxor  $lm0 $ln8v $nowrite
ulmin $aluf $lr0v $lr8v
lxor  $lm0 $ln16v $lr16v
lxor  $lm0 $ln24v $nowrite
ulmin $aluf $lr16v $nowrite
ulmin $aluf $lr8v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr0v
msr $lbf $lr8v
msr $aluf $lr16v
msr $aluf $lr24v
lpassa $llr0v $llm32v
lpassa $llr16v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls32

lxor  $lm2 $ln0v $lr32v
lxor  $lm2 $ln8v $nowrite
ulmin $aluf $lr32v $lr40v
lxor  $lm2 $ln16v $lr48v
lxor  $lm2 $ln24v $nowrite
ulmin $aluf $lr48v $nowrite
ulmin $aluf $lr40v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr32v
msr $lbf $lr40v
msr $aluf $lr48v
msr $aluf $lr56v
lpassa $llr32v $llm32v
lpassa $llr48v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls34

lxor  $lm4 $ln0v $lr64v
lxor  $lm4 $ln8v $nowrite
ulmin $aluf $lr64v $lr72v
lxor  $lm4 $ln16v $lr80v
lxor  $lm4 $ln24v $nowrite
ulmin $aluf $lr80v $nowrite
ulmin $aluf $lr72v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr64v
msr $lbf $lr72v
msr $aluf $lr80v
msr $aluf $lr88v
lpassa $llr64v $llm32v
lpassa $llr80v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls36

lxor  $lm6 $ln0v $lr96v
lxor  $lm6 $ln8v $nowrite
ulmin $aluf $lr96v $lr104v
lxor  $lm6 $ln16v $lr112v
lxor  $lm6 $ln24v $nowrite
ulmin $aluf $lr112v $nowrite
ulmin $aluf $lr104v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr96v
msr $lbf $lr104v
msr $aluf $lr112v
msr $aluf $lr120v
lpassa $llr96v $llm32v
lpassa $llr112v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls38

lxor  $lm8 $ln0v $lr128v
lxor  $lm8 $ln8v $nowrite
ulmin $aluf $lr128v $lr136v
lxor  $lm8 $ln16v $lr144v
lxor  $lm8 $ln24v $nowrite
ulmin $aluf $lr144v $nowrite
ulmin $aluf $lr136v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr128v
msr $lbf $lr136v
msr $aluf $lr144v
msr $aluf $lr152v
lpassa $llr128v $llm32v
lpassa $llr144v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls40

lxor  $lm10 $ln0v $lr160v
lxor  $lm10 $ln8v $nowrite
ulmin $aluf $lr160v $lr168v
lxor  $lm10 $ln16v $lr176v
lxor  $lm10 $ln24v $nowrite
ulmin $aluf $lr176v $nowrite
ulmin $aluf $lr168v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr160v
msr $lbf $lr168v
msr $aluf $lr176v
msr $aluf $lr184v
lpassa $llr160v $llm32v
lpassa $llr176v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls42

lxor  $lm12 $ln0v $lr192v
lxor  $lm12 $ln8v $nowrite
ulmin $aluf $lr192v $lr200v
lxor  $lm12 $ln16v $lr208v
lxor  $lm12 $ln24v $nowrite
ulmin $aluf $lr208v $nowrite
ulmin $aluf $lr200v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr192v
msr $lbf $lr200v
msr $aluf $lr208v
msr $aluf $lr216v
lpassa $llr192v $llm32v
lpassa $llr208v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls44

lxor  $lm14 $ln0v $lr224v
lxor  $lm14 $ln8v $nowrite
ulmin $aluf $lr224v $lr232v
lxor  $lm14 $ln16v $lr240v
lxor  $lm14 $ln24v $nowrite
ulmin $aluf $lr240v $nowrite
ulmin $aluf $lr232v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr224v
msr $lbf $lr232v
msr $aluf $lr240v
msr $aluf $lr248v
lpassa $llr224v $llm32v
lpassa $llr240v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls46

lxor  $lm16 $ln0v $lr256v
lxor  $lm16 $ln8v $nowrite
ulmin $aluf $lr256v $lr264v
lxor  $lm16 $ln16v $lr272v
lxor  $lm16 $ln24v $nowrite
ulmin $aluf $lr272v $nowrite
ulmin $aluf $lr264v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr256v
msr $lbf $lr264v
msr $aluf $lr272v
msr $aluf $lr280v
lpassa $llr256v $llm32v
lpassa $llr272v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls48

lxor  $lm18 $ln0v $lr288v
lxor  $lm18 $ln8v $nowrite
ulmin $aluf $lr288v $lr296v
lxor  $lm18 $ln16v $lr304v
lxor  $lm18 $ln24v $nowrite
ulmin $aluf $lr304v $nowrite
ulmin $aluf $lr296v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr288v
msr $lbf $lr296v
msr $aluf $lr304v
msr $aluf $lr312v
lpassa $llr288v $llm32v
lpassa $llr304v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls50

lxor  $lm20 $ln0v $lr320v
lxor  $lm20 $ln8v $nowrite
ulmin $aluf $lr320v $lr328v
lxor  $lm20 $ln16v $lr336v
lxor  $lm20 $ln24v $nowrite
ulmin $aluf $lr336v $nowrite
ulmin $aluf $lr328v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr320v
msr $lbf $lr328v
msr $aluf $lr336v
msr $aluf $lr344v
lpassa $llr320v $llm32v
lpassa $llr336v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls52

lxor  $lm22 $ln0v $lr352v
lxor  $lm22 $ln8v $nowrite
ulmin $aluf $lr352v $lr360v
lxor  $lm22 $ln16v $lr368v
lxor  $lm22 $ln24v $nowrite
ulmin $aluf $lr368v $nowrite
ulmin $aluf $lr360v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr352v
msr $lbf $lr360v
msr $aluf $lr368v
msr $aluf $lr376v
lpassa $llr352v $llm32v
lpassa $llr368v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls54

lxor  $lm24 $ln0v $lr384v
lxor  $lm24 $ln8v $nowrite
ulmin $aluf $lr384v $lr392v
lxor  $lm24 $ln16v $lr400v
lxor  $lm24 $ln24v $nowrite
ulmin $aluf $lr400v $nowrite
ulmin $aluf $lr392v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr384v
msr $lbf $lr392v
msr $aluf $lr400v
msr $aluf $lr408v
lpassa $llr384v $llm32v
lpassa $llr400v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls56

lxor  $lm26 $ln0v $lr416v
lxor  $lm26 $ln8v $nowrite
ulmin $aluf $lr416v $lr424v
lxor  $lm26 $ln16v $lr432v
lxor  $lm26 $ln24v $nowrite
ulmin $aluf $lr432v $nowrite
ulmin $aluf $lr424v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr416v
msr $lbf $lr424v
msr $aluf $lr432v
msr $aluf $lr440v
lpassa $llr416v $llm32v
lpassa $llr432v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls58

lxor  $lm28 $ln0v $lr448v
lxor  $lm28 $ln8v $nowrite
ulmin $aluf $lr448v $lr456v
lxor  $lm28 $ln16v $lr464v
lxor  $lm28 $ln24v $nowrite
ulmin $aluf $lr464v $nowrite
ulmin $aluf $lr456v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr448v
msr $lbf $lr456v
msr $aluf $lr464v
msr $aluf $lr472v
lpassa $llr448v $llm32v
lpassa $llr464v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls60

lxor  $lm30 $ln0v $lr480v
lxor  $lm30 $ln8v $nowrite
ulmin $aluf $lr480v $lr488v
lxor  $lm30 $ln16v $lr496v
lxor  $lm30 $ln24v $nowrite
ulmin $aluf $lr496v $nowrite
ulmin $aluf $lr488v $nowrite
l1bmrland $aluf $lbi
l1bmm $lbi $lr480v
msr $lbf $lr488v
msr $aluf $lr496v
msr $aluf $lr504v
lpassa $llr480v $llm32v
lpassa $llr496v $llm48v
lpackbit $mabid $ls0 $t
nop
l1bmrland $lmt32 $lbi
l1bmm $lbi $ls62

llnot $ls32v $ln32v
llnot $ls40v $ln40v
llnot $ls48v $ln48v
llnot $ls56v $ln56v