-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinst_gen.go
688 lines (565 loc) · 23 KB
/
inst_gen.go
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
package mimic
// Code generated by 'go run inst_gen.go | gofmt > inst.go' DO NOT EDIT
import "github.com/cilium/ebpf/asm"
func instALU32AddIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)+uint32(i.Constant)))
}
func instALU64AddIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst+uint64(i.Constant))
}
func instALU32AddReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)+uint32(src)))
}
func instALU64AddReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst+src)
}
func instALU32SubIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)-uint32(i.Constant)))
}
func instALU64SubIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst-uint64(i.Constant))
}
func instALU32SubReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)-uint32(src)))
}
func instALU64SubReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst-src)
}
func instALU32MulIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)*uint32(i.Constant)))
}
func instALU64MulIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst*uint64(i.Constant))
}
func instALU32MulReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)*uint32(src)))
}
func instALU64MulReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst*src)
}
func instALU32DivIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)/uint32(i.Constant)))
}
func instALU64DivIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst/uint64(i.Constant))
}
func instALU32DivReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)/uint32(src)))
}
func instALU64DivReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst/src)
}
func instALU32OrIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)|uint32(i.Constant)))
}
func instALU64OrIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst|uint64(i.Constant))
}
func instALU32OrReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)|uint32(src)))
}
func instALU64OrReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst|src)
}
func instALU32AndIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)&uint32(i.Constant)))
}
func instALU64AndIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst&uint64(i.Constant))
}
func instALU32AndReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)&uint32(src)))
}
func instALU64AndReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst&src)
}
func instALU32LShIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)<<uint32(i.Constant)))
}
func instALU64LShIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst<<uint64(i.Constant))
}
func instALU32LShReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)<<uint32(src)))
}
func instALU64LShReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst<<src)
}
func instALU32RShIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)>>uint32(i.Constant)))
}
func instALU64RShIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst>>uint64(i.Constant))
}
func instALU32RShReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)>>uint32(src)))
}
func instALU64RShReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst>>src)
}
func instALU32ModIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)%uint32(i.Constant)))
}
func instALU64ModIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst%uint64(i.Constant))
}
func instALU32ModReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)%uint32(src)))
}
func instALU64ModReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst%src)
}
func instALU32XorIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, uint64(uint32(dst)^uint32(i.Constant)))
}
func instALU64XorIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
return process.Registers.Set(i.Dst, dst^uint64(i.Constant))
}
func instALU32XorReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, uint64(uint32(dst)^uint32(src)))
}
func instALU64XorReg(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
src := process.Registers.Get(i.Src)
return process.Registers.Set(i.Dst, dst^src)
}
func instJump32JEqIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) == uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JEqIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst == uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JEqReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) == uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JEqReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst == src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JGTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) > uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JGTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst > uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JGTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) > uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JGTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst > src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JGEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) >= uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JGEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst >= uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JGEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) >= uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JGEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst >= src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JNEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) != uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JNEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst != uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JNEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) != uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JNEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst != src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSGTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int32(dst) > int32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSGTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int64(dst) > int64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSGTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int32(dst) > int32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSGTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int64(dst) > int64(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSGEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int32(dst) >= int32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSGEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int64(dst) >= int64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSGEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int32(dst) >= int32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSGEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int64(dst) >= int64(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JLTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) < uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JLTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst < uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JLTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) < uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JLTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst < src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JLEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if uint32(dst) <= uint32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JLEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if dst <= uint64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JLEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if uint32(dst) <= uint32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JLEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if dst <= src {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSLTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int32(dst) < int32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSLTIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int64(dst) < int64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSLTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int32(dst) < int32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSLTReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int64(dst) < int64(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSLEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int32(dst) <= int32(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSLEIMM(i asm.Instruction, process *Process) error {
dst := process.Registers.Get(i.Dst)
if int64(dst) <= int64(i.Constant) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump32JSLEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int32(dst) <= int32(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func instJump64JSLEReg(i asm.Instruction, process *Process) error {
src := process.Registers.Get(i.Src)
dst := process.Registers.Get(i.Dst)
if int64(dst) <= int64(src) {
process.Registers.PC += int(i.Offset)
}
return nil
}
func initGen() {
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Add)] = instALU32AddIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Add)] = instALU64AddIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Add)|asm.OpCode(asm.RegSource)] = instALU32AddReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Add)|asm.OpCode(asm.RegSource)] = instALU64AddReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Sub)] = instALU32SubIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JEq)] = instJump64JEqIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JEq)] = instJump32JEqIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Sub)] = instALU64SubIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Sub)|asm.OpCode(asm.RegSource)] = instALU32SubReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JEq)|asm.OpCode(asm.RegSource)] = instJump64JEqReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JEq)|asm.OpCode(asm.RegSource)] = instJump32JEqReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Sub)|asm.OpCode(asm.RegSource)] = instALU64SubReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Mul)] = instALU32MulIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JGT)] = instJump64JGTIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JGT)] = instJump32JGTIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Mul)] = instALU64MulIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Mul)|asm.OpCode(asm.RegSource)] = instALU32MulReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JGT)|asm.OpCode(asm.RegSource)] = instJump64JGTReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JGT)|asm.OpCode(asm.RegSource)] = instJump32JGTReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Mul)|asm.OpCode(asm.RegSource)] = instALU64MulReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Div)] = instALU32DivIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JGE)] = instJump64JGEIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JGE)] = instJump32JGEIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Div)] = instALU64DivIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Div)|asm.OpCode(asm.RegSource)] = instALU32DivReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JGE)|asm.OpCode(asm.RegSource)] = instJump64JGEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JGE)|asm.OpCode(asm.RegSource)] = instJump32JGEReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Div)|asm.OpCode(asm.RegSource)] = instALU64DivReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Or)] = instALU32OrIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Or)] = instALU64OrIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Or)|asm.OpCode(asm.RegSource)] = instALU32OrReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Or)|asm.OpCode(asm.RegSource)] = instALU64OrReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.And)] = instALU32AndIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JNE)] = instJump64JNEIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JNE)] = instJump32JNEIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.And)] = instALU64AndIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.And)|asm.OpCode(asm.RegSource)] = instALU32AndReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JNE)|asm.OpCode(asm.RegSource)] = instJump64JNEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JNE)|asm.OpCode(asm.RegSource)] = instJump32JNEReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.And)|asm.OpCode(asm.RegSource)] = instALU64AndReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.LSh)] = instALU32LShIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSGT)] = instJump64JSGTIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JSGT)] = instJump32JSGTIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.LSh)] = instALU64LShIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.LSh)|asm.OpCode(asm.RegSource)] = instALU32LShReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JSGT)|asm.OpCode(asm.RegSource)] = instJump64JSGTReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSGT)|asm.OpCode(asm.RegSource)] = instJump32JSGTReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.LSh)|asm.OpCode(asm.RegSource)] = instALU64LShReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.RSh)] = instALU32RShIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSGE)] = instJump64JSGEIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JSGE)] = instJump32JSGEIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.RSh)] = instALU64RShIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.RSh)|asm.OpCode(asm.RegSource)] = instALU32RShReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JSGE)|asm.OpCode(asm.RegSource)] = instJump64JSGEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSGE)|asm.OpCode(asm.RegSource)] = instJump32JSGEReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.RSh)|asm.OpCode(asm.RegSource)] = instALU64RShReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Mod)] = instALU32ModIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Mod)] = instALU64ModIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Mod)|asm.OpCode(asm.RegSource)] = instALU32ModReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Mod)|asm.OpCode(asm.RegSource)] = instALU64ModReg
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Xor)] = instALU32XorIMM
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JLT)] = instJump64JLTIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JLT)] = instJump32JLTIMM
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Xor)] = instALU64XorIMM
instructions[asm.OpCode(asm.ALUClass).SetALUOp(asm.Xor)|asm.OpCode(asm.RegSource)] = instALU32XorReg
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JLT)|asm.OpCode(asm.RegSource)] = instJump64JLTReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JLT)|asm.OpCode(asm.RegSource)] = instJump32JLTReg
instructions[asm.OpCode(asm.ALU64Class).SetALUOp(asm.Xor)|asm.OpCode(asm.RegSource)] = instALU64XorReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JLE)] = instJump64JLEIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JLE)] = instJump32JLEIMM
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JLE)|asm.OpCode(asm.RegSource)] = instJump64JLEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JLE)|asm.OpCode(asm.RegSource)] = instJump32JLEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSLT)] = instJump64JSLTIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JSLT)] = instJump32JSLTIMM
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JSLT)|asm.OpCode(asm.RegSource)] = instJump64JSLTReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSLT)|asm.OpCode(asm.RegSource)] = instJump32JSLTReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSLE)] = instJump64JSLEIMM
instructions[asm.OpCode(asm.Jump32Class).SetJumpOp(asm.JSLE)] = instJump32JSLEIMM
instructions[asm.OpCode(asm.ALU64Class).SetJumpOp(asm.JSLE)|asm.OpCode(asm.RegSource)] = instJump64JSLEReg
instructions[asm.OpCode(asm.JumpClass).SetJumpOp(asm.JSLE)|asm.OpCode(asm.RegSource)] = instJump32JSLEReg
}