-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathexample.c
1439 lines (1409 loc) · 42.8 KB
/
example.c
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
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <stdio.h>
#include <stdlib.h>
#include "source/armadillo.h"
#include "source/strext.h"
static const char *AD_INSTR_TABLE[] = {
"AD_INSTR_ADC",
"AD_INSTR_ADCS",
"AD_INSTR_ADD",
"AD_INSTR_ADDG",
"AD_INSTR_ADDS",
"AD_INSTR_ADR",
"AD_INSTR_ADRP",
"AD_INSTR_AND",
"AD_INSTR_ANDS",
"AD_INSTR_ASR",
"AD_INSTR_ASRV",
"AD_INSTR_AT",
"AD_INSTR_AUTDA",
"AD_INSTR_AUTDZA",
"AD_INSTR_AUTDB",
"AD_INSTR_AUTDZB",
"AD_INSTR_AUTIA",
"AD_INSTR_AUTIZA",
"AD_INSTR_AUTIA1716",
"AD_INSTR_AUTIASP",
"AD_INSTR_AUTIAZ",
"AD_INSTR_AUTIB",
"AD_INSTR_AUTIZB",
"AD_INSTR_AUTIB1716",
"AD_INSTR_AUTIBSP",
"AD_INSTR_AUTIBZ",
"AD_INSTR_AXFLAG",
"AD_INSTR_ARM_DDI",
"AD_INSTR_B",
"AD_INSTR_BFC",
"AD_INSTR_BFI",
"AD_INSTR_BFM",
"AD_INSTR_BFXIL",
"AD_INSTR_BIC",
"AD_INSTR_BICS",
"AD_INSTR_BL",
"AD_INSTR_BLR",
"AD_INSTR_BLRAAZ",
"AD_INSTR_BLRAA",
"AD_INSTR_BLRABZ",
"AD_INSTR_BLRAB",
"AD_INSTR_BR",
"AD_INSTR_BRAAZ",
"AD_INSTR_BRAA",
"AD_INSTR_BRABZ",
"AD_INSTR_BRAB",
"AD_INSTR_BRK",
"AD_INSTR_BTI",
"AD_INSTR_CASAB",
"AD_INSTR_CASALB",
"AD_INSTR_CASB",
"AD_INSTR_CASLB",
"AD_INSTR_CASAH",
"AD_INSTR_CASALH",
"AD_INSTR_CASH",
"AD_INSTR_CASLH",
"AD_INSTR_CASP",
"AD_INSTR_CASPA",
"AD_INSTR_CASPAL",
"AD_INSTR_CASPL",
"AD_INSTR_CAS",
"AD_INSTR_CASA",
"AD_INSTR_CASAL",
"AD_INSTR_CASL",
"AD_INSTR_CBNZ",
"AD_INSTR_CBZ",
"AD_INSTR_CCMN",
"AD_INSTR_CCMP",
"AD_INSTR_CFINV",
"AD_INSTR_CFP",
"AD_INSTR_CINC",
"AD_INSTR_CINV",
"AD_INSTR_CLREX",
"AD_INSTR_CLS",
"AD_INSTR_CLZ",
"AD_INSTR_CMN",
"AD_INSTR_CMP",
"AD_INSTR_CMPP",
"AD_INSTR_CNEG",
"AD_INSTR_CPP",
"AD_INSTR_CRC32B",
"AD_INSTR_CRC32H",
"AD_INSTR_CRC32W",
"AD_INSTR_CRC32X",
"AD_INSTR_CRC32CB",
"AD_INSTR_CRC32CH",
"AD_INSTR_CRC32CW",
"AD_INSTR_CRC32CX",
"AD_INSTR_CSDB",
"AD_INSTR_CSEL",
"AD_INSTR_CSET",
"AD_INSTR_CSETM",
"AD_INSTR_CSINC",
"AD_INSTR_CSINV",
"AD_INSTR_CSNEG",
"AD_INSTR_DC",
"AD_INSTR_DCPS1",
"AD_INSTR_DCPS2",
"AD_INSTR_DCPS3",
"AD_INSTR_DMB",
"AD_INSTR_DRPS",
"AD_INSTR_DSB",
"AD_INSTR_DVP",
"AD_INSTR_EON",
"AD_INSTR_EOR",
"AD_INSTR_ERET",
"AD_INSTR_ERETAA",
"AD_INSTR_ERETAB",
"AD_INSTR_ESB",
"AD_INSTR_EXTR",
"AD_INSTR_GMI",
"AD_INSTR_HINT",
"AD_INSTR_HLT",
"AD_INSTR_HVC",
"AD_INSTR_IC",
"AD_INSTR_IRG",
"AD_INSTR_ISB",
"AD_INSTR_LDADDAB",
"AD_INSTR_LDADDALB",
"AD_INSTR_LDADDB",
"AD_INSTR_LDADDLB",
"AD_INSTR_LDADDAH",
"AD_INSTR_LDADDALH",
"AD_INSTR_LDADDH",
"AD_INSTR_LDADDLH",
"AD_INSTR_LDADD",
"AD_INSTR_LDADDA",
"AD_INSTR_LDADDAL",
"AD_INSTR_LDADDL",
"AD_INSTR_LDAPR",
"AD_INSTR_LDAPRB",
"AD_INSTR_LDAPRH",
"AD_INSTR_LDAPUR",
"AD_INSTR_LDAPURB",
"AD_INSTR_LDAPURH",
"AD_INSTR_LDAPURSB",
"AD_INSTR_LDAPURSH",
"AD_INSTR_LDAPURSW",
"AD_INSTR_LDAR",
"AD_INSTR_LDARB",
"AD_INSTR_LDARH",
"AD_INSTR_LDAXP",
"AD_INSTR_LDAXR",
"AD_INSTR_LDAXRB",
"AD_INSTR_LDAXRH",
"AD_INSTR_LDCLRAB",
"AD_INSTR_LDCLRALB",
"AD_INSTR_LDCLRB",
"AD_INSTR_LDCLRLB",
"AD_INSTR_LDCLRAH",
"AD_INSTR_LDCLRALH",
"AD_INSTR_LDCLRH",
"AD_INSTR_LDCLRLH",
"AD_INSTR_LDCLR",
"AD_INSTR_LDCLRA",
"AD_INSTR_LDCLRAL",
"AD_INSTR_LDCLRL",
"AD_INSTR_LDEORAB",
"AD_INSTR_LDEORALB",
"AD_INSTR_LDEORB",
"AD_INSTR_LDEORLB",
"AD_INSTR_LDEORAH",
"AD_INSTR_LDEORALH",
"AD_INSTR_LDEORH",
"AD_INSTR_LDEORLH",
"AD_INSTR_LDEOR",
"AD_INSTR_LDEORA",
"AD_INSTR_LDEORAL",
"AD_INSTR_LDEORL",
"AD_INSTR_LDG",
"AD_INSTR_LDGM",
"AD_INSTR_LDLARB",
"AD_INSTR_LDLARH",
"AD_INSTR_LDLAR",
"AD_INSTR_LDNP",
"AD_INSTR_LDP",
"AD_INSTR_LDPSW",
"AD_INSTR_LDR",
"AD_INSTR_LDRAA",
"AD_INSTR_LDRAB",
"AD_INSTR_LDRB",
"AD_INSTR_LDRH",
"AD_INSTR_LDRSB",
"AD_INSTR_LDRSH",
"AD_INSTR_LDRSW",
"AD_INSTR_LDSETAB",
"AD_INSTR_LDSETALB",
"AD_INSTR_LDSETB",
"AD_INSTR_LDSETLB",
"AD_INSTR_LDSETAH",
"AD_INSTR_LDSETALH",
"AD_INSTR_LDSETH",
"AD_INSTR_LDSETLH",
"AD_INSTR_LDSET",
"AD_INSTR_LDSETA",
"AD_INSTR_LDSETAL",
"AD_INSTR_LDSETL",
"AD_INSTR_LDSMAXAB",
"AD_INSTR_LDSMAXALB",
"AD_INSTR_LDSMAXB",
"AD_INSTR_LDSMAXLB",
"AD_INSTR_LDSMAXAH",
"AD_INSTR_LDSMAXALH",
"AD_INSTR_LDSMAXH",
"AD_INSTR_LDSMAXLH",
"AD_INSTR_LDSMAX",
"AD_INSTR_LDSMAXA",
"AD_INSTR_LDSMAXAL",
"AD_INSTR_LDSMAXL",
"AD_INSTR_LDSMINAB",
"AD_INSTR_LDSMINALB",
"AD_INSTR_LDSMINB",
"AD_INSTR_LDSMINLB",
"AD_INSTR_LDSMINAH",
"AD_INSTR_LDSMINALH",
"AD_INSTR_LDSMINH",
"AD_INSTR_LDSMINLH",
"AD_INSTR_LDSMIN",
"AD_INSTR_LDSMINA",
"AD_INSTR_LDSMINAL",
"AD_INSTR_LDSMINL",
"AD_INSTR_LDTR",
"AD_INSTR_LDTRB",
"AD_INSTR_LDTRH",
"AD_INSTR_LDTRSB",
"AD_INSTR_LDTRSH",
"AD_INSTR_LDTRSW",
"AD_INSTR_LDUMAXAB",
"AD_INSTR_LDUMAXALB",
"AD_INSTR_LDUMAXB",
"AD_INSTR_LDUMAXLB",
"AD_INSTR_LDUMAXAH",
"AD_INSTR_LDUMAXALH",
"AD_INSTR_LDUMAXH",
"AD_INSTR_LDUMAXLH",
"AD_INSTR_LDUMAX",
"AD_INSTR_LDUMAXA",
"AD_INSTR_LDUMAXAL",
"AD_INSTR_LDUMAXL",
"AD_INSTR_LDUMINAB",
"AD_INSTR_LDUMINALB",
"AD_INSTR_LDUMINB",
"AD_INSTR_LDUMINLB",
"AD_INSTR_LDUMINAH",
"AD_INSTR_LDUMINALH",
"AD_INSTR_LDUMINH",
"AD_INSTR_LDUMINLH",
"AD_INSTR_LDUMIN",
"AD_INSTR_LDUMINA",
"AD_INSTR_LDUMINAL",
"AD_INSTR_LDUMINL",
"AD_INSTR_LDUR",
"AD_INSTR_LDURB",
"AD_INSTR_LDURH",
"AD_INSTR_LDURSB",
"AD_INSTR_LDURSH",
"AD_INSTR_LDURSW",
"AD_INSTR_LDXP",
"AD_INSTR_LDXR",
"AD_INSTR_LDXRB",
"AD_INSTR_LDXRH",
"AD_INSTR_LSL",
"AD_INSTR_LSLV",
"AD_INSTR_LSR",
"AD_INSTR_LSRV",
"AD_INSTR_MADD",
"AD_INSTR_MNEG",
"AD_INSTR_MOV",
"AD_INSTR_MOVK",
"AD_INSTR_MOVN",
"AD_INSTR_MOVZ",
"AD_INSTR_MRS",
"AD_INSTR_MSR",
"AD_INSTR_MSUB",
"AD_INSTR_MUL",
"AD_INSTR_MVN",
"AD_INSTR_NEG",
"AD_INSTR_NEGS",
"AD_INSTR_NGC",
"AD_INSTR_NGCS",
"AD_INSTR_NOP",
"AD_INSTR_ORN",
"AD_INSTR_ORR",
"AD_INSTR_PACDA",
"AD_INSTR_PACDZA",
"AD_INSTR_PACDB",
"AD_INSTR_PACDZB",
"AD_INSTR_PACGA",
"AD_INSTR_PACIA",
"AD_INSTR_PACIZA",
"AD_INSTR_PACIA1716",
"AD_INSTR_PACIASP",
"AD_INSTR_PACIAZ",
"AD_INSTR_PACIB",
"AD_INSTR_PACIZB",
"AD_INSTR_PACIB1716",
"AD_INSTR_PACIBSP",
"AD_INSTR_PACIBZ",
"AD_INSTR_PRFM",
"AD_INSTR_PRFUM",
"AD_INSTR_PSB_CSYNC",
"AD_INSTR_PSSBB",
"AD_INSTR_RBIT",
"AD_INSTR_RET",
"AD_INSTR_RETAA",
"AD_INSTR_RETAB",
"AD_INSTR_REV",
"AD_INSTR_REV16",
"AD_INSTR_REV32",
"AD_INSTR_REV64",
"AD_INSTR_RMIF",
"AD_INSTR_ROR",
"AD_INSTR_RORV",
"AD_INSTR_SB",
"AD_INSTR_SBC",
"AD_INSTR_SBCS",
"AD_INSTR_SBFIZ",
"AD_INSTR_SBFM",
"AD_INSTR_SBFX",
"AD_INSTR_SDIV",
"AD_INSTR_SETF8",
"AD_INSTR_SETF16",
"AD_INSTR_SEV",
"AD_INSTR_SEVL",
"AD_INSTR_SMADDL",
"AD_INSTR_SMC",
"AD_INSTR_SMNEGL",
"AD_INSTR_SMSUBL",
"AD_INSTR_SMULH",
"AD_INSTR_SMULL",
"AD_INSTR_SSBB",
"AD_INSTR_ST2G",
"AD_INSTR_STADDB",
"AD_INSTR_STADDLB",
"AD_INSTR_STADDH",
"AD_INSTR_STADDLH",
"AD_INSTR_STADD",
"AD_INSTR_STADDL",
"AD_INSTR_STCLRB",
"AD_INSTR_STCLRLB",
"AD_INSTR_STCLRH",
"AD_INSTR_STCLRLH",
"AD_INSTR_STCLR",
"AD_INSTR_STCLRL",
"AD_INSTR_STEORB",
"AD_INSTR_STEORLB",
"AD_INSTR_STEORH",
"AD_INSTR_STEORLH",
"AD_INSTR_STEOR",
"AD_INSTR_STEORL",
"AD_INSTR_STG",
"AD_INSTR_STGM",
"AD_INSTR_STGP",
"AD_INSTR_STLLRB",
"AD_INSTR_STLLRH",
"AD_INSTR_STLLR",
"AD_INSTR_STLR",
"AD_INSTR_STLRB",
"AD_INSTR_STLRH",
"AD_INSTR_STLUR",
"AD_INSTR_STLURB",
"AD_INSTR_STLURH",
"AD_INSTR_STLXP",
"AD_INSTR_STLXR",
"AD_INSTR_STLXRB",
"AD_INSTR_STLXRH",
"AD_INSTR_STNP",
"AD_INSTR_STP",
"AD_INSTR_STR",
"AD_INSTR_STRB",
"AD_INSTR_STRH",
"AD_INSTR_STSETB",
"AD_INSTR_STSETLB",
"AD_INSTR_STSETH",
"AD_INSTR_STSETLH",
"AD_INSTR_STSET",
"AD_INSTR_STSETL",
"AD_INSTR_STSMAXB",
"AD_INSTR_STSMAXLB",
"AD_INSTR_STSMAXH",
"AD_INSTR_STSMAXLH",
"AD_INSTR_STSMAX",
"AD_INSTR_STSMAXL",
"AD_INSTR_STSMINB",
"AD_INSTR_STSMINLB",
"AD_INSTR_STSMINH",
"AD_INSTR_STSMINLH",
"AD_INSTR_STSMIN",
"AD_INSTR_STSMINL",
"AD_INSTR_STTR",
"AD_INSTR_STTRB",
"AD_INSTR_STTRH",
"AD_INSTR_STUMAXB",
"AD_INSTR_STUMAXLB",
"AD_INSTR_STUMAXH",
"AD_INSTR_STUMAXLH",
"AD_INSTR_STUMAX",
"AD_INSTR_STUMAXL",
"AD_INSTR_STUMINB",
"AD_INSTR_STUMINLB",
"AD_INSTR_STUMINH",
"AD_INSTR_STUMINLH",
"AD_INSTR_STUMIN",
"AD_INSTR_STUMINL",
"AD_INSTR_STUR",
"AD_INSTR_STURB",
"AD_INSTR_STURH",
"AD_INSTR_STXP",
"AD_INSTR_STXR",
"AD_INSTR_STXRB",
"AD_INSTR_STXRH",
"AD_INSTR_STZ2G",
"AD_INSTR_STZG",
"AD_INSTR_STZGM",
"AD_INSTR_SUB",
"AD_INSTR_SUBG",
"AD_INSTR_SUBP",
"AD_INSTR_SUBPS",
"AD_INSTR_SUBS",
"AD_INSTR_SVC",
"AD_INSTR_SWPAB",
"AD_INSTR_SWPALB",
"AD_INSTR_SWPB",
"AD_INSTR_SWPLB",
"AD_INSTR_SWPAH",
"AD_INSTR_SWPALH",
"AD_INSTR_SWPH",
"AD_INSTR_SWPLH",
"AD_INSTR_SWP",
"AD_INSTR_SWPA",
"AD_INSTR_SWPAL",
"AD_INSTR_SWPL",
"AD_INSTR_SXTB",
"AD_INSTR_SXTH",
"AD_INSTR_SXTW",
"AD_INSTR_SYS",
"AD_INSTR_SYSL",
"AD_INSTR_TBNZ",
"AD_INSTR_TBZ",
"AD_INSTR_TLBI",
"AD_INSTR_TSB_CSYNC",
"AD_INSTR_TST",
"AD_INSTR_UBFIZ",
"AD_INSTR_UBFM",
"AD_INSTR_UBFX",
"AD_INSTR_UDF",
"AD_INSTR_UDIV",
"AD_INSTR_UMADDL",
"AD_INSTR_UMNEGL",
"AD_INSTR_UMSUBL",
"AD_INSTR_UMULH",
"AD_INSTR_UMULL",
"AD_INSTR_UXTB",
"AD_INSTR_UXTH",
"AD_INSTR_WFE",
"AD_INSTR_WFI",
"AD_INSTR_XAFLAG",
"AD_INSTR_XPACD",
"AD_INSTR_XPACI",
"AD_INSTR_XPACLRI",
"AD_INSTR_YIELD",
"AD_INSTR_ABS",
"AD_INSTR_ADDHN",
"AD_INSTR_ADDHN2",
"AD_INSTR_ADDP",
"AD_INSTR_ADDV",
"AD_INSTR_AESD",
"AD_INSTR_AESE",
"AD_INSTR_AESIMC",
"AD_INSTR_AESMC",
"AD_INSTR_BCAX",
"AD_INSTR_BIF",
"AD_INSTR_BIT",
"AD_INSTR_BSL",
"AD_INSTR_CMEQ",
"AD_INSTR_CMGE",
"AD_INSTR_CMGT",
"AD_INSTR_CMHI",
"AD_INSTR_CMHS",
"AD_INSTR_CMLE",
"AD_INSTR_CMLT",
"AD_INSTR_CMTST",
"AD_INSTR_CNT",
"AD_INSTR_DUP",
"AD_INSTR_EOR3",
"AD_INSTR_EXT",
"AD_INSTR_FABD",
"AD_INSTR_FABS",
"AD_INSTR_FACGE",
"AD_INSTR_FACGT",
"AD_INSTR_FADD",
"AD_INSTR_FADDP",
"AD_INSTR_FCADD",
"AD_INSTR_FCCMP",
"AD_INSTR_FCCMPE",
"AD_INSTR_FCMEQ",
"AD_INSTR_FCMGE",
"AD_INSTR_FCMGT",
"AD_INSTR_FCMLA",
"AD_INSTR_FCMLE",
"AD_INSTR_FCMLT",
"AD_INSTR_FCMP",
"AD_INSTR_FCMPE",
"AD_INSTR_FCSEL",
"AD_INSTR_FCVT",
"AD_INSTR_FCVTAS",
"AD_INSTR_FCVTAU",
"AD_INSTR_FCVTL",
"AD_INSTR_FCVTL2",
"AD_INSTR_FCVTMS",
"AD_INSTR_FCVTMU",
"AD_INSTR_FCVTN",
"AD_INSTR_FCVTN2",
"AD_INSTR_FCVTNS",
"AD_INSTR_FCVTNU",
"AD_INSTR_FCVTPS",
"AD_INSTR_FCVTPU",
"AD_INSTR_FCVTXN",
"AD_INSTR_FCVTXN2",
"AD_INSTR_FCVTZS",
"AD_INSTR_FCVTZU",
"AD_INSTR_FDIV",
"AD_INSTR_FJCVTZS",
"AD_INSTR_FMADD",
"AD_INSTR_FMAX",
"AD_INSTR_FMAXNM",
"AD_INSTR_FMAXNMP",
"AD_INSTR_FMAXNMV",
"AD_INSTR_FMAXP",
"AD_INSTR_FMAXV",
"AD_INSTR_FMIN",
"AD_INSTR_FMINNM",
"AD_INSTR_FMINNMP",
"AD_INSTR_FMINNMV",
"AD_INSTR_FMINP",
"AD_INSTR_FMINV",
"AD_INSTR_FMLA",
"AD_INSTR_FMLAL",
"AD_INSTR_FMLAL2",
"AD_INSTR_FMLS",
"AD_INSTR_FMLSL",
"AD_INSTR_FMLSL2",
"AD_INSTR_FMOV",
"AD_INSTR_FMSUB",
"AD_INSTR_FMUL",
"AD_INSTR_FMULX",
"AD_INSTR_FNEG",
"AD_INSTR_FNMADD",
"AD_INSTR_FNMSUB",
"AD_INSTR_FNMUL",
"AD_INSTR_FRECPE",
"AD_INSTR_FRECPS",
"AD_INSTR_FRECPX",
"AD_INSTR_FRINT32X",
"AD_INSTR_FRINT32Z",
"AD_INSTR_FRINT64X",
"AD_INSTR_FRINT64Z",
"AD_INSTR_FRINTA",
"AD_INSTR_FRINTI",
"AD_INSTR_FRINTM",
"AD_INSTR_FRINTN",
"AD_INSTR_FRINTP",
"AD_INSTR_FRINTX",
"AD_INSTR_FRINTZ",
"AD_INSTR_FRSQRTE",
"AD_INSTR_FRSQRTS",
"AD_INSTR_FSQRT",
"AD_INSTR_FSUB",
"AD_INSTR_INS",
"AD_INSTR_LD1",
"AD_INSTR_LD1R",
"AD_INSTR_LD2",
"AD_INSTR_LD2R",
"AD_INSTR_LD3",
"AD_INSTR_LD3R",
"AD_INSTR_LD4",
"AD_INSTR_LD4R",
"AD_INSTR_MLA",
"AD_INSTR_MLS",
"AD_INSTR_MOVI",
"AD_INSTR_MVNI",
"AD_INSTR_NOT",
"AD_INSTR_PMUL",
"AD_INSTR_PMULL",
"AD_INSTR_PMULL2",
"AD_INSTR_RADDHN",
"AD_INSTR_RADDHN2",
"AD_INSTR_RAX1",
"AD_INSTR_RSHRN",
"AD_INSTR_RSHRN2",
"AD_INSTR_RSUBHN",
"AD_INSTR_RSUBHN2",
"AD_INSTR_SABA",
"AD_INSTR_SABAL",
"AD_INSTR_SABAL2",
"AD_INSTR_SABD",
"AD_INSTR_SABDL",
"AD_INSTR_SABDL2",
"AD_INSTR_SADALP",
"AD_INSTR_SADDL",
"AD_INSTR_SADDL2",
"AD_INSTR_SADDLP",
"AD_INSTR_SADDLV",
"AD_INSTR_SADDW",
"AD_INSTR_SADDW2",
"AD_INSTR_SCVTF",
"AD_INSTR_SDOT",
"AD_INSTR_SHA1C",
"AD_INSTR_SHA1H",
"AD_INSTR_SHA1M",
"AD_INSTR_SHA1P",
"AD_INSTR_SHA1SU0",
"AD_INSTR_SHA1SU1",
"AD_INSTR_SHA256H2",
"AD_INSTR_SHA256H",
"AD_INSTR_SHA256SU0",
"AD_INSTR_SHA256SU1",
"AD_INSTR_SHA512H",
"AD_INSTR_SHA512H2",
"AD_INSTR_SHA512SU0",
"AD_INSTR_SHA512SU1",
"AD_INSTR_SHADD",
"AD_INSTR_SHL",
"AD_INSTR_SHLL",
"AD_INSTR_SHLL2",
"AD_INSTR_SHRN",
"AD_INSTR_SHRN2",
"AD_INSTR_SHSUB",
"AD_INSTR_SLI",
"AD_INSTR_SM3PARTW1",
"AD_INSTR_SM3PARTW2",
"AD_INSTR_SM3SS1",
"AD_INSTR_SM3TT1A",
"AD_INSTR_SM3TT1B",
"AD_INSTR_SM3TT2A",
"AD_INSTR_SM3TT2B",
"AD_INSTR_SM4E",
"AD_INSTR_SM4EKEY",
"AD_INSTR_SMAX",
"AD_INSTR_SMAXP",
"AD_INSTR_SMAXV",
"AD_INSTR_SMIN",
"AD_INSTR_SMINP",
"AD_INSTR_SMINV",
"AD_INSTR_SMLAL",
"AD_INSTR_SMLAL2",
"AD_INSTR_SMLSL",
"AD_INSTR_SMLSL2",
"AD_INSTR_SMOV",
"AD_INSTR_SMULL2",
"AD_INSTR_SQABS",
"AD_INSTR_SQADD",
"AD_INSTR_SQDMLAL",
"AD_INSTR_SQDMLAL2",
"AD_INSTR_SQDMLSL",
"AD_INSTR_SQDMLSL2",
"AD_INSTR_SQDMULH",
"AD_INSTR_SQDMULL",
"AD_INSTR_SQDMULL2",
"AD_INSTR_SQNEG",
"AD_INSTR_SQRDMLAH",
"AD_INSTR_SQRDMLSH",
"AD_INSTR_SQRDMULH",
"AD_INSTR_SQRSHL",
"AD_INSTR_SQRSHRN",
"AD_INSTR_SQRSHRN2",
"AD_INSTR_SQRSHRUN",
"AD_INSTR_SQRSHRUN2",
"AD_INSTR_SQSHL",
"AD_INSTR_SQSHLU",
"AD_INSTR_SQSHRN",
"AD_INSTR_SQSHRN2",
"AD_INSTR_SQSHRUN",
"AD_INSTR_SQSHRUN2",
"AD_INSTR_SQSUB",
"AD_INSTR_SQXTN",
"AD_INSTR_SQXTN2",
"AD_INSTR_SQXTUN",
"AD_INSTR_SQXTUN2",
"AD_INSTR_SRHADD",
"AD_INSTR_SRI",
"AD_INSTR_SRSHL",
"AD_INSTR_SRSHR",
"AD_INSTR_SRSRA",
"AD_INSTR_SSHL",
"AD_INSTR_SSHLL",
"AD_INSTR_SSHLL2",
"AD_INSTR_SSHR",
"AD_INSTR_SSRA",
"AD_INSTR_SSUBL",
"AD_INSTR_SSUBL2",
"AD_INSTR_SSUBW",
"AD_INSTR_SSUBW2",
"AD_INSTR_ST1",
"AD_INSTR_ST2",
"AD_INSTR_ST3",
"AD_INSTR_ST4",
"AD_INSTR_SUBHN",
"AD_INSTR_SUBHN2",
"AD_INSTR_SUQADD",
"AD_INSTR_SXTL",
"AD_INSTR_SXTL2",
"AD_INSTR_TBL",
"AD_INSTR_TBX",
"AD_INSTR_TRN1",
"AD_INSTR_TRN2",
"AD_INSTR_UABA",
"AD_INSTR_UABAL",
"AD_INSTR_UABAL2",
"AD_INSTR_UABD",
"AD_INSTR_UABDL",
"AD_INSTR_UABDL2",
"AD_INSTR_UADALP",
"AD_INSTR_UADDL",
"AD_INSTR_UADDL2",
"AD_INSTR_UADDLP",
"AD_INSTR_UADDLV",
"AD_INSTR_UADDW",
"AD_INSTR_UADDW2",
"AD_INSTR_UCVTF",
"AD_INSTR_UDOT",
"AD_INSTR_UHADD",
"AD_INSTR_UHSUB",
"AD_INSTR_UMAX",
"AD_INSTR_UMAXP",
"AD_INSTR_UMAXV",
"AD_INSTR_UMIN",
"AD_INSTR_UMINP",
"AD_INSTR_UMINV",
"AD_INSTR_UMLAL",
"AD_INSTR_UMLAL2",
"AD_INSTR_UMLSL",
"AD_INSTR_UMLSL2",
"AD_INSTR_UMOV",
"AD_INSTR_UMULL2",
"AD_INSTR_UQADD",
"AD_INSTR_UQRSHL",
"AD_INSTR_UQRSHRN",
"AD_INSTR_UQRSHRN2",
"AD_INSTR_UQSHL",
"AD_INSTR_UQSHRN",
"AD_INSTR_UQSHRN2",
"AD_INSTR_UQSUB",
"AD_INSTR_UQXTN",
"AD_INSTR_UQXTN2",
"AD_INSTR_URECPE",
"AD_INSTR_URHADD",
"AD_INSTR_URSHL",
"AD_INSTR_URSHR",
"AD_INSTR_URSQRTE",
"AD_INSTR_URSRA",
"AD_INSTR_USHL",
"AD_INSTR_USHLL",
"AD_INSTR_USHLL2",
"AD_INSTR_USHR",
"AD_INSTR_USQADD",
"AD_INSTR_USRA",
"AD_INSTR_USUBL",
"AD_INSTR_USUBL2",
"AD_INSTR_USUBW",
"AD_INSTR_USUBW2",
"AD_INSTR_UXTL",
"AD_INSTR_UXTL2",
"AD_INSTR_UZP1",
"AD_INSTR_UZP2",
"AD_INSTR_XAR",
"AD_INSTR_XTN",
"AD_INSTR_XTN2",
"AD_INSTR_ZIP1",
"AD_INSTR_ZIP2",
};
static const char *AD_GET_SYSREG_STRING(unsigned int encoding){
switch(encoding){
case 0xc081: return "ACTLR_EL1";
case 0xe081: return "ACTLR_EL2";
case 0xf081: return "ACTLR_EL3";
case 0xc288: return "AFSR0_EL1";
case 0xea88: return "AFSR0_EL12";
case 0xe288: return "AFSR0_EL2";
case 0xf288: return "AFSR0_EL3";
case 0xc289: return "AFSR1_EL1";
case 0xea89: return "AFSR1_EL12";
case 0xe289: return "AFSR1_EL2";
case 0xf289: return "AFSR1_EL3";
case 0xc807: return "AIDR_EL1";
case 0xc518: return "AMAIR_EL1";
case 0xed18: return "AMAIR_EL12";
case 0xe518: return "AMAIR_EL2";
case 0xf518: return "AMAIR_EL3";
case 0xde91: return "AMCFGR_EL0";
case 0xde92: return "AMCGCR_EL0";
case 0xde94: return "AMCNTENCLR0_EL0";
case 0xde98: return "AMCNTENCLR1_EL0";
case 0xde95: return "AMCNTENSET0_EL0";
case 0xde99: return "AMCNTENSET1_EL0";
case 0xde90: return "AMCR_EL0";
case 0xde93: return "AMUSERENR_EL0";
case 0xc111: return "APDAKeyHi_EL1";
case 0xc110: return "APDAKeyLo_EL1";
case 0xc113: return "APDBKeyHi_EL1";
case 0xc112: return "APDBKeyLo_EL1";
case 0xc119: return "APGAKeyHi_EL1";
case 0xc118: return "APGAKeyLo_EL1";
case 0xc109: return "APIAKeyHi_EL1";
case 0xc108: return "APIAKeyLo_EL1";
case 0xc10b: return "APIBKeyHi_EL1";
case 0xc10a: return "APIBKeyLo_EL1";
case 0xc802: return "CCSIDR2_EL1";
case 0xc800: return "CCSIDR_EL1";
case 0xc801: return "CLIDR_EL1";
case 0xdf00: return "CNTFRQ_EL0";
case 0xe708: return "CNTHCTL_EL2";
case 0xe729: return "CNTHPS_CTL_EL2";
case 0xe72a: return "CNTHPS_CVAL_EL2";
case 0xe728: return "CNTHPS_TVAL_EL2";
case 0xe711: return "CNTHP_CTL_EL2";
case 0xe712: return "CNTHP_CVAL_EL2";
case 0xe710: return "CNTHP_TVAL_EL2";
case 0xe721: return "CNTHVS_CTL_EL2";
case 0xe722: return "CNTHVS_CVAL_EL2";
case 0xe720: return "CNTHVS_TVAL_EL2";
case 0xe719: return "CNTHV_CTL_EL2";
case 0xe71a: return "CNTHV_CVAL_EL2";
case 0xe718: return "CNTHV_TVAL_EL2";
case 0xc708: return "CNTKCTL_EL1";
case 0xdf01: return "CNTPCT_EL0";
case 0xff11: return "CNTPS_CTL_EL1";
case 0xff12: return "CNTPS_CVAL_EL1";
case 0xff10: return "CNTPS_TVAL_EL1";
case 0xdf11: return "CNTP_CTL_EL0";
case 0xef11: return "CNTP_CTL_EL02";
case 0xdf12: return "CNTP_CVAL_EL0";
case 0xef12: return "CNTP_CVAL_EL02";
case 0xdf10: return "CNTP_TVAL_EL0";
case 0xef10: return "CNTP_TVAL_EL02";
case 0xdf02: return "CNTVCT_EL0";
case 0xe703: return "CNTVOFF_EL2";
case 0xdf19: return "CNTV_CTL_EL0";
case 0xef19: return "CNTV_CTL_EL02";
case 0xdf1a: return "CNTV_CVAL_EL0";
case 0xef1a: return "CNTV_CVAL_EL02";
case 0xdf18: return "CNTV_TVAL_EL0";
case 0xef18: return "CNTV_TVAL_EL02";
case 0xc681: return "CONTEXTIDR_EL1";
case 0xee81: return "CONTEXTIDR_EL12";
case 0xe681: return "CONTEXTIDR_EL2";
case 0xc082: return "CPACR_EL1";
case 0xe882: return "CPACR_EL12";
case 0xe08a: return "CPTR_EL2";
case 0xf08a: return "CPTR_EL3";
case 0xd000: return "CSSELR_EL1";
case 0xd801: return "CTR_EL0";
case 0xc212: return "CurrentEL";
case 0xe180: return "DACR32_EL2";
case 0xda11: return "DAIF";
case 0x83f6: return "DBGAUTHSTATUS_EL1";
case 0x83ce: return "DBGCLAIMCLR_EL1";
case 0x83c6: return "DBGCLAIMSET_EL1";
case 0x9828: return "DBGDTRRX_EL0"; /* DBGDTRTX_EL0 has same encoding */
case 0x9820: return "DBGDTR_EL0";
case 0x80a4: return "DBGPRCR_EL1";
case 0xa038: return "DBGVCR32_EL2";
case 0xd807: return "DCZID_EL0";
case 0xc609: return "DISR_EL1";
case 0xda15: return "DIT";
case 0xda29: return "DLR_EL0";
case 0xda28: return "DSPSR_EL0";
case 0xc201: return "ELR_EL1";
case 0xea01: return "ELR_EL12";
case 0xe201: return "ELR_EL2";
case 0xf201: return "ELR_EL3";
case 0xc298: return "ERRIDR_EL1";
case 0xc299: return "ERRSELR_EL1";
case 0xc2a3: return "ERXADDR_EL1";
case 0xc2a1: return "ERXCTLR_EL1";
case 0xc2a0: return "ERXFR_EL1";
case 0xc2a8: return "ERXMISC0_EL1";
case 0xc2a9: return "ERXMISC1_EL1";
case 0xc2aa: return "ERXMISC2_EL1";
case 0xc2ab: return "ERXMISC3_EL1";
case 0xc2a6: return "ERXPFGCDN_EL1";
case 0xc2a5: return "ERXPFGCTL_EL1";
case 0xc2a4: return "ERXPFGF_EL1";
case 0xc2a2: return "ERXSTATUS_EL1";
case 0xc290: return "ESR_EL1";
case 0xea90: return "ESR_EL12";
case 0xe290: return "ESR_EL2";
case 0xf290: return "ESR_EL3";
case 0xc300: return "FAR_EL1";
case 0xeb00: return "FAR_EL12";
case 0xe300: return "FAR_EL2";
case 0xf300: return "FAR_EL3";
case 0xd184: return "FPCR";
case 0xe298: return "FPEXC32_EL2";
case 0xd194: return "FPSR";
case 0xc086: return "GCR_EL1";
case 0xcc0: return "GMID_EL1";
case 0xe08f: return "HACR_EL2";
case 0xe088: return "HCR_EL2";
case 0xe304: return "HPFAR_EL2";
case 0xe08b: return "HSTR_EL2";
case 0xc02c: return "ID_AA64AFR0_EL1";
case 0xc02d: return "ID_AA64AFR1_EL1";
case 0xc028: return "ID_AA64DFR0_EL1";
case 0xc029: return "ID_AA64DFR1_EL1";
case 0xc030: return "ID_AA64ISAR0_EL1";
case 0xc031: return "ID_AA64ISAR1_EL1";
case 0xc038: return "ID_AA64MMFR0_EL1";
case 0xc039: return "ID_AA64MMFR1_EL1";
case 0xc03a: return "ID_AA64MMFR2_EL1";
case 0xc020: return "ID_AA64PFR0_EL1";
case 0xc021: return "ID_AA64PFR1_EL1";
case 0xc00b: return "ID_AFR0_EL1";
case 0xc00a: return "ID_DFR0_EL1";
case 0xc010: return "ID_ISAR0_EL1";
case 0xc011: return "ID_ISAR1_EL1";
case 0xc012: return "ID_ISAR2_EL1";
case 0xc013: return "ID_ISAR3_EL1";
case 0xc014: return "ID_ISAR4_EL1";
case 0xc015: return "ID_ISAR5_EL1";
case 0xc017: return "ID_ISAR6_EL1";
case 0xc00c: return "ID_MMFR0_EL1";
case 0xc00d: return "ID_MMFR1_EL1";
case 0xc00e: return "ID_MMFR2_EL1";
case 0xc00f: return "ID_MMFR3_EL1";
case 0xc016: return "ID_MMFR4_EL1";
case 0xc008: return "ID_PFR0_EL1";
case 0xc009: return "ID_PFR1_EL1";
case 0xc01c: return "ID_PFR2_EL1";
case 0xe281: return "IFSR32_EL2";
case 0xc608: return "ISR_EL1";
case 0xc523: return "LORC_EL1";
case 0xc521: return "LOREA_EL1";
case 0xc527: return "LORID_EL1";
case 0xc522: return "LORN_EL1";
case 0xc520: return "LORSA_EL1";
case 0xc510: return "MAIR_EL1";
case 0xed10: return "MAIR_EL12";
case 0xe510: return "MAIR_EL2";
case 0xf510: return "MAIR_EL3";
case 0x8010: return "MDCCINT_EL1";
case 0x9808: return "MDCCSR_EL0";
case 0xe089: return "MDCR_EL2";
case 0xf099: return "MDCR_EL3";
case 0x8080: return "MDRAR_EL1";
case 0x8012: return "MDSCR_EL1";
case 0xc000: return "MIDR_EL1";
case 0xc005: return "MPIDR_EL1";
case 0xc018: return "MVFR0_EL1";
case 0xc019: return "MVFR1_EL1";
case 0xc01a: return "MVFR2_EL1";
case 0xda10: return "NZCV";
case 0x809c: return "OSDLR_EL1";
case 0x8002: return "OSDTRRX_EL1";
case 0x801a: return "OSDTRTX_EL1";
case 0x8032: return "OSECCR_EL1";
case 0x8084: return "OSLAR_EL1";
case 0x808c: return "OSLSR_EL1";
case 0xc213: return "PAN";
case 0xc3a0: return "PAR_EL1";
case 0xc4d7: return "PMBIDR_EL1";
case 0xc4d0: return "PMBLIMITR_EL1";
case 0xc4d1: return "PMBPTR_EL1";
case 0xc4d3: return "PMBSR_EL1";
case 0xdf7f: return "PMCCFILTR_EL0";
case 0xdce8: return "PMCCNTR_EL0";
case 0xdce6: return "PMCEID0_EL0";
case 0xdce7: return "PMCEID1_EL0";
case 0xdce2: return "PMCNTENCLR_EL0";
case 0xdce1: return "PMCNTENSET_EL0";
case 0xdce0: return "PMCR_EL0";
case 0xc4f2: return "PMINTENCLR_EL1";
case 0xc4f1: return "PMINTENSET_EL1";
case 0xc4f6: return "PMMIR_EL1";
case 0xdce3: return "PMOVSCLR_EL0";
case 0xdcf3: return "PMOVSSET_EL0";
case 0xc4c8: return "PMSCR_EL1";
case 0xecc8: return "PMSCR_EL12";
case 0xe4c8: return "PMSCR_EL2";
case 0xdce5: return "PMSELR_EL0";
case 0xc4cd: return "PMSEVFR_EL1";
case 0xc4cc: return "PMSFCR_EL1";
case 0xc4ca: return "PMSICR_EL1";
case 0xc4cf: return "PMSIDR_EL1";
case 0xc4cb: return "PMSIRR_EL1";
case 0xc4ce: return "PMSLATFR_EL1";
case 0xdce4: return "PMSWINC_EL0";
case 0xdcf0: return "PMUSERENR_EL0";
case 0xdcea: return "PMXEVCNTR_EL0";
case 0xdce9: return "PMXEVTYPER_EL0";
case 0xc006: return "REVIDR_EL1";
case 0xc085: return "RGSR_EL1";