alaz 0.1.1

AArch64 汇编语言分析工具 - 支持237条指令、多优化级别对比、智能语义解释
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
{
  "instruction_set": "AArch64 (ARM 64-bit)",
  "categories": {
    "data_processing": {
      "arithmetic": [
        {
          "mnemonic": "add",
          "name": "Add",
          "format": "ADD <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <extend> {#<amount>}}",
          "description": "加法运算,将两个寄存器的值相加",
          "flags_affected": ["N", "Z", "C", "V"],
          "example": "add w0, w2, w0"
        },
        {
          "mnemonic": "sub",
          "name": "Subtract",
          "format": "SUB <Xd|Wd>, <Xn|Wn>, <Xm|Wm|#imm>",
          "description": "减法运算,从第一个操作数减去第二个操作数",
          "flags_affected": ["N", "Z", "C", "V"],
          "example": "sub sp, sp, #0x30"
        },
        {
          "mnemonic": "mul",
          "name": "Multiply",
          "format": "MUL <Xd|Wd>, <Xn|Wn>, <Xm|Wm>",
          "description": "乘法运算,两个寄存器值相乘",
          "flags_affected": [],
          "example": "mul w2, w2, w0"
        },
        {
          "mnemonic": "madd",
          "name": "Multiply-Add",
          "format": "MADD <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <Xa|Wa>",
          "description": "乘加运算,Xd = Xa + Xn * Xm",
          "flags_affected": [],
          "example": "madd x0, x1, x2, x3"
        },
        {
          "mnemonic": "msub",
          "name": "Multiply-Subtract",
          "format": "MSUB <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <Xa|Wa>",
          "description": "乘减运算,Xd = Xa - Xn * Xm",
          "flags_affected": [],
          "example": "msub x0, x1, x2, x3"
        },
        {
          "mnemonic": "sdiv",
          "name": "Signed Divide",
          "format": "SDIV <Xd|Wd>, <Xn|Wn>, <Xm|Wm>",
          "description": "有符号除法,Xd = Xn / Xm",
          "flags_affected": [],
          "example": "sdiv w0, w1, w2"
        },
        {
          "mnemonic": "udiv",
          "name": "Unsigned Divide",
          "format": "UDIV <Xd|Wd>, <Xn|Wn>, <Xm|Wm>",
          "description": "无符号除法,Xd = Xn / Xm",
          "flags_affected": [],
          "example": "udiv w0, w1, w2"
        },
        {
          "mnemonic": "smull",
          "name": "Signed Multiply Long",
          "format": "SMULL <Xd>, <Wn>, <Wm>",
          "description": "有符号长乘法,结果为64位",
          "flags_affected": [],
          "example": "smull x0, w1, w2"
        },
        {
          "mnemonic": "umull",
          "name": "Unsigned Multiply Long",
          "format": "UMULL <Xd>, <Wn>, <Wm>",
          "description": "无符号长乘法,结果为64位",
          "flags_affected": [],
          "example": "umull x0, w1, w2"
        },
        {
          "mnemonic": "neg",
          "name": "Negate",
          "format": "NEG <Xd|Wd>, <Xm|Wm>",
          "description": "取反运算,Xd = 0 - Xm",
          "flags_affected": [],
          "example": "neg w0, w1"
        },
        {
          "mnemonic": "adc",
          "name": "Add with Carry",
          "format": "ADC <Xd|Wd>, <Xn|Wn>, <Xm|Wm>",
          "description": "带进位加法,Xd = Xn + Xm + C",
          "flags_affected": ["N", "Z", "C", "V"],
          "example": "adc x0, x1, x2"
        },
        {
          "mnemonic": "sbc",
          "name": "Subtract with Carry",
          "format": "SBC <Xd|Wd>, <Xn|Wn>, <Xm|Wm>",
          "description": "带借位减法,Xd = Xn - Xm - !C",
          "flags_affected": ["N", "Z", "C", "V"],
          "example": "sbc x0, x1, x2"
        }
      ],
      "logical": [
        {
          "mnemonic": "and",
          "name": "Bitwise AND",
          "format": "AND <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位与运算",
          "flags_affected": ["N", "Z"],
          "example": "and x0, x1, x2"
        },
        {
          "mnemonic": "orr",
          "name": "Bitwise OR",
          "format": "ORR <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位或运算",
          "flags_affected": ["N", "Z"],
          "example": "orr x0, x1, x2"
        },
        {
          "mnemonic": "eor",
          "name": "Bitwise Exclusive OR",
          "format": "EOR <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位异或运算",
          "flags_affected": ["N", "Z"],
          "example": "eor x0, x1, x2"
        },
        {
          "mnemonic": "bic",
          "name": "Bitwise Bit Clear",
          "format": "BIC <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "位清除运算,Xd = Xn AND NOT Xm",
          "flags_affected": ["N", "Z"],
          "example": "bic x0, x1, x2"
        },
        {
          "mnemonic": "orn",
          "name": "Bitwise OR NOT",
          "format": "ORN <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位或非运算,Xd = Xn OR NOT Xm",
          "flags_affected": ["N", "Z"],
          "example": "orn x0, x1, x2"
        },
        {
          "mnemonic": "eon",
          "name": "Bitwise Exclusive OR NOT",
          "format": "EON <Xd|Wd>, <Xn|Wn>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位异或非运算,Xd = Xn EOR NOT Xm",
          "flags_affected": ["N", "Z"],
          "example": "eon x0, x1, x2"
        },
        {
          "mnemonic": "mvn",
          "name": "Bitwise NOT",
          "format": "MVN <Xd|Wd>, <Xm|Wm>{, <shift> #<amount>}",
          "description": "按位取反运算",
          "flags_affected": [],
          "example": "mvn x0, x1"
        }
      ],
      "shift": [
        {
          "mnemonic": "lsl",
          "name": "Logical Shift Left",
          "format": "LSL <Xd|Wd>, <Xn|Wn>, #<shift>",
          "description": "逻辑左移",
          "flags_affected": ["N", "Z", "C"],
          "example": "lsl x0, x0, #3"
        },
        {
          "mnemonic": "lsr",
          "name": "Logical Shift Right",
          "format": "LSR <Xd|Wd>, <Xn|Wn>, #<shift>",
          "description": "逻辑右移",
          "flags_affected": ["N", "Z", "C"],
          "example": "lsr x0, x0, #3"
        },
        {
          "mnemonic": "asr",
          "name": "Arithmetic Shift Right",
          "format": "ASR <Xd|Wd>, <Xn|Wn>, #<shift>",
          "description": "算术右移(保留符号位)",
          "flags_affected": ["N", "Z", "C"],
          "example": "asr x0, x0, #3"
        },
        {
          "mnemonic": "ror",
          "name": "Rotate Right",
          "format": "ROR <Xd|Wd>, <Xs|Ws>, #<shift>",
          "description": "循环右移",
          "flags_affected": ["N", "Z", "C"],
          "example": "ror x0, x0, #3"
        }
      ],
      "bitfield": [
        {
          "mnemonic": "ubfm",
          "name": "Unsigned Bitfield Move",
          "format": "UBFM <Xd|Wd>, <Xn|Wn>, #<immr>, #<imms>",
          "description": "无符号位域移动",
          "flags_affected": [],
          "example": "ubfm x0, x1, #8, #15"
        },
        {
          "mnemonic": "sbfm",
          "name": "Signed Bitfield Move",
          "format": "SBFM <Xd|Wd>, <Xn|Wn>, #<immr>, #<imms>",
          "description": "有符号位域移动",
          "flags_affected": [],
          "example": "sbfm x0, x1, #8, #15"
        },
        {
          "mnemonic": "bfm",
          "name": "Bitfield Move",
          "format": "BFM <Xd|Wd>, <Xn|Wn>, #<immr>, #<imms>",
          "description": "位域移动(保持目标寄存器其他位不变)",
          "flags_affected": [],
          "example": "bfm x0, x1, #8, #15"
        },
        {
          "mnemonic": "bfi",
          "name": "Bitfield Insert",
          "format": "BFI <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
          "description": "位域插入",
          "flags_affected": [],
          "example": "bfi x0, x1, #8, #8"
        },
        {
          "mnemonic": "bfxil",
          "name": "Bitfield Extract and Insert Low",
          "format": "BFXIL <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
          "description": "位域提取并插入低位",
          "flags_affected": [],
          "example": "bfxil x0, x1, #8, #8"
        },
        {
          "mnemonic": "ubfx",
          "name": "Unsigned Bitfield Extract",
          "format": "UBFX <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
          "description": "无符号位域提取",
          "flags_affected": [],
          "example": "ubfx x0, x1, #8, #8"
        },
        {
          "mnemonic": "sbfx",
          "name": "Signed Bitfield Extract",
          "format": "SBFX <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
          "description": "有符号位域提取",
          "flags_affected": [],
          "example": "sbfx x0, x1, #8, #8"
        }
      ],
      "reverse": [
        {
          "mnemonic": "rev",
          "name": "Byte-Reverse",
          "format": "REV <Xd|Wd>, <Xn|Wn>",
          "description": "字节反转(大小端转换)",
          "flags_affected": [],
          "example": "rev x0, x1"
        },
        {
          "mnemonic": "rev16",
          "name": "Byte-Reverse Halfwords",
          "format": "REV16 <Xd|Wd>, <Xn|Wn>",
          "description": "半字内字节反转",
          "flags_affected": [],
          "example": "rev16 w0, w1"
        },
        {
          "mnemonic": "rev32",
          "name": "Byte-Reverse Words",
          "format": "REV32 <Xd>, <Xn>",
          "description": "字内字节反转",
          "flags_affected": [],
          "example": "rev32 x0, x1"
        },
        {
          "mnemonic": "clz",
          "name": "Count Leading Zeros",
          "format": "CLZ <Xd|Wd>, <Xn|Wn>",
          "description": "计算前导零的数量",
          "flags_affected": [],
          "example": "clz w0, w1"
        },
        {
          "mnemonic": "cls",
          "name": "Count Leading Sign bits",
          "format": "CLS <Xd|Wd>, <Xn|Wn>",
          "description": "计算前导符号位的数量",
          "flags_affected": [],
          "example": "cls w0, w1"
        },
        {
          "mnemonic": "rbit",
          "name": "Reverse Bits",
          "format": "RBIT <Xd|Wd>, <Xn|Wn>",
          "description": "位反转",
          "flags_affected": [],
          "example": "rbit x0, x1"
        }
      ]
    },
    "load_store": {
      "load": [
        {
          "mnemonic": "ldr",
          "name": "Load Register",
          "format": "LDR <Xt|Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载数据到寄存器",
          "variants": {
            "ldr_x": "加载64位数据",
            "ldr_w": "加载32位数据"
          },
          "example": "ldr x0, [sp, #8]"
        },
        {
          "mnemonic": "ldrb",
          "name": "Load Register Byte",
          "format": "LDRB <Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载一个字节到寄存器",
          "example": "ldrb w0, [x1, #5]"
        },
        {
          "mnemonic": "ldrh",
          "name": "Load Register Halfword",
          "format": "LDRH <Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载半字(16位)到寄存器",
          "example": "ldrh w0, [x1, #10]"
        },
        {
          "mnemonic": "ldp",
          "name": "Load Pair of Registers",
          "format": "LDP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载两个寄存器",
          "example": "ldp x29, x30, [sp], #64"
        },
        {
          "mnemonic": "ldrsb",
          "name": "Load Register Signed Byte",
          "format": "LDRSB <Xt|Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载有符号字节并扩展",
          "example": "ldrsb x0, [x1, #5]"
        },
        {
          "mnemonic": "ldrsh",
          "name": "Load Register Signed Halfword",
          "format": "LDRSH <Xt|Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载有符号半字并扩展",
          "example": "ldrsh x0, [x1, #10]"
        },
        {
          "mnemonic": "ldrsw",
          "name": "Load Register Signed Word",
          "format": "LDRSW <Xt>, [<Xn|SP>{, #<imm>}]",
          "description": "从内存加载有符号字(32位)并扩展到64位",
          "example": "ldrsw x0, [x1, #16]"
        },
        {
          "mnemonic": "ldur",
          "name": "Load Register (Unscaled)",
          "format": "LDUR <Xt|Wt>, [<Xn|SP>{, #<simm>}]",
          "description": "从内存加载数据(非缩放偏移)",
          "example": "ldur x0, [sp, #-8]"
        },
        {
          "mnemonic": "ldxr",
          "name": "Load Exclusive Register",
          "format": "LDXR <Wt|Xt>, [<Xn|SP>{, #0}]",
          "description": "独占加载(用于原子操作)",
          "example": "ldxr w0, [x1]"
        },
        {
          "mnemonic": "ldar",
          "name": "Load-Acquire Register",
          "format": "LDAR <Wt|Xt>, [<Xn|SP>{, #0}]",
          "description": "带获取语义的加载(内存屏障)",
          "example": "ldar w0, [x1]"
        }
      ],
      "store": [
        {
          "mnemonic": "str",
          "name": "Store Register",
          "format": "STR <Xt|Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "将寄存器数据存储到内存",
          "variants": {
            "str_x": "存储64位数据",
            "str_w": "存储32位数据"
          },
          "example": "str x0, [sp, #8]"
        },
        {
          "mnemonic": "strb",
          "name": "Store Register Byte",
          "format": "STRB <Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "将寄存器的一个字节存储到内存",
          "example": "strb w0, [x1, #5]"
        },
        {
          "mnemonic": "strh",
          "name": "Store Register Halfword",
          "format": "STRH <Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "将寄存器的半字(16位)存储到内存",
          "example": "strh w0, [x1, #10]"
        },
        {
          "mnemonic": "stp",
          "name": "Store Pair of Registers",
          "format": "STP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}]",
          "description": "将两个寄存器存储到内存",
          "example": "stp x29, x30, [sp, #-64]!"
        },
        {
          "mnemonic": "stur",
          "name": "Store Register (Unscaled)",
          "format": "STUR <Xt|Wt>, [<Xn|SP>{, #<simm>}]",
          "description": "将寄存器存储到内存(非缩放偏移)",
          "example": "stur x0, [sp, #-8]"
        },
        {
          "mnemonic": "stxr",
          "name": "Store Exclusive Register",
          "format": "STXR <Ws>, <Wt|Xt>, [<Xn|SP>{, #0}]",
          "description": "独占存储(用于原子操作)",
          "example": "stxr w2, w0, [x1]"
        },
        {
          "mnemonic": "stlr",
          "name": "Store-Release Register",
          "format": "STLR <Wt|Xt>, [<Xn|SP>{, #0}]",
          "description": "带释放语义的存储(内存屏障)",
          "example": "stlr w0, [x1]"
        },
        {
          "mnemonic": "strh",
          "name": "Store Register Halfword",
          "format": "STRH <Wt>, [<Xn|SP>{, #<imm>}]",
          "description": "将寄存器的半字(16位)存储到内存",
          "example": "strh w0, [x1, #10]"
        },
        {
          "mnemonic": "stp",
          "name": "Store Pair of Registers",
          "format": "STP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}]",
          "description": "将两个寄存器存储到内存",
          "example": "stp x29, x30, [sp, #-64]!"
        }
      ]
    },
    "branch": {
      "unconditional": [
        {
          "mnemonic": "b",
          "name": "Branch",
          "format": "B <label>",
          "description": "无条件跳转到指定标签",
          "example": "b 150"
        },
        {
          "mnemonic": "bl",
          "name": "Branch with Link",
          "format": "BL <label>",
          "description": "跳转并保存返回地址到X30(链接寄存器)",
          "example": "bl 2830"
        },
        {
          "mnemonic": "br",
          "name": "Branch to Register",
          "format": "BR <Xn>",
          "description": "跳转到寄存器中的地址",
          "example": "br x0"
        },
        {
          "mnemonic": "ret",
          "name": "Return from subroutine",
          "format": "RET {<Xn>}",
          "description": "从子程序返回,默认使用X30",
          "example": "ret"
        }
      ],
      "conditional": [
        {
          "mnemonic": "b.eq",
          "name": "Branch if Equal",
          "format": "B.EQ <label>",
          "description": "如果相等则跳转(Z=1)",
          "condition": "Z == 1",
          "example": "b.eq 24"
        },
        {
          "mnemonic": "b.ne",
          "name": "Branch if Not Equal",
          "format": "B.NE <label>",
          "description": "如果不相等则跳转(Z=0)",
          "condition": "Z == 0",
          "example": "b.ne 2c"
        },
        {
          "mnemonic": "b.cs",
          "name": "Branch if Carry Set",
          "format": "B.CS <label>",
          "description": "如果进位标志置位则跳转(C=1)",
          "condition": "C == 1",
          "example": "b.cs 100"
        },
        {
          "mnemonic": "b.cc",
          "name": "Branch if Carry Clear",
          "format": "B.CC <label>",
          "description": "如果进位标志清零则跳转(C=0)",
          "condition": "C == 0",
          "example": "b.cc a4",
          "aliases": ["b.lo", "b.ul", "b.last"]
        },
        {
          "mnemonic": "b.mi",
          "name": "Branch if Minus",
          "format": "B.MI <label>",
          "description": "如果结果为负则跳转(N=1)",
          "condition": "N == 1",
          "example": "b.mi 200"
        },
        {
          "mnemonic": "b.pl",
          "name": "Branch if Plus",
          "format": "B.PL <label>",
          "description": "如果结果为正或零则跳转(N=0)",
          "condition": "N == 0",
          "example": "b.pl 300"
        },
        {
          "mnemonic": "b.vs",
          "name": "Branch if Overflow Set",
          "format": "B.VS <label>",
          "description": "如果溢出标志置位则跳转(V=1)",
          "condition": "V == 1",
          "example": "b.vs 400"
        },
        {
          "mnemonic": "b.vc",
          "name": "Branch if Overflow Clear",
          "format": "B.VC <label>",
          "description": "如果溢出标志清零则跳转(V=0)",
          "condition": "V == 0",
          "example": "b.vc 500"
        },
        {
          "mnemonic": "b.hi",
          "name": "Branch if Higher (unsigned)",
          "format": "B.HI <label>",
          "description": "无符号大于时跳转(C=1 且 Z=0)",
          "condition": "C == 1 && Z == 0",
          "example": "b.hi 5c",
          "aliases": ["b.pmore"]
        },
        {
          "mnemonic": "b.ls",
          "name": "Branch if Lower or Same (unsigned)",
          "format": "B.LS <label>",
          "description": "无符号小于等于时跳转(C=0 或 Z=1)",
          "condition": "C == 0 || Z == 1",
          "example": "b.ls 64",
          "aliases": ["b.plast"]
        },
        {
          "mnemonic": "b.ge",
          "name": "Branch if Greater or Equal (signed)",
          "format": "B.GE <label>",
          "description": "有符号大于等于时跳转(N=V)",
          "condition": "N == V",
          "example": "b.ge 600"
        },
        {
          "mnemonic": "b.lt",
          "name": "Branch if Less Than (signed)",
          "format": "B.LT <label>",
          "description": "有符号小于时跳转(N!=V)",
          "condition": "N != V",
          "example": "b.lt 700"
        },
        {
          "mnemonic": "b.gt",
          "name": "Branch if Greater Than (signed)",
          "format": "B.GT <label>",
          "description": "有符号大于时跳转(Z=0 且 N=V)",
          "condition": "Z == 0 && N == V",
          "example": "b.gt 800"
        },
        {
          "mnemonic": "b.le",
          "name": "Branch if Less or Equal (signed)",
          "format": "B.LE <label>",
          "description": "有符号小于等于时跳转(Z=1 或 N!=V)",
          "condition": "Z == 1 || N != V",
          "example": "b.le 900"
        }
      ],
      "compare_and_branch": [
        {
          "mnemonic": "cbz",
          "name": "Compare and Branch if Zero",
          "format": "CBZ <Xt|Wt>, <label>",
          "description": "如果寄存器值为零则跳转",
          "example": "cbz x0, 100"
        },
        {
          "mnemonic": "cbnz",
          "name": "Compare and Branch if Not Zero",
          "format": "CBNZ <Xt|Wt>, <label>",
          "description": "如果寄存器值不为零则跳转",
          "example": "cbnz x0, 200"
        }
      ]
    },
    "comparison": [
      {
        "mnemonic": "cmp",
        "name": "Compare",
        "format": "CMP <Xn|Wn>, <Xm|Wm|#imm>",
        "description": "比较两个值,设置条件标志(相当于 SUB 但不保存结果)",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "cmp x0, #0x0"
      },
      {
        "mnemonic": "cmn",
        "name": "Compare Negative",
        "format": "CMN <Xn|Wn>, <Xm|Wm|#imm>",
        "description": "比较和负数,设置条件标志(相当于 ADD 但不保存结果)",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "cmn x0, #5"
      },
      {
        "mnemonic": "tst",
        "name": "Test bits",
        "format": "TST <Xn|Wn>, <Xm|Wm|#imm>",
        "description": "测试位(相当于 AND 但不保存结果)",
        "flags_affected": ["N", "Z"],
        "example": "tst x0, #0xff"
      }
    ],
    "move": [
      {
        "mnemonic": "mov",
        "name": "Move",
        "format": "MOV <Xd|Wd>, <Xm|Wm|#imm>",
        "description": "移动数据到寄存器",
        "example": "mov w0, #0x0"
      },
      {
        "mnemonic": "movz",
        "name": "Move with Zero",
        "format": "MOVZ <Xd|Wd>, #<imm>{, LSL #<shift>}",
        "description": "移动立即数并将其他位清零",
        "example": "movz x0, #0x1234"
      },
      {
        "mnemonic": "movk",
        "name": "Move with Keep",
        "format": "MOVK <Xd|Wd>, #<imm>{, LSL #<shift>}",
        "description": "移动立即数但保持其他位不变",
        "example": "movk x0, #0x5678, lsl #16"
      },
      {
        "mnemonic": "movn",
        "name": "Move with NOT",
        "format": "MOVN <Xd|Wd>, #<imm>{, LSL #<shift>}",
        "description": "移动立即数的反码",
        "example": "movn x0, #0xff"
      }
    ],
    "system": [
      {
        "mnemonic": "nop",
        "name": "No Operation",
        "format": "NOP",
        "description": "空操作,不执行任何动作",
        "example": "nop"
      },
      {
        "mnemonic": "svc",
        "name": "Supervisor Call",
        "format": "SVC #<imm>",
        "description": "系统调用,触发异常进入操作系统",
        "example": "svc #0"
      },
      {
        "mnemonic": "hlt",
        "name": "Halt",
        "format": "HLT #<imm>",
        "description": "停机指令",
        "example": "hlt #0"
      },
      {
        "mnemonic": "brk",
        "name": "Breakpoint",
        "format": "BRK #<imm>",
        "description": "断点指令,用于调试",
        "example": "brk #0"
      },
      {
        "mnemonic": "dmb",
        "name": "Data Memory Barrier",
        "format": "DMB <option>",
        "description": "数据内存屏障,确保内存访问顺序",
        "example": "dmb sy"
      },
      {
        "mnemonic": "dsb",
        "name": "Data Synchronization Barrier",
        "format": "DSB <option>",
        "description": "数据同步屏障",
        "example": "dsb sy"
      },
      {
        "mnemonic": "isb",
        "name": "Instruction Synchronization Barrier",
        "format": "ISB {<option>}",
        "description": "指令同步屏障",
        "example": "isb"
      },
      {
        "mnemonic": "mrs",
        "name": "Move to Register from System",
        "format": "MRS <Xt>, <systemreg>",
        "description": "从系统寄存器读取到通用寄存器",
        "example": "mrs x0, nzcv"
      },
      {
        "mnemonic": "msr",
        "name": "Move to System from Register",
        "format": "MSR <systemreg>, <Xt>",
        "description": "从通用寄存器写入到系统寄存器",
        "example": "msr nzcv, x0"
      },
      {
        "mnemonic": "wfe",
        "name": "Wait For Event",
        "format": "WFE",
        "description": "等待事件",
        "example": "wfe"
      },
      {
        "mnemonic": "wfi",
        "name": "Wait For Interrupt",
        "format": "WFI",
        "description": "等待中断",
        "example": "wfi"
      },
      {
        "mnemonic": "yield",
        "name": "Yield",
        "format": "YIELD",
        "description": "让出处理器",
        "example": "yield"
      }
    ],
    "floating_point": {
      "arithmetic": [
        {
          "mnemonic": "fadd",
          "name": "Floating-point Add",
          "format": "FADD <Sd|Dd>, <Sn|Dn>, <Sm|Dm>",
          "description": "浮点加法",
          "example": "fadd d0, d1, d2"
        },
        {
          "mnemonic": "fsub",
          "name": "Floating-point Subtract",
          "format": "FSUB <Sd|Dd>, <Sn|Dn>, <Sm|Dm>",
          "description": "浮点减法",
          "example": "fsub d0, d1, d2"
        },
        {
          "mnemonic": "fmul",
          "name": "Floating-point Multiply",
          "format": "FMUL <Sd|Dd>, <Sn|Dn>, <Sm|Dm>",
          "description": "浮点乘法",
          "example": "fmul d0, d1, d2"
        },
        {
          "mnemonic": "fdiv",
          "name": "Floating-point Divide",
          "format": "FDIV <Sd|Dd>, <Sn|Dn>, <Sm|Dm>",
          "description": "浮点除法",
          "example": "fdiv d0, d1, d2"
        },
        {
          "mnemonic": "fmadd",
          "name": "Floating-point Multiply-Add",
          "format": "FMADD <Sd|Dd>, <Sn|Dn>, <Sm|Dm>, <Sa|Da>",
          "description": "浮点乘加,Sd = Sa + Sn * Sm",
          "example": "fmadd d0, d1, d2, d3"
        },
        {
          "mnemonic": "fmsub",
          "name": "Floating-point Multiply-Subtract",
          "format": "FMSUB <Sd|Dd>, <Sn|Dn>, <Sm|Dm>, <Sa|Da>",
          "description": "浮点乘减,Sd = Sa - Sn * Sm",
          "example": "fmsub d0, d1, d2, d3"
        },
        {
          "mnemonic": "fneg",
          "name": "Floating-point Negate",
          "format": "FNEG <Sd|Dd>, <Sn|Dn>",
          "description": "浮点取负",
          "example": "fneg d0, d1"
        },
        {
          "mnemonic": "fabs",
          "name": "Floating-point Absolute",
          "format": "FABS <Sd|Dd>, <Sn|Dn>",
          "description": "浮点绝对值",
          "example": "fabs d0, d1"
        },
        {
          "mnemonic": "fsqrt",
          "name": "Floating-point Square Root",
          "format": "FSQRT <Sd|Dd>, <Sn|Dn>",
          "description": "浮点平方根",
          "example": "fsqrt d0, d1"
        }
      ],
      "compare": [
        {
          "mnemonic": "fcmp",
          "name": "Floating-point Compare",
          "format": "FCMP <Sn|Dn>, <Sm|Dm|#0.0>",
          "description": "浮点比较",
          "example": "fcmp d0, d1"
        },
        {
          "mnemonic": "fcmpe",
          "name": "Floating-point Compare with Exception",
          "format": "FCMPE <Sn|Dn>, <Sm|Dm|#0.0>",
          "description": "浮点比较(带异常)",
          "example": "fcmpe d0, #0.0"
        }
      ],
      "conversion": [
        {
          "mnemonic": "fcvt",
          "name": "Floating-point Convert",
          "format": "FCVT <Sd|Dd|Hd>, <Sn|Dn|Hn>",
          "description": "浮点格式转换",
          "example": "fcvt d0, s1"
        },
        {
          "mnemonic": "fcvtzs",
          "name": "Floating-point Convert to Signed integer, round toward Zero",
          "format": "FCVTZS <Wd|Xd>, <Sn|Dn>",
          "description": "浮点转有符号整数(向零舍入)",
          "example": "fcvtzs w0, d1"
        },
        {
          "mnemonic": "fcvtzu",
          "name": "Floating-point Convert to Unsigned integer, round toward Zero",
          "format": "FCVTZU <Wd|Xd>, <Sn|Dn>",
          "description": "浮点转无符号整数(向零舍入)",
          "example": "fcvtzu w0, d1"
        },
        {
          "mnemonic": "scvtf",
          "name": "Signed integer Convert to Floating-point",
          "format": "SCVTF <Sd|Dd>, <Wn|Xn>",
          "description": "有符号整数转浮点",
          "example": "scvtf d0, w1"
        },
        {
          "mnemonic": "ucvtf",
          "name": "Unsigned integer Convert to Floating-point",
          "format": "UCVTF <Sd|Dd>, <Wn|Xn>",
          "description": "无符号整数转浮点",
          "example": "ucvtf d0, w1"
        }
      ],
      "move": [
        {
          "mnemonic": "fmov",
          "name": "Floating-point Move",
          "format": "FMOV <Sd|Dd>, <Sn|Dn|#imm>",
          "description": "浮点寄存器间移动或加载立即数",
          "example": "fmov d0, d1"
        },
        {
          "mnemonic": "fmov",
          "name": "Floating-point Move to/from general register",
          "format": "FMOV <Wd|Xd>, <Sn|Dn>",
          "description": "浮点寄存器与通用寄存器间移动",
          "example": "fmov x0, d1"
        }
      ]
    },
    "simd": {
      "arithmetic": [
        {
          "mnemonic": "add",
          "name": "Vector Add",
          "format": "ADD <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量加法",
          "example": "add v0.4s, v1.4s, v2.4s"
        },
        {
          "mnemonic": "sub",
          "name": "Vector Subtract",
          "format": "SUB <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量减法",
          "example": "sub v0.4s, v1.4s, v2.4s"
        },
        {
          "mnemonic": "mul",
          "name": "Vector Multiply",
          "format": "MUL <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量乘法",
          "example": "mul v0.4s, v1.4s, v2.4s"
        },
        {
          "mnemonic": "mla",
          "name": "Vector Multiply-Accumulate",
          "format": "MLA <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量乘累加,Vd = Vd + Vn * Vm",
          "example": "mla v0.4s, v1.4s, v2.4s"
        },
        {
          "mnemonic": "mls",
          "name": "Vector Multiply-Subtract",
          "format": "MLS <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量乘减,Vd = Vd - Vn * Vm",
          "example": "mls v0.4s, v1.4s, v2.4s"
        }
      ],
      "logical": [
        {
          "mnemonic": "and",
          "name": "Vector AND",
          "format": "AND <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量按位与",
          "example": "and v0.16b, v1.16b, v2.16b"
        },
        {
          "mnemonic": "orr",
          "name": "Vector OR",
          "format": "ORR <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量按位或",
          "example": "orr v0.16b, v1.16b, v2.16b"
        },
        {
          "mnemonic": "eor",
          "name": "Vector Exclusive OR",
          "format": "EOR <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
          "description": "向量按位异或",
          "example": "eor v0.16b, v1.16b, v2.16b"
        }
      ],
      "load_store": [
        {
          "mnemonic": "ld1",
          "name": "Load one single-element structure",
          "format": "LD1 {<Vt>.<T>}, [<Xn|SP>]",
          "description": "加载单个向量元素结构",
          "example": "ld1 {v0.4s}, [x0]"
        },
        {
          "mnemonic": "st1",
          "name": "Store one single-element structure",
          "format": "ST1 {<Vt>.<T>}, [<Xn|SP>]",
          "description": "存储单个向量元素结构",
          "example": "st1 {v0.4s}, [x0]"
        },
        {
          "mnemonic": "ld2",
          "name": "Load two single-element structures",
          "format": "LD2 {<Vt>.<T>, <Vt2>.<T>}, [<Xn|SP>]",
          "description": "加载两个向量元素结构",
          "example": "ld2 {v0.4s, v1.4s}, [x0]"
        },
        {
          "mnemonic": "st2",
          "name": "Store two single-element structures",
          "format": "ST2 {<Vt>.<T>, <Vt2>.<T>}, [<Xn|SP>]",
          "description": "存储两个向量元素结构",
          "example": "st2 {v0.4s, v1.4s}, [x0]"
        }
      ]
    },
    "special_registers": [
      {
        "mnemonic": "mrs",
        "name": "Move to Register from System register",
        "format": "MRS <Xt>, <systemreg>",
        "description": "从系统寄存器读取到通用寄存器",
        "example": "mrs x0, NZCV"
      },
      {
        "mnemonic": "msr",
        "name": "Move to System register from Register",
        "format": "MSR <systemreg>, <Xt>",
        "description": "从通用寄存器写入到系统寄存器",
        "example": "msr NZCV, x0"
      }
    ]
  },
  "registers": {
    "general_purpose": {
      "64bit": ["x0", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17", "x18", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "x29", "x30"],
      "32bit": ["w0", "w1", "w2", "w3", "w4", "w5", "w6", "w7", "w8", "w9", "w10", "w11", "w12", "w13", "w14", "w15", "w16", "w17", "w18", "w19", "w20", "w21", "w22", "w23", "w24", "w25", "w26", "w27", "w28", "w29", "w30"]
    },
    "special": {
      "sp": "Stack Pointer (栈指针)",
      "x29": "Frame Pointer (帧指针, FP)",
      "x30": "Link Register (链接寄存器, LR)",
      "pc": "Program Counter (程序计数器)",
      "xzr": "Zero Register (零寄存器, 64位)",
      "wzr": "Zero Register (零寄存器, 32位)"
    },
    "flags": {
      "N": "Negative flag (负数标志)",
      "Z": "Zero flag (零标志)",
      "C": "Carry flag (进位标志)",
      "V": "Overflow flag (溢出标志)"
    }
  },
  "addressing_modes": [
    {
      "name": "Base register only",
      "format": "[Xn]",
      "description": "基址寄存器寻址",
      "example": "ldr x0, [x1]"
    },
    {
      "name": "Base plus offset",
      "format": "[Xn, #imm]",
      "description": "基址加偏移量寻址",
      "example": "ldr x0, [sp, #8]"
    },
    {
      "name": "Pre-indexed",
      "format": "[Xn, #imm]!",
      "description": "先修改基址再访问",
      "example": "ldr x0, [x1, #8]!"
    },
    {
      "name": "Post-indexed",
      "format": "[Xn], #imm",
      "description": "先访问再修改基址",
      "example": "ldr x0, [x1], #8"
    },
    {
      "name": "Register offset",
      "format": "[Xn, Xm]",
      "description": "基址加寄存器偏移",
      "example": "ldr x0, [x1, x2]"
    },
    {
      "name": "Extended register offset",
      "format": "[Xn, Wm, <extend> {#<amount>}]",
      "description": "基址加扩展寄存器偏移",
      "example": "ldr x0, [x1, w2, uxtw #3]"
    }
  ],
  "atomic_operations": {
    "load_store": [
      {
        "mnemonic": "ldadd",
        "name": "Atomic Add",
        "format": "LDADD <Xs>, <Xt>, [<Xn|SP>]",
        "description": "原子加法,将Xs的值加到内存[Xn],原值加载到Xt",
        "flags_affected": [],
        "example": "ldadd x1, x2, [x0]"
      },
      {
        "mnemonic": "ldaddal",
        "name": "Atomic Add (Acquire, Release)",
        "format": "LDADDAL <Xs>, <Xt>, [<Xn|SP>]",
        "description": "带获取-释放语义的原子加法",
        "flags_affected": [],
        "example": "ldaddal w1, w2, [x0]"
      },
      {
        "mnemonic": "ldclr",
        "name": "Atomic Clear",
        "format": "LDCLR <Xs>, <Xt>, [<Xn|SP>]",
        "description": "原子清除位,将[Xn] AND NOT Xs的结果存回内存,原值加载到Xt",
        "flags_affected": [],
        "example": "ldclr x1, x2, [x0]"
      },
      {
        "mnemonic": "ldeor",
        "name": "Atomic Exclusive OR",
        "format": "LDEOR <Xs>, <Xt>, [<Xn|SP>]",
        "description": "原子异或,将[Xn] XOR Xs的结果存回内存",
        "flags_affected": [],
        "example": "ldeor x1, x2, [x0]"
      },
      {
        "mnemonic": "ldset",
        "name": "Atomic Set",
        "format": "LDSET <Xs>, <Xt>, [<Xn|SP>]",
        "description": "原子置位,将[Xn] OR Xs的结果存回内存",
        "flags_affected": [],
        "example": "ldset x1, x2, [x0]"
      },
      {
        "mnemonic": "swp",
        "name": "Swap",
        "format": "SWP <Xs>, <Xt>, [<Xn|SP>]",
        "description": "原子交换,将Xs的值存入[Xn],原值加载到Xt",
        "flags_affected": [],
        "example": "swp x1, x2, [x0]"
      },
      {
        "mnemonic": "cas",
        "name": "Compare and Swap",
        "format": "CAS <Xs>, <Xt>, [<Xn|SP>]",
        "description": "比较并交换,如果[Xn]等于Xs则将Xt存入[Xn]",
        "flags_affected": [],
        "example": "cas x1, x2, [x0]"
      },
      {
        "mnemonic": "casal",
        "name": "Compare and Swap (Acquire, Release)",
        "format": "CASAL <Xs>, <Xt>, [<Xn|SP>]",
        "description": "带获取-释放语义的比较并交换",
        "flags_affected": [],
        "example": "casal x1, x2, [x0]"
      }
    ]
  },
  "cryptographic": {
    "aes": [
      {
        "mnemonic": "aese",
        "name": "AES Encrypt",
        "format": "AESE <Vd>.16B, <Vn>.16B",
        "description": "AES单轮加密",
        "flags_affected": [],
        "example": "aese v0.16b, v1.16b"
      },
      {
        "mnemonic": "aesd",
        "name": "AES Decrypt",
        "format": "AESD <Vd>.16B, <Vn>.16B",
        "description": "AES单轮解密",
        "flags_affected": [],
        "example": "aesd v0.16b, v1.16b"
      },
      {
        "mnemonic": "aesmc",
        "name": "AES Mix Columns",
        "format": "AESMC <Vd>.16B, <Vn>.16B",
        "description": "AES列混合变换",
        "flags_affected": [],
        "example": "aesmc v0.16b, v1.16b"
      },
      {
        "mnemonic": "aesimc",
        "name": "AES Inverse Mix Columns",
        "format": "AESIMC <Vd>.16B, <Vn>.16B",
        "description": "AES逆列混合变换",
        "flags_affected": [],
        "example": "aesimc v0.16b, v1.16b"
      }
    ],
    "sha": [
      {
        "mnemonic": "sha1c",
        "name": "SHA1 Hash Update (Choose)",
        "format": "SHA1C <Qd>, <Sn>, <Vm>.4S",
        "description": "SHA1哈希更新(选择函数)",
        "flags_affected": [],
        "example": "sha1c q0, s1, v2.4s"
      },
      {
        "mnemonic": "sha1h",
        "name": "SHA1 Fixed Rotate",
        "format": "SHA1H <Sd>, <Sn>",
        "description": "SHA1固定旋转",
        "flags_affected": [],
        "example": "sha1h s0, s1"
      },
      {
        "mnemonic": "sha1m",
        "name": "SHA1 Hash Update (Majority)",
        "format": "SHA1M <Qd>, <Sn>, <Vm>.4S",
        "description": "SHA1哈希更新(多数函数)",
        "flags_affected": [],
        "example": "sha1m q0, s1, v2.4s"
      },
      {
        "mnemonic": "sha1p",
        "name": "SHA1 Hash Update (Parity)",
        "format": "SHA1P <Qd>, <Sn>, <Vm>.4S",
        "description": "SHA1哈希更新(奇偶函数)",
        "flags_affected": [],
        "example": "sha1p q0, s1, v2.4s"
      },
      {
        "mnemonic": "sha256h",
        "name": "SHA256 Hash Update Part 1",
        "format": "SHA256H <Qd>, <Qn>, <Vm>.4S",
        "description": "SHA256哈希更新第1部分",
        "flags_affected": [],
        "example": "sha256h q0, q1, v2.4s"
      },
      {
        "mnemonic": "sha256h2",
        "name": "SHA256 Hash Update Part 2",
        "format": "SHA256H2 <Qd>, <Qn>, <Vm>.4S",
        "description": "SHA256哈希更新第2部分",
        "flags_affected": [],
        "example": "sha256h2 q0, q1, v2.4s"
      },
      {
        "mnemonic": "sha256su0",
        "name": "SHA256 Schedule Update 0",
        "format": "SHA256SU0 <Vd>.4S, <Vn>.4S",
        "description": "SHA256消息调度更新0",
        "flags_affected": [],
        "example": "sha256su0 v0.4s, v1.4s"
      },
      {
        "mnemonic": "sha256su1",
        "name": "SHA256 Schedule Update 1",
        "format": "SHA256SU1 <Vd>.4S, <Vn>.4S, <Vm>.4S",
        "description": "SHA256消息调度更新1",
        "flags_affected": [],
        "example": "sha256su1 v0.4s, v1.4s, v2.4s"
      }
    ]
  },
  "crc": [
    {
      "mnemonic": "crc32b",
      "name": "CRC32 Byte",
      "format": "CRC32B <Wd>, <Wn>, <Wm>",
      "description": "CRC32校验(字节)",
      "flags_affected": [],
      "example": "crc32b w0, w1, w2"
    },
    {
      "mnemonic": "crc32h",
      "name": "CRC32 Halfword",
      "format": "CRC32H <Wd>, <Wn>, <Wm>",
      "description": "CRC32校验(半字)",
      "flags_affected": [],
      "example": "crc32h w0, w1, w2"
    },
    {
      "mnemonic": "crc32w",
      "name": "CRC32 Word",
      "format": "CRC32W <Wd>, <Wn>, <Wm>",
      "description": "CRC32校验(字)",
      "flags_affected": [],
      "example": "crc32w w0, w1, w2"
    },
    {
      "mnemonic": "crc32x",
      "name": "CRC32 Doubleword",
      "format": "CRC32X <Wd>, <Wn>, <Xm>",
      "description": "CRC32校验(双字)",
      "flags_affected": [],
      "example": "crc32x w0, w1, x2"
    },
    {
      "mnemonic": "crc32cb",
      "name": "CRC32C Byte",
      "format": "CRC32CB <Wd>, <Wn>, <Wm>",
      "description": "CRC32C校验(字节)Castagnoli多项式",
      "flags_affected": [],
      "example": "crc32cb w0, w1, w2"
    }
  ],
  "advanced_simd": {
    "reduction": [
      {
        "mnemonic": "addv",
        "name": "Add across Vector",
        "format": "ADDV <V><d>, <Vn>.<T>",
        "description": "向量元素求和归约",
        "flags_affected": [],
        "example": "addv s0, v1.4s"
      },
      {
        "mnemonic": "smaxv",
        "name": "Signed Maximum across Vector",
        "format": "SMAXV <V><d>, <Vn>.<T>",
        "description": "有符号向量元素求最大值",
        "flags_affected": [],
        "example": "smaxv s0, v1.4s"
      },
      {
        "mnemonic": "sminv",
        "name": "Signed Minimum across Vector",
        "format": "SMINV <V><d>, <Vn>.<T>",
        "description": "有符号向量元素求最小值",
        "flags_affected": [],
        "example": "sminv s0, v1.4s"
      },
      {
        "mnemonic": "umaxv",
        "name": "Unsigned Maximum across Vector",
        "format": "UMAXV <V><d>, <Vn>.<T>",
        "description": "无符号向量元素求最大值",
        "flags_affected": [],
        "example": "umaxv s0, v1.4s"
      }
    ],
    "permute": [
      {
        "mnemonic": "ext",
        "name": "Extract",
        "format": "EXT <Vd>.<T>, <Vn>.<T>, <Vm>.<T>, #<index>",
        "description": "从两个向量中提取元素并连接",
        "flags_affected": [],
        "example": "ext v0.16b, v1.16b, v2.16b, #4"
      },
      {
        "mnemonic": "zip1",
        "name": "Zip vectors (primary)",
        "format": "ZIP1 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "交错合并向量(低半部分)",
        "flags_affected": [],
        "example": "zip1 v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "zip2",
        "name": "Zip vectors (secondary)",
        "format": "ZIP2 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "交错合并向量(高半部分)",
        "flags_affected": [],
        "example": "zip2 v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "uzp1",
        "name": "Unzip vectors (primary)",
        "format": "UZP1 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "解交错向量(偶数元素)",
        "flags_affected": [],
        "example": "uzp1 v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "trn1",
        "name": "Transpose vectors (primary)",
        "format": "TRN1 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "转置向量(第1部分)",
        "flags_affected": [],
        "example": "trn1 v0.4s, v1.4s, v2.4s"
      }
    ],
    "table_lookup": [
      {
        "mnemonic": "tbl",
        "name": "Table Lookup",
        "format": "TBL <Vd>.<Ta>, {<Vn>.16B, ...}, <Vm>.<Ta>",
        "description": "表查找,根据索引从表中查找元素",
        "flags_affected": [],
        "example": "tbl v0.16b, {v1.16b, v2.16b}, v3.16b"
      },
      {
        "mnemonic": "tbx",
        "name": "Table Lookup Extension",
        "format": "TBX <Vd>.<Ta>, {<Vn>.16B, ...}, <Vm>.<Ta>",
        "description": "表查找扩展,索引越界时保留原值",
        "flags_affected": [],
        "example": "tbx v0.16b, {v1.16b}, v2.16b"
      }
    ]
  },
  "pointer_authentication": [
    {
      "mnemonic": "pacia",
      "name": "Pointer Authentication Code for Instruction address",
      "format": "PACIA <Xd>, <Xn|SP>",
      "description": "为指令地址生成指针认证码",
      "flags_affected": [],
      "example": "pacia x0, x1"
    },
    {
      "mnemonic": "pacda",
      "name": "Pointer Authentication Code for Data address",
      "format": "PACDA <Xd>, <Xn|SP>",
      "description": "为数据地址生成指针认证码",
      "flags_affected": [],
      "example": "pacda x0, x1"
    },
    {
      "mnemonic": "autia",
      "name": "Authenticate Instruction address",
      "format": "AUTIA <Xd>, <Xn|SP>",
      "description": "验证指令地址的指针认证码",
      "flags_affected": [],
      "example": "autia x0, x1"
    },
    {
      "mnemonic": "autda",
      "name": "Authenticate Data address",
      "format": "AUTDA <Xd>, <Xn|SP>",
      "description": "验证数据地址的指针认证码",
      "flags_affected": [],
      "example": "autda x0, x1"
    }
  ],
  "memory_tagging": [
    {
      "mnemonic": "irg",
      "name": "Insert Random Tag",
      "format": "IRG <Xd|SP>, <Xn|SP>{, <Xm>}",
      "description": "插入随机内存标签",
      "flags_affected": [],
      "example": "irg x0, x1"
    },
    {
      "mnemonic": "gmi",
      "name": "Tag Mask Insert",
      "format": "GMI <Xd>, <Xn|SP>, <Xm>",
      "description": "插入标签掩码",
      "flags_affected": [],
      "example": "gmi x0, x1, x2"
    },
    {
      "mnemonic": "ldg",
      "name": "Load Allocation Tag",
      "format": "LDG <Xt>, [<Xn|SP>{, #<simm>}]",
      "description": "加载内存分配标签",
      "flags_affected": [],
      "example": "ldg x0, [x1]"
    },
    {
      "mnemonic": "stg",
      "name": "Store Allocation Tag",
      "format": "STG [<Xn|SP>], #<simm>",
      "description": "存储内存分配标签",
      "flags_affected": [],
      "example": "stg [x0], #16"
    }
  ],
  "conditional_operations": {
    "name": "条件操作指令",
    "description": "根据条件标志位执行选择、递增、取反等操作",
    "instructions": [
      {
        "mnemonic": "csel",
        "name": "Conditional Select",
        "format": "CSEL <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <cond>",
        "description": "条件选择,如果条件为真选择Xn,否则选择Xm",
        "flags_affected": [],
        "example": "csel x0, x1, x2, eq"
      },
      {
        "mnemonic": "csinc",
        "name": "Conditional Select Increment",
        "format": "CSINC <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <cond>",
        "description": "条件选择并递增,如果条件为真选择Xn,否则选择Xm+1",
        "flags_affected": [],
        "example": "csinc x0, x1, x2, ne"
      },
      {
        "mnemonic": "csinv",
        "name": "Conditional Select Invert",
        "format": "CSINV <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <cond>",
        "description": "条件选择并取反,如果条件为真选择Xn,否则选择NOT Xm",
        "flags_affected": [],
        "example": "csinv x0, x1, x2, gt"
      },
      {
        "mnemonic": "csneg",
        "name": "Conditional Select Negate",
        "format": "CSNEG <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, <cond>",
        "description": "条件选择并取负,如果条件为真选择Xn,否则选择-Xm",
        "flags_affected": [],
        "example": "csneg x0, x1, x2, lt"
      },
      {
        "mnemonic": "cset",
        "name": "Conditional Set",
        "format": "CSET <Xd|Wd>, <cond>",
        "description": "条件设置,如果条件为真设置为1,否则为0(CSINC的别名)",
        "flags_affected": [],
        "example": "cset w0, eq"
      },
      {
        "mnemonic": "csetm",
        "name": "Conditional Set Mask",
        "format": "CSETM <Xd|Wd>, <cond>",
        "description": "条件设置掩码,如果条件为真设置为全1,否则为0(CSINV的别名)",
        "flags_affected": [],
        "example": "csetm x0, ne"
      },
      {
        "mnemonic": "cinc",
        "name": "Conditional Increment",
        "format": "CINC <Xd|Wd>, <Xn|Wn>, <cond>",
        "description": "条件递增,如果条件为真则Xd=Xn+1,否则Xd=Xn(CSINC的别名)",
        "flags_affected": [],
        "example": "cinc w0, w1, eq"
      },
      {
        "mnemonic": "cinv",
        "name": "Conditional Invert",
        "format": "CINV <Xd|Wd>, <Xn|Wn>, <cond>",
        "description": "条件取反,如果条件为真则Xd=NOT Xn,否则Xd=Xn(CSINV的别名)",
        "flags_affected": [],
        "example": "cinv x0, x1, ne"
      },
      {
        "mnemonic": "cneg",
        "name": "Conditional Negate",
        "format": "CNEG <Xd|Wd>, <Xn|Wn>, <cond>",
        "description": "条件取负,如果条件为真则Xd=-Xn,否则Xd=Xn(CSNEG的别名)",
        "flags_affected": [],
        "example": "cneg w0, w1, lt"
      },
      {
        "mnemonic": "ccmp",
        "name": "Conditional Compare",
        "format": "CCMP <Xn|Wn>, <Xm|Wm|#imm>, #<nzcv>, <cond>",
        "description": "条件比较,如果条件为真则比较Xn和Xm并设置标志位,否则设置nzcv标志",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "ccmp x0, x1, #0, eq"
      },
      {
        "mnemonic": "ccmn",
        "name": "Conditional Compare Negative",
        "format": "CCMN <Xn|Wn>, <Xm|Wm|#imm>, #<nzcv>, <cond>",
        "description": "条件负比较,如果条件为真则比较Xn和-Xm并设置标志位,否则设置nzcv标志",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "ccmn x0, x1, #0, ne"
      }
    ]
  },
  "pc_relative_addressing": {
    "name": "PC相对地址计算",
    "description": "基于程序计数器计算地址,用于访问全局数据和位置无关代码",
    "instructions": [
      {
        "mnemonic": "adr",
        "name": "Address to Register",
        "format": "ADR <Xd>, <label>",
        "description": "将PC相对地址加载到寄存器(±1MB范围)",
        "flags_affected": [],
        "example": "adr x0, data_label"
      },
      {
        "mnemonic": "adrp",
        "name": "Address of Page to Register",
        "format": "ADRP <Xd>, <label>",
        "description": "将PC相对页地址(4KB对齐)加载到寄存器(±4GB范围),常用于访问GOT/PLT",
        "flags_affected": [],
        "example": "adrp x0, _GLOBAL_OFFSET_TABLE_"
      }
    ]
  },
  "bitfield_operations": {
    "name": "位域操作指令",
    "description": "高效的位域提取、插入和操作",
    "instructions": [
      {
        "mnemonic": "ubfiz",
        "name": "Unsigned Bitfield Insert in Zero",
        "format": "UBFIZ <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
        "description": "无符号位域插入零,从Xn的低位提取width位,左移lsb位后插入Xd,其余位清零",
        "flags_affected": [],
        "example": "ubfiz w0, w1, #3, #5"
      },
      {
        "mnemonic": "sbfiz",
        "name": "Signed Bitfield Insert in Zero",
        "format": "SBFIZ <Xd|Wd>, <Xn|Wn>, #<lsb>, #<width>",
        "description": "有符号位域插入零,从Xn的低位提取width位(符号扩展),左移lsb位后插入Xd",
        "flags_affected": [],
        "example": "sbfiz w0, w1, #2, #8"
      },
      {
        "mnemonic": "extr",
        "name": "Extract Register",
        "format": "EXTR <Xd|Wd>, <Xn|Wn>, <Xm|Wm>, #<lsb>",
        "description": "从两个寄存器拼接的值中提取位域,Xd = (Xn:Xm) >> lsb",
        "flags_affected": [],
        "example": "extr x0, x1, x2, #8"
      }
    ]
  },
  "floating_point_advanced": {
    "name": "浮点高级指令",
    "description": "浮点融合乘加、转换、取整等高性能指令",
    "instructions": [
      {
        "mnemonic": "fmla",
        "name": "Floating-point Fused Multiply-Add",
        "format": "FMLA <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点融合乘加,Vd = Vd + Vn * Vm(向量或标量),单指令高精度",
        "flags_affected": [],
        "example": "fmla v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "fmls",
        "name": "Floating-point Fused Multiply-Subtract",
        "format": "FMLS <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点融合乘减,Vd = Vd - Vn * Vm(向量或标量)",
        "flags_affected": [],
        "example": "fmls v0.2d, v1.2d, v2.2d"
      },
      {
        "mnemonic": "fmin",
        "name": "Floating-point Minimum",
        "format": "FMIN <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点最小值,选择两个浮点数中的较小值",
        "flags_affected": [],
        "example": "fmin v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "fmax",
        "name": "Floating-point Maximum",
        "format": "FMAX <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点最大值,选择两个浮点数中的较大值",
        "flags_affected": [],
        "example": "fmax v0.2d, v1.2d, v2.2d"
      },
      {
        "mnemonic": "fminnm",
        "name": "Floating-point Minimum Number",
        "format": "FMINNM <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点最小值(优先选择非NaN值)",
        "flags_affected": [],
        "example": "fminnm d0, d1, d2"
      },
      {
        "mnemonic": "fmaxnm",
        "name": "Floating-point Maximum Number",
        "format": "FMAXNM <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "浮点最大值(优先选择非NaN值)",
        "flags_affected": [],
        "example": "fmaxnm s0, s1, s2"
      },
      {
        "mnemonic": "fcvtas",
        "name": "Floating-point Convert to Signed (Round to Nearest)",
        "format": "FCVTAS <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转有符号整数(四舍五入到最近)",
        "flags_affected": [],
        "example": "fcvtas w0, s1"
      },
      {
        "mnemonic": "fcvtau",
        "name": "Floating-point Convert to Unsigned (Round to Nearest)",
        "format": "FCVTAU <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转无符号整数(四舍五入到最近)",
        "flags_affected": [],
        "example": "fcvtau x0, d1"
      },
      {
        "mnemonic": "fcvtms",
        "name": "Floating-point Convert to Signed (Round towards -∞)",
        "format": "FCVTMS <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转有符号整数(向下舍入)",
        "flags_affected": [],
        "example": "fcvtms w0, s1"
      },
      {
        "mnemonic": "fcvtmu",
        "name": "Floating-point Convert to Unsigned (Round towards -∞)",
        "format": "FCVTMU <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转无符号整数(向下舍入)",
        "flags_affected": [],
        "example": "fcvtmu x0, d1"
      },
      {
        "mnemonic": "fcvtns",
        "name": "Floating-point Convert to Signed (Round to Nearest, ties to Even)",
        "format": "FCVTNS <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转有符号整数(四舍五入,偶数舍入)",
        "flags_affected": [],
        "example": "fcvtns w0, s1"
      },
      {
        "mnemonic": "fcvtnu",
        "name": "Floating-point Convert to Unsigned (Round to Nearest, ties to Even)",
        "format": "FCVTNU <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转无符号整数(四舍五入,偶数舍入)",
        "flags_affected": [],
        "example": "fcvtnu x0, d1"
      },
      {
        "mnemonic": "fcvtps",
        "name": "Floating-point Convert to Signed (Round towards +∞)",
        "format": "FCVTPS <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转有符号整数(向上舍入)",
        "flags_affected": [],
        "example": "fcvtps w0, s1"
      },
      {
        "mnemonic": "fcvtpu",
        "name": "Floating-point Convert to Unsigned (Round towards +∞)",
        "format": "FCVTPU <Xd|Wd>, <Vn>.<T>",
        "description": "浮点转无符号整数(向上舍入)",
        "flags_affected": [],
        "example": "fcvtpu x0, d1"
      },
      {
        "mnemonic": "frinta",
        "name": "Floating-point Round to Integral (Round to Nearest)",
        "format": "FRINTA <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(四舍五入到最近整数)",
        "flags_affected": [],
        "example": "frinta d0, d1"
      },
      {
        "mnemonic": "frinti",
        "name": "Floating-point Round to Integral (Current rounding mode)",
        "format": "FRINTI <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(使用当前舍入模式)",
        "flags_affected": [],
        "example": "frinti s0, s1"
      },
      {
        "mnemonic": "frintm",
        "name": "Floating-point Round to Integral (Round towards -∞)",
        "format": "FRINTM <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(向下舍入到整数)",
        "flags_affected": [],
        "example": "frintm v0.4s, v1.4s"
      },
      {
        "mnemonic": "frintn",
        "name": "Floating-point Round to Integral (Round to Nearest, ties to Even)",
        "format": "FRINTN <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(四舍五入,偶数舍入)",
        "flags_affected": [],
        "example": "frintn d0, d1"
      },
      {
        "mnemonic": "frintp",
        "name": "Floating-point Round to Integral (Round towards +∞)",
        "format": "FRINTP <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(向上舍入到整数)",
        "flags_affected": [],
        "example": "frintp s0, s1"
      },
      {
        "mnemonic": "frintx",
        "name": "Floating-point Round to Integral Exact",
        "format": "FRINTX <Vd>.<T>, <Vn>.<T>",
        "description": "浮点精确取整(可能引发不精确异常)",
        "flags_affected": [],
        "example": "frintx d0, d1"
      },
      {
        "mnemonic": "frintz",
        "name": "Floating-point Round to Integral (Round towards Zero)",
        "format": "FRINTZ <Vd>.<T>, <Vn>.<T>",
        "description": "浮点取整(向零舍入,截断)",
        "flags_affected": [],
        "example": "frintz v0.2d, v1.2d"
      }
    ]
  },
  "simd_data_processing": {
    "name": "SIMD 数据处理指令",
    "description": "向量元素操作、累加、最值等高级 SIMD 指令",
    "instructions": [
      {
        "mnemonic": "uaddlv",
        "name": "Unsigned Add Long across Vector",
        "format": "UADDLV <Vd>, <Vn>.<T>",
        "description": "无符号向量累加(扩展),将向量所有元素累加到标量寄存器",
        "flags_affected": [],
        "example": "uaddlv h0, v1.8b"
      },
      {
        "mnemonic": "saddlv",
        "name": "Signed Add Long across Vector",
        "format": "SADDLV <Vd>, <Vn>.<T>",
        "description": "有符号向量累加(扩展),将向量所有元素累加到标量寄存器",
        "flags_affected": [],
        "example": "saddlv s0, v1.4h"
      },
      {
        "mnemonic": "uminv",
        "name": "Unsigned Minimum across Vector",
        "format": "UMINV <Vd>, <Vn>.<T>",
        "description": "无符号向量最小值,从向量中找出最小元素",
        "flags_affected": [],
        "example": "uminv b0, v1.16b"
      },
      {
        "mnemonic": "ins",
        "name": "Insert vector element from general-purpose register",
        "format": "INS <Vd>.<Ts>[<index>], <Wn|Xn>",
        "description": "从通用寄存器插入元素到向量的指定位置",
        "flags_affected": [],
        "example": "ins v0.s[1], w1"
      },
      {
        "mnemonic": "dup",
        "name": "Duplicate vector element",
        "format": "DUP <Vd>.<T>, <Vn>.<Ts>[<index>]",
        "description": "复制向量元素或标量到整个向量",
        "flags_affected": [],
        "example": "dup v0.4s, w1"
      },
      {
        "mnemonic": "uzp2",
        "name": "Unzip vectors (even elements)",
        "format": "UZP2 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "向量解交错(提取偶数位置元素)",
        "flags_affected": [],
        "example": "uzp2 v0.8b, v1.8b, v2.8b"
      },
      {
        "mnemonic": "trn2",
        "name": "Transpose vectors (odd elements)",
        "format": "TRN2 <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "向量转置(提取奇数位置元素)",
        "flags_affected": [],
        "example": "trn2 v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "cnt",
        "name": "Population Count per byte",
        "format": "CNT <Vd>.<T>, <Vn>.<T>",
        "description": "按字节统计1的个数(popcount),常用于位操作优化",
        "flags_affected": [],
        "example": "cnt v0.8b, v1.8b"
      },
      {
        "mnemonic": "sqadd",
        "name": "Signed saturating Add",
        "format": "SQADD <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "有符号饱和加法,溢出时钳位到最大/最小值",
        "flags_affected": [],
        "example": "sqadd v0.8h, v1.8h, v2.8h"
      },
      {
        "mnemonic": "uqadd",
        "name": "Unsigned saturating Add",
        "format": "UQADD <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "无符号饱和加法,溢出时钳位到最大值",
        "flags_affected": [],
        "example": "uqadd v0.16b, v1.16b, v2.16b"
      },
      {
        "mnemonic": "sqsub",
        "name": "Signed saturating Subtract",
        "format": "SQSUB <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "有符号饱和减法,溢出时钳位到最大/最小值",
        "flags_affected": [],
        "example": "sqsub v0.4s, v1.4s, v2.4s"
      },
      {
        "mnemonic": "uqsub",
        "name": "Unsigned saturating Subtract",
        "format": "UQSUB <Vd>.<T>, <Vn>.<T>, <Vm>.<T>",
        "description": "无符号饱和减法,下溢时钳位到0",
        "flags_affected": [],
        "example": "uqsub v0.2d, v1.2d, v2.2d"
      },
      {
        "mnemonic": "shl",
        "name": "Shift Left",
        "format": "SHL <Vd>.<T>, <Vn>.<T>, #<shift>",
        "description": "向量逻辑左移,每个元素左移指定位数",
        "flags_affected": [],
        "example": "shl v0.4s, v1.4s, #3"
      },
      {
        "mnemonic": "sshr",
        "name": "Signed Shift Right",
        "format": "SSHR <Vd>.<T>, <Vn>.<T>, #<shift>",
        "description": "向量有符号右移(算术移位)",
        "flags_affected": [],
        "example": "sshr v0.8h, v1.8h, #2"
      },
      {
        "mnemonic": "ushr",
        "name": "Unsigned Shift Right",
        "format": "USHR <Vd>.<T>, <Vn>.<T>, #<shift>",
        "description": "向量无符号右移(逻辑移位)",
        "flags_affected": [],
        "example": "ushr v0.16b, v1.16b, #4"
      },
      {
        "mnemonic": "sxtl",
        "name": "Signed Extend Long",
        "format": "SXTL <Vd>.<Ta>, <Vn>.<Tb>",
        "description": "有符号扩展(窄元素扩展为宽元素)",
        "flags_affected": [],
        "example": "sxtl v0.8h, v1.8b"
      },
      {
        "mnemonic": "uxtl",
        "name": "Unsigned Extend Long",
        "format": "UXTL <Vd>.<Ta>, <Vn>.<Tb>",
        "description": "无符号扩展(窄元素扩展为宽元素)",
        "flags_affected": [],
        "example": "uxtl v0.4s, v1.4h"
      }
    ]
  },
  "atomic_operations_extended": {
    "name": "原子操作扩展指令",
    "description": "字节、半字级别的原子操作和不返回值的原子操作",
    "instructions": [
      {
        "mnemonic": "ldaddh",
        "name": "Atomic Add (Halfword)",
        "format": "LDADDH <Ws>, <Wt>, [<Xn|SP>]",
        "description": "原子加法(半字),将Ws的值加到内存[Xn],原值加载到Wt",
        "flags_affected": [],
        "example": "ldaddh w1, w2, [x0]"
      },
      {
        "mnemonic": "ldaddb",
        "name": "Atomic Add (Byte)",
        "format": "LDADDB <Ws>, <Wt>, [<Xn|SP>]",
        "description": "原子加法(字节),将Ws的值加到内存[Xn],原值加载到Wt",
        "flags_affected": [],
        "example": "ldaddb w1, w2, [x0]"
      },
      {
        "mnemonic": "ldaddlh",
        "name": "Atomic Add (Halfword, Release)",
        "format": "LDADDLH <Ws>, <Wt>, [<Xn|SP>]",
        "description": "原子加法(半字,带释放语义)",
        "flags_affected": [],
        "example": "ldaddlh w1, w2, [x0]"
      },
      {
        "mnemonic": "ldaddlb",
        "name": "Atomic Add (Byte, Release)",
        "format": "LDADDLB <Ws>, <Wt>, [<Xn|SP>]",
        "description": "原子加法(字节,带释放语义)",
        "flags_affected": [],
        "example": "ldaddlb w1, w2, [x0]"
      },
      {
        "mnemonic": "casa",
        "name": "Compare and Swap (Acquire)",
        "format": "CASA <Ws|Xs>, <Wt|Xt>, [<Xn|SP>]",
        "description": "比较并交换(带获取语义)",
        "flags_affected": [],
        "example": "casa w1, w2, [x0]"
      },
      {
        "mnemonic": "casb",
        "name": "Compare and Swap Byte",
        "format": "CASB <Ws>, <Wt>, [<Xn|SP>]",
        "description": "比较并交换(字节)",
        "flags_affected": [],
        "example": "casb w1, w2, [x0]"
      },
      {
        "mnemonic": "cash",
        "name": "Compare and Swap Halfword",
        "format": "CASH <Ws>, <Wt>, [<Xn|SP>]",
        "description": "比较并交换(半字)",
        "flags_affected": [],
        "example": "cash w1, w2, [x0]"
      },
      {
        "mnemonic": "casp",
        "name": "Compare and Swap Pair",
        "format": "CASP <Ws>, <Ws+1>, <Wt>, <Wt+1>, [<Xn|SP>]",
        "description": "比较并交换寄存器对(128位原子操作)",
        "flags_affected": [],
        "example": "casp x0, x1, x2, x3, [x4]"
      },
      {
        "mnemonic": "stadd",
        "name": "Atomic Add (no return)",
        "format": "STADD <Ws|Xs>, [<Xn|SP>]",
        "description": "原子加法(不返回原值),将Ws的值加到内存[Xn]",
        "flags_affected": [],
        "example": "stadd w1, [x0]"
      },
      {
        "mnemonic": "staddl",
        "name": "Atomic Add (no return, Release)",
        "format": "STADDL <Ws|Xs>, [<Xn|SP>]",
        "description": "原子加法(不返回原值,带释放语义)",
        "flags_affected": [],
        "example": "staddl w1, [x0]"
      },
      {
        "mnemonic": "staddb",
        "name": "Atomic Add Byte (no return)",
        "format": "STADDB <Ws>, [<Xn|SP>]",
        "description": "原子加法(字节,不返回原值)",
        "flags_affected": [],
        "example": "staddb w1, [x0]"
      },
      {
        "mnemonic": "staddh",
        "name": "Atomic Add Halfword (no return)",
        "format": "STADDH <Ws>, [<Xn|SP>]",
        "description": "原子加法(半字,不返回原值)",
        "flags_affected": [],
        "example": "staddh w1, [x0]"
      }
    ]
  },
  "load_store_exclusive_extended": {
    "name": "加载/存储独占扩展",
    "description": "独占访问指令的字节、半字变体,用于实现细粒度原子操作",
    "instructions": [
      {
        "mnemonic": "ldxrb",
        "name": "Load Exclusive Register Byte",
        "format": "LDXRB <Wt>, [<Xn|SP>]",
        "description": "独占加载(字节),标记内存为独占访问",
        "flags_affected": [],
        "example": "ldxrb w0, [x1]"
      },
      {
        "mnemonic": "ldxrh",
        "name": "Load Exclusive Register Halfword",
        "format": "LDXRH <Wt>, [<Xn|SP>]",
        "description": "独占加载(半字),标记内存为独占访问",
        "flags_affected": [],
        "example": "ldxrh w0, [x1]"
      },
      {
        "mnemonic": "stxrb",
        "name": "Store Exclusive Register Byte",
        "format": "STXRB <Ws>, <Wt>, [<Xn|SP>]",
        "description": "独占存储(字节),如果独占访问成功则Ws=0,否则Ws=1",
        "flags_affected": [],
        "example": "stxrb w0, w1, [x2]"
      },
      {
        "mnemonic": "stxrh",
        "name": "Store Exclusive Register Halfword",
        "format": "STXRH <Ws>, <Wt>, [<Xn|SP>]",
        "description": "独占存储(半字),如果独占访问成功则Ws=0,否则Ws=1",
        "flags_affected": [],
        "example": "stxrh w0, w1, [x2]"
      },
      {
        "mnemonic": "ldaxrb",
        "name": "Load-Acquire Exclusive Register Byte",
        "format": "LDAXRB <Wt>, [<Xn|SP>]",
        "description": "独占加载(字节,带获取语义)",
        "flags_affected": [],
        "example": "ldaxrb w0, [x1]"
      },
      {
        "mnemonic": "ldaxrh",
        "name": "Load-Acquire Exclusive Register Halfword",
        "format": "LDAXRH <Wt>, [<Xn|SP>]",
        "description": "独占加载(半字,带获取语义)",
        "flags_affected": [],
        "example": "ldaxrh w0, [x1]"
      },
      {
        "mnemonic": "stlxrb",
        "name": "Store-Release Exclusive Register Byte",
        "format": "STLXRB <Ws>, <Wt>, [<Xn|SP>]",
        "description": "独占存储(字节,带释放语义)",
        "flags_affected": [],
        "example": "stlxrb w0, w1, [x2]"
      },
      {
        "mnemonic": "stlxrh",
        "name": "Store-Release Exclusive Register Halfword",
        "format": "STLXRH <Ws>, <Wt>, [<Xn|SP>]",
        "description": "独占存储(半字,带释放语义)",
        "flags_affected": [],
        "example": "stlxrh w0, w1, [x2]"
      },
      {
        "mnemonic": "ldxp",
        "name": "Load Exclusive Pair",
        "format": "LDXP <Wt1>, <Wt2>, [<Xn|SP>]",
        "description": "独占加载寄存器对(128位原子操作)",
        "flags_affected": [],
        "example": "ldxp x0, x1, [x2]"
      },
      {
        "mnemonic": "stxp",
        "name": "Store Exclusive Pair",
        "format": "STXP <Ws>, <Wt1>, <Wt2>, [<Xn|SP>]",
        "description": "独占存储寄存器对(128位原子操作)",
        "flags_affected": [],
        "example": "stxp w0, x1, x2, [x3]"
      }
    ]
  },
  "exception_handling": {
    "name": "异常处理指令",
    "description": "异常返回和调试相关指令",
    "instructions": [
      {
        "mnemonic": "eret",
        "name": "Exception Return",
        "format": "ERET",
        "description": "从异常返回,恢复SPSR_ELx到PSTATE,跳转到ELR_ELx",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "eret"
      },
      {
        "mnemonic": "drps",
        "name": "Debug Restore Process State",
        "format": "DRPS",
        "description": "调试状态恢复,从调试异常返回",
        "flags_affected": ["N", "Z", "C", "V"],
        "example": "drps"
      }
    ]
  },
  "instruction_encoding": {
    "description": "AArch64 指令编码为 32 位定长指令",
    "format": "每条指令占用 4 字节(32位)",
    "endianness": "小端序(Little-endian)"
  }
}