reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
 2116
 2117
 2118
 2119
 2120
 2121
 2122
 2123
 2124
 2125
 2126
 2127
 2128
 2129
 2130
 2131
 2132
 2133
 2134
 2135
 2136
 2137
 2138
 2139
 2140
 2141
 2142
 2143
 2144
 2145
 2146
 2147
 2148
 2149
 2150
 2151
 2152
 2153
 2154
 2155
 2156
 2157
 2158
 2159
 2160
 2161
 2162
 2163
 2164
 2165
 2166
 2167
 2168
 2169
 2170
 2171
 2172
 2173
 2174
 2175
 2176
 2177
 2178
 2179
 2180
 2181
 2182
 2183
 2184
 2185
 2186
 2187
 2188
 2189
 2190
 2191
 2192
 2193
 2194
 2195
 2196
 2197
 2198
 2199
 2200
 2201
 2202
 2203
 2204
 2205
 2206
 2207
 2208
 2209
 2210
 2211
 2212
 2213
 2214
 2215
 2216
 2217
 2218
 2219
 2220
 2221
 2222
 2223
 2224
 2225
 2226
 2227
 2228
 2229
 2230
 2231
 2232
 2233
 2234
 2235
 2236
 2237
 2238
 2239
 2240
 2241
 2242
 2243
 2244
 2245
 2246
 2247
 2248
 2249
 2250
 2251
 2252
 2253
 2254
 2255
 2256
 2257
 2258
 2259
 2260
 2261
 2262
 2263
 2264
 2265
 2266
 2267
 2268
 2269
 2270
 2271
 2272
 2273
 2274
 2275
 2276
 2277
 2278
 2279
 2280
 2281
 2282
 2283
 2284
 2285
 2286
 2287
 2288
 2289
 2290
 2291
 2292
 2293
 2294
 2295
 2296
 2297
 2298
 2299
 2300
 2301
 2302
 2303
 2304
 2305
 2306
 2307
 2308
 2309
 2310
 2311
 2312
 2313
 2314
 2315
 2316
 2317
 2318
 2319
 2320
 2321
 2322
 2323
 2324
 2325
 2326
 2327
 2328
 2329
 2330
 2331
 2332
 2333
 2334
 2335
 2336
 2337
 2338
 2339
 2340
 2341
 2342
 2343
 2344
 2345
 2346
 2347
 2348
 2349
 2350
 2351
 2352
 2353
 2354
 2355
 2356
 2357
 2358
 2359
 2360
 2361
 2362
 2363
 2364
 2365
 2366
 2367
 2368
 2369
 2370
 2371
 2372
 2373
 2374
 2375
 2376
 2377
 2378
 2379
 2380
 2381
 2382
 2383
 2384
 2385
 2386
 2387
 2388
 2389
 2390
 2391
 2392
 2393
 2394
 2395
 2396
 2397
 2398
 2399
 2400
 2401
 2402
 2403
 2404
 2405
 2406
 2407
 2408
 2409
 2410
 2411
 2412
 2413
 2414
 2415
 2416
 2417
 2418
 2419
 2420
 2421
 2422
 2423
 2424
 2425
 2426
 2427
 2428
 2429
 2430
 2431
 2432
 2433
 2434
 2435
 2436
 2437
 2438
 2439
 2440
 2441
 2442
 2443
 2444
 2445
 2446
 2447
 2448
 2449
 2450
 2451
 2452
 2453
 2454
 2455
 2456
 2457
 2458
 2459
 2460
 2461
 2462
 2463
 2464
 2465
 2466
 2467
 2468
 2469
 2470
 2471
 2472
 2473
 2474
 2475
 2476
 2477
 2478
 2479
 2480
 2481
 2482
 2483
 2484
 2485
 2486
 2487
 2488
 2489
 2490
 2491
 2492
 2493
 2494
 2495
 2496
 2497
 2498
 2499
 2500
 2501
 2502
 2503
 2504
 2505
 2506
 2507
 2508
 2509
 2510
 2511
 2512
 2513
 2514
 2515
 2516
 2517
 2518
 2519
 2520
 2521
 2522
 2523
 2524
 2525
 2526
 2527
 2528
 2529
 2530
 2531
 2532
 2533
 2534
 2535
 2536
 2537
 2538
 2539
 2540
 2541
 2542
 2543
 2544
 2545
 2546
 2547
 2548
 2549
 2550
 2551
 2552
 2553
 2554
 2555
 2556
 2557
 2558
 2559
 2560
 2561
 2562
 2563
 2564
 2565
 2566
 2567
 2568
 2569
 2570
 2571
 2572
 2573
 2574
 2575
 2576
 2577
 2578
 2579
 2580
 2581
 2582
 2583
 2584
 2585
 2586
 2587
 2588
 2589
 2590
 2591
 2592
 2593
 2594
 2595
 2596
 2597
 2598
 2599
 2600
 2601
 2602
 2603
 2604
 2605
 2606
 2607
 2608
 2609
 2610
 2611
 2612
 2613
 2614
 2615
 2616
 2617
 2618
 2619
 2620
 2621
 2622
 2623
 2624
 2625
 2626
 2627
 2628
 2629
 2630
 2631
 2632
 2633
 2634
 2635
 2636
 2637
 2638
 2639
 2640
 2641
 2642
 2643
 2644
 2645
 2646
 2647
 2648
 2649
 2650
 2651
 2652
 2653
 2654
 2655
 2656
 2657
 2658
 2659
 2660
 2661
 2662
 2663
 2664
 2665
 2666
 2667
 2668
 2669
 2670
 2671
 2672
 2673
 2674
 2675
 2676
 2677
 2678
 2679
 2680
 2681
 2682
 2683
 2684
 2685
 2686
 2687
 2688
 2689
 2690
 2691
 2692
 2693
 2694
 2695
 2696
 2697
 2698
 2699
 2700
 2701
 2702
 2703
 2704
 2705
 2706
 2707
 2708
 2709
 2710
 2711
 2712
 2713
 2714
 2715
 2716
 2717
 2718
 2719
 2720
# RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -disassemble < %s | FileCheck %s

#------------------------------------------------------------------------------
# ADC (immediate)
#------------------------------------------------------------------------------
# CHECK: adc r0, r1, #4
# CHECK: adcs r0, r1, #0
# CHECK: adc r1, r2, #255
# CHECK: adc r3, r7, #5570645
# CHECK: adc r8, r12, #2852170240
# CHECK: adc r9, r7, #2779096485
# CHECK: adc r5, r3, #2264924160
# CHECK: adc r4, r2, #2139095040
# CHECK: adc r4, r2, #1664

0x41 0xf1 0x04 0x00
0x51 0xf1 0x00 0x00
0x42 0xf1 0xff 0x01
0x47 0xf1 0x55 0x13
0x4c 0xf1 0xaa 0x28
0x47 0xf1 0xa5 0x39
0x43 0xf1 0x07 0x45
0x42 0xf1 0xff 0x44
0x42 0xf5 0xd0 0x64

#------------------------------------------------------------------------------
# ADC (register)
#------------------------------------------------------------------------------
# CHECK: adc.w r4, r5, r6
# CHECK: adcs.w r4, r5, r6
# CHECK: adc.w r9, r1, r3
# CHECK: adcs.w r9, r1, r3
# CHECK: adc.w r0, r1, r3, ror #4
# CHECK: adcs.w  r0, r1, r3, lsl #7
# CHECK: adc.w r0, r1, r3, lsr #31
# CHECK: adcs.w  r0, r1, r3, asr #32

0x45 0xeb 0x06 0x04
0x55 0xeb 0x06 0x04
0x41 0xeb 0x03 0x09
0x51 0xeb 0x03 0x09
0x41 0xeb 0x33 0x10
0x51 0xeb 0xc3 0x10
0x41 0xeb 0xd3 0x70
0x51 0xeb 0x23 0x00


#------------------------------------------------------------------------------
# ADD (immediate)
#------------------------------------------------------------------------------
# CHECK: itet eq
# CHECK: addeq r1, r2, #4
# CHECK: addwne r5, r3, #1023
# CHECK: addweq r4, r5, #293
# CHECK: add.w r2, sp, #1024
# CHECK: add.w r2, r8, #65280
# CHECK: addw r2, r3, #257
# CHECK: add.w r12, r6, #256
# CHECK: addw r12, r6, #256
# CHECK: adds.w r1, r2, #496

0x0a 0xbf
0x11 0x1d
0x03 0xf2 0xff 0x35
0x05 0xf2 0x25 0x14
0x0d 0xf5 0x80 0x62
0x08 0xf5 0x7f 0x42
0x03 0xf2 0x01 0x12
0x06 0xf5 0x80 0x7c
0x06 0xf2 0x00 0x1c
0x12 0xf5 0xf8 0x71


#------------------------------------------------------------------------------
# ADD (register)
#------------------------------------------------------------------------------
# CHECK: add.w r1, r2, r8
# CHECK: add.w r5, r9, r2, asr #32
# CHECK: adds.w r7, r3, r1, lsl #31
# CHECK: adds.w r0, r3, r6, lsr #25
# CHECK: add.w r4, r8, r1, ror #12

0x02 0xeb 0x08 0x01
0x09 0xeb 0x22 0x05
0x13 0xeb 0xc1 0x77
0x13 0xeb 0x56 0x60
0x08 0xeb 0x31 0x34


#------------------------------------------------------------------------------
# ADR
#------------------------------------------------------------------------------
# CHECK: subw r11, pc, #3270
# CHECK: subw r11, pc, #826
# CHECK: subw r1, pc, #0

0xaf 0xf6 0xc6 0x4b
0xaf 0xf2 0x3a 0x3b
0xaf 0xf2 0x00 0x01

#------------------------------------------------------------------------------
# AND (immediate)
#------------------------------------------------------------------------------
# CHECK: and r2, r5, #1044480
# CHECK: ands r3, r12, #15
# CHECK: and r1, r1, #255

0x05 0xf4 0x7f 0x22
0x1c 0xf0 0x0f 0x03
0x01 0xf0 0xff 0x01


#------------------------------------------------------------------------------
# AND (register)
#------------------------------------------------------------------------------
# CHECK: and.w r4, r9, r8
# CHECK: and.w r1, r4, r8, asr #3
# CHECK: ands.w r2, r1, r7, lsl #1
# CHECK: ands.w r4, r5, r2, lsr #20
# CHECK: and.w r9, r12, r1, ror #17

0x09 0xea 0x08 0x04
0x04 0xea 0xe8 0x01
0x11 0xea 0x47 0x02
0x15 0xea 0x12 0x54
0x0c 0xea 0x71 0x49

#------------------------------------------------------------------------------
# ASR (immediate)
#------------------------------------------------------------------------------
# CHECK: asr.w r2, r3, #12
# CHECK: asrs.w r8, r3, #32
# CHECK: asrs.w r2, r3, #1
# CHECK: asr.w r2, r3, #4
# CHECK: asrs.w r2, r12, #15

# CHECK: asr.w r3, r3, #19
# CHECK: asrs.w r8, r8, #2
# CHECK: asrs.w r7, r7, #5
# CHECK: asr.w r12, r12, #21

0x4f 0xea 0x23 0x32
0x5f 0xea 0x23 0x08
0x5f 0xea 0x63 0x02
0x4f 0xea 0x23 0x12
0x5f 0xea 0xec 0x32

0x4f 0xea 0xe3 0x43
0x5f 0xea 0xa8 0x08
0x5f 0xea 0x67 0x17
0x4f 0xea 0x6c 0x5c


#------------------------------------------------------------------------------
# ASR (register)
#------------------------------------------------------------------------------
# CHECK: asr.w r3, r4, r2
# CHECK: asr.w r1, r1, r2
# CHECK: asrs.w r3, r4, r8

0x44 0xfa 0x02 0xf3
0x41 0xfa 0x02 0xf1
0x54 0xfa 0x08 0xf3

#------------------------------------------------------------------------------
# B
#------------------------------------------------------------------------------
# CHECK: bmi.w   #-183396

0x13 0xf5 0xce 0xa9

# CHECK: b.w   #208962
# CHECK: b.w   #-16777216

0x33 0xf0 0x21 0xb8 # rdar://12585795
0x00 0xf4 0x00 0x90

#------------------------------------------------------------------------------
# BFC
#------------------------------------------------------------------------------
# CHECK: bfc r5, #3, #17
# CHECK: it lo
# CHECK: bfclo r5, #3, #17

0x6f 0xf3 0xd3 0x05
0x38 0xbf
0x6f 0xf3 0xd3 0x05


#------------------------------------------------------------------------------
# BFI
#------------------------------------------------------------------------------
# CHECK: bfi r5, r2, #3, #17
# CHECK: it ne
# CHECK: bfine r5, r2, #3, #17
# CHECK: bfi r6, r0, #0, #32
# CHECK: bfi r6, r0, #31, #1

0x62 0xf3 0xd3 0x05
0x18 0xbf
0x62 0xf3 0xd3 0x05
0x60 0xf3 0x1f 0x06
0x60 0xf3 0xdf 0x76


#------------------------------------------------------------------------------
# BIC
#------------------------------------------------------------------------------
# CHECK: bic r10, r1, #15
# CHECK: bic.w r12, r3, r6
# CHECK: bic.w r11, r2, r6, lsl #12
# CHECK: bic.w r8, r4, r1, lsr #11
# CHECK: bic.w r7, r5, r7, lsr #15
# CHECK: bic.w r6, r7, r9, asr #32
# CHECK: bic.w r5, r6, r8, ror #1

# CHECK: bic r1, r1, #15
# CHECK: bic.w r1, r1, r1
# CHECK: bic.w r4, r4, r2, lsl #31
# CHECK: bic.w r6, r6, r3, lsr #12
# CHECK: bic.w r7, r7, r4, lsr #7
# CHECK: bic.w r8, r8, r5, asr #15
# CHECK: bic.w r12, r12, r6, ror #29

0x21 0xf0 0x0f 0x0a
0x23 0xea 0x06 0x0c
0x22 0xea 0x06 0x3b
0x24 0xea 0xd1 0x28
0x25 0xea 0xd7 0x37
0x27 0xea 0x29 0x06
0x26 0xea 0x78 0x05

0x21 0xf0 0x0f 0x01
0x21 0xea 0x01 0x01
0x24 0xea 0xc2 0x74
0x26 0xea 0x13 0x36
0x27 0xea 0xd4 0x17
0x28 0xea 0xe5 0x38
0x2c 0xea 0x76 0x7c


#------------------------------------------------------------------------------
# BXJ
#------------------------------------------------------------------------------
# CHECK: bxj r5
# CHECK: it ne
# CHECK: bxjne r7

0xc5 0xf3 0x00 0x8f
0x18 0xbf
0xc7 0xf3 0x00 0x8f


#------------------------------------------------------------------------------
# CBZ/CBNZ
#------------------------------------------------------------------------------
# CHECK: cbnz    r7, #6
# CHECK: cbnz    r7, #12
# CHECK: cbz     r4, #64

0x1f 0xb9
0x37 0xb9
0x04 0xb3


#------------------------------------------------------------------------------
# CDP/CDP2
#------------------------------------------------------------------------------
# CHECK: cdp  p7, #1, c1, c1, c1, #4
# CHECK: cdp2  p7, #1, c1, c1, c1, #4

0x11 0xee 0x81 0x17
0x11 0xfe 0x81 0x17


#------------------------------------------------------------------------------
# CLREX
#------------------------------------------------------------------------------
#CHECK: clrex
#CHECK: it ne
#CHECK: clrexne

0xbf 0xf3 0x2f 0x8f
0x18 0xbf
0xbf 0xf3 0x2f 0x8f


#------------------------------------------------------------------------------
# CLZ
#------------------------------------------------------------------------------
#CHECK: clz r1, r2
#CHECK: it eq
#CHECK: clzeq r1, r2

0xb2 0xfa 0x82 0xf1
0x08 0xbf
0xb2 0xfa 0x82 0xf1


#------------------------------------------------------------------------------
# CMN
#------------------------------------------------------------------------------
#CHECK: cmn.w r1, #15
#CHECK: cmn.w r8, r6
#CHECK: cmn.w r1, r6, lsl #10
#CHECK: cmn.w r1, r6, lsr #10
#CHECK: cmn.w sp, r6, lsr #10
#CHECK: cmn.w r1, r6, asr #10
#CHECK: cmn.w r1, r6, ror #10

0x11 0xf1 0x0f 0x0f
0x18 0xeb 0x06 0x0f
0x11 0xeb 0x86 0x2f
0x11 0xeb 0x96 0x2f
0x1d 0xeb 0x96 0x2f
0x11 0xeb 0xa6 0x2f
0x11 0xeb 0xb6 0x2f


#------------------------------------------------------------------------------
# CMP
#------------------------------------------------------------------------------
#CHECK: cmp.w r5, #65280
#CHECK: cmp.w r4, r12
#CHECK: cmp.w r9, r6, lsl #12
#CHECK: cmp.w r3, r7, lsr #31
#CHECK: cmp.w sp, r6, lsr #1
#CHECK: cmp.w r2, r5, asr #24
#CHECK: cmp.w r1, r4, ror #15

0xb5 0xf5 0x7f 0x4f
0xb4 0xeb 0x0c 0x0f
0xb9 0xeb 0x06 0x3f
0xb3 0xeb 0xd7 0x7f
0xbd 0xeb 0x56 0x0f
0xb2 0xeb 0x25 0x6f
0xb1 0xeb 0xf4 0x3f


#------------------------------------------------------------------------------
# DBG
#------------------------------------------------------------------------------
#CHECK: dbg #5
#CHECK: dbg #0
#CHECK: dbg #15

0xaf 0xf3 0xf5 0x80
0xaf 0xf3 0xf0 0x80
0xaf 0xf3 0xff 0x80


#------------------------------------------------------------------------------
# DMB
#------------------------------------------------------------------------------
#CHECK: dmb sy
#CHECK: dmb st
#CHECK: dmb #0xd
#CHECK: dmb #0xc
#CHECK: dmb ish
#CHECK: dmb ishst
#CHECK: dmb #0x9
#CHECK: dmb #0x8
#CHECK: dmb nsh
#CHECK: dmb nshst
#CHECK: dmb #0x5
#CHECK: dmb #0x4
#CHECK: dmb osh
#CHECK: dmb oshst
#CHECK: dmb #0x1
#CHECK: dmb #0x0

0xbf 0xf3 0x5f 0x8f
0xbf 0xf3 0x5e 0x8f
0xbf 0xf3 0x5d 0x8f
0xbf 0xf3 0x5c 0x8f
0xbf 0xf3 0x5b 0x8f
0xbf 0xf3 0x5a 0x8f
0xbf 0xf3 0x59 0x8f
0xbf 0xf3 0x58 0x8f
0xbf 0xf3 0x57 0x8f
0xbf 0xf3 0x56 0x8f
0xbf 0xf3 0x55 0x8f
0xbf 0xf3 0x54 0x8f
0xbf 0xf3 0x53 0x8f
0xbf 0xf3 0x52 0x8f
0xbf 0xf3 0x51 0x8f
0xbf 0xf3 0x50 0x8f


#------------------------------------------------------------------------------
# DSB
#------------------------------------------------------------------------------
#CHECK: dsb sy
#CHECK: dsb st
#CHECK: dsb #0xd
#CHECK: dsb #0xc
#CHECK: dsb ish
#CHECK: dsb ishst
#CHECK: dsb #0x9
#CHECK: dsb #0x8
#CHECK: dsb nsh
#CHECK: dsb nshst
#CHECK: dsb #0x5
#CHECK: pssbb
#CHECK: dsb osh
#CHECK: dsb oshst
#CHECK: dsb #0x1
#CHECK: ssbb

0xbf 0xf3 0x4f 0x8f
0xbf 0xf3 0x4e 0x8f
0xbf 0xf3 0x4d 0x8f
0xbf 0xf3 0x4c 0x8f
0xbf 0xf3 0x4b 0x8f
0xbf 0xf3 0x4a 0x8f
0xbf 0xf3 0x49 0x8f
0xbf 0xf3 0x48 0x8f
0xbf 0xf3 0x47 0x8f
0xbf 0xf3 0x46 0x8f
0xbf 0xf3 0x45 0x8f
0xbf 0xf3 0x44 0x8f
0xbf 0xf3 0x43 0x8f
0xbf 0xf3 0x42 0x8f
0xbf 0xf3 0x41 0x8f
0xbf 0xf3 0x40 0x8f


#------------------------------------------------------------------------------
# EOR
#------------------------------------------------------------------------------
#CHECK: eor r4, r5, #61440
#CHECK: eor.w r4, r5, r6
#CHECK: eor.w r4, r5, r6, lsl #5
#CHECK: eor.w r4, r5, r6, lsr #5
#CHECK: eor.w r4, r5, r6, lsr #5
#CHECK: eor.w r4, r5, r6, asr #5
#CHECK: eor.w r4, r5, r6, ror #5

0x85 0xf4 0x70 0x44
0x85 0xea 0x06 0x04
0x85 0xea 0x46 0x14
0x85 0xea 0x56 0x14
0x85 0xea 0x56 0x14
0x85 0xea 0x66 0x14
0x85 0xea 0x76 0x14


#------------------------------------------------------------------------------
# ISB
#------------------------------------------------------------------------------
#CHECK: isb sy
#CHECK: isb #0xa

0xbf 0xf3 0x6f 0x8f
0xbf 0xf3 0x6a 0x8f

#------------------------------------------------------------------------------
# IT
#------------------------------------------------------------------------------
# Test encodings of a few full IT blocks, not just the IT instruction

# CHECK: iteet eq
# CHECK: addeq r0, r1, r2
# CHECK: nopne
# CHECK: subne r5, r6, r7
# CHECK: addeq r1, r2, #4

0x0d 0xbf
0x88 0x18
0x00 0xbf
0xf5 0x1b
0x11 0x1d

# CHECK: ittee ls
# CHECK: addls r0, r1, r2
# CHECK: nopls
# CHECK: subhi r5, r6, r7
# CHECK: addhi r1, r2, #4

0x99 0xbf
0x88 0x18
0x00 0xbf
0xf5 0x1b
0x11 0x1d


#------------------------------------------------------------------------------
# LDMIA
#------------------------------------------------------------------------------
# CHECK: ldm.w r4, {r4, r5, r8, r9}
# CHECK: ldm.w r4, {r5, r6}
# CHECK: ldm.w r5!, {r3, r8}
# CHECK: ldm.w r4, {r4, r5, r8, r9}
# CHECK: ldm.w r4, {r5, r6}
# CHECK: ldm.w r5!, {r3, r8}
# CHECK: ldm.w r5!, {r1, r2}
# CHECK: ldm.w r2, {r1, r2}

# CHECK: ldm.w r4, {r4, r5, r8, r9}
# CHECK: ldm.w r4, {r5, r6}
# CHECK: ldm.w r5!, {r3, r8}
# CHECK: ldm.w r4, {r4, r5, r8, r9}
# CHECK: ldm.w r4, {r5, r6}
# CHECK: ldm.w r5!, {r3, r8}
# CHECK: ldm.w r5!, {r3, r8}

0x94 0xe8 0x30 0x03
0x94 0xe8 0x60 0x00
0xb5 0xe8 0x08 0x01
0x94 0xe8 0x30 0x03
0x94 0xe8 0x60 0x00
0xb5 0xe8 0x08 0x01
0xb5 0xe8 0x06 0x00
0x92 0xe8 0x06 0x00

0x94 0xe8 0x30 0x03
0x94 0xe8 0x60 0x00
0xb5 0xe8 0x08 0x01
0x94 0xe8 0x30 0x03
0x94 0xe8 0x60 0x00
0xb5 0xe8 0x08 0x01
0xb5 0xe8 0x08 0x01


#------------------------------------------------------------------------------
# LDMDB
#------------------------------------------------------------------------------
# CHECK: ldmdb r4, {r4, r5, r8, r9}
# CHECK: ldmdb r4, {r5, r6}
# CHECK: ldmdb r5!, {r3, r8}
# CHECK: ldmdb r5!, {r3, r8}

0x14 0xe9 0x30 0x03
0x14 0xe9 0x60 0x00
0x35 0xe9 0x08 0x01
0x35 0xe9 0x08 0x01


#------------------------------------------------------------------------------
# LDR(immediate)
#------------------------------------------------------------------------------
# CHECK: ldr r5, [r5, #-4]
# CHECK: ldr r5, [r6, #32]
# CHECK: ldr.w r5, [r6, #33]
# CHECK: ldr.w r5, [r6, #257]
# CHECK: ldr.w pc, [r7, #257]

0x55 0xf8 0x04 0x5c
0x35 0x6a
0xd6 0xf8 0x21 0x50
0xd6 0xf8 0x01 0x51
0xd7 0xf8 0x01 0xf1


#------------------------------------------------------------------------------
# LDR(literal)
#------------------------------------------------------------------------------
# CHECK: ldr.w r4, [pc, #-0]
# CHECK: ldr.w r2, [pc, #-40]
# CHECK: ldr.w r1, [pc, #1024]
0x5f 0xf8 0x00 0x40
0x5f 0xf8 0x28 0x20
0xdf 0xf8 0x00 0x14


#------------------------------------------------------------------------------
# LDR(register)
#------------------------------------------------------------------------------
# CHECK: ldr.w r1, [r8, r1]
# CHECK: ldr.w r4, [r5, r2]
# CHECK: ldr.w r6, [r0, r2, lsl #3]
# CHECK: ldr.w r8, [r8, r2, lsl #2]
# CHECK: ldr.w r7, [sp, r2, lsl #1]
# CHECK: ldr.w r7, [sp, r2]
# CHECK: ldr pc, [sp], #12
# CHECK: ldr r2, [r4, #255]!
# CHECK: ldr r8, [sp, #4]!
# CHECK: ldr lr, [sp, #-4]!
# CHECK: ldr lr, [sp, #0]!
# CHECK: ldr r2, [r4], #255
# CHECK: ldr r8, [sp], #4
# CHECK: ldr lr, [sp], #-4

0x58 0xf8 0x01 0x10
0x55 0xf8 0x02 0x40
0x50 0xf8 0x32 0x60
0x58 0xf8 0x22 0x80
0x5d 0xf8 0x12 0x70
0x5d 0xf8 0x02 0x70
0x5d 0xf8 0x0c 0xfb
0x54 0xf8 0xff 0x2f
0x5d 0xf8 0x04 0x8f
0x5d 0xf8 0x04 0xed
0x5d 0xf8 0x00 0xef
0x54 0xf8 0xff 0x2b
0x5d 0xf8 0x04 0x8b
0x5d 0xf8 0x04 0xe9


#------------------------------------------------------------------------------
# LDRB(immediate)
#------------------------------------------------------------------------------
# CHECK: ldrb r5, [r5, #-4]
# CHECK: ldrb.w r5, [r6, #32]
# CHECK: ldrb.w r5, [r6, #33]
# CHECK: ldrb.w r5, [r6, #257]
# CHECK: ldrb.w lr, [r7, #257]

0x15 0xf8 0x04 0x5c
0x96 0xf8 0x20 0x50
0x96 0xf8 0x21 0x50
0x96 0xf8 0x01 0x51
0x97 0xf8 0x01 0xe1


#------------------------------------------------------------------------------
# LDRB(register)
#------------------------------------------------------------------------------
# CHECK: ldrb.w r1, [r8, r1]
# CHECK: ldrb.w r4, [r5, r2]
# CHECK: ldrb.w r6, [r0, r2, lsl #3]
# CHECK: ldrb.w r8, [r8, r2, lsl #2]
# CHECK: ldrb.w r7, [sp, r2, lsl #1]
# CHECK: ldrb.w r7, [sp, r2]
# CHECK: ldrb r5, [r8, #255]!
# CHECK: ldrb r2, [r5, #4]!
# CHECK: ldrb r1, [r4, #-4]!
# CHECK: ldrb r1, [r4, #0]!
# CHECK: ldrb lr, [r3], #255
# CHECK: ldrb r9, [r2], #4
# CHECK: ldrb r3, [sp], #-4

0x18 0xf8 0x01 0x10
0x15 0xf8 0x02 0x40
0x10 0xf8 0x32 0x60
0x18 0xf8 0x22 0x80
0x1d 0xf8 0x12 0x70
0x1d 0xf8 0x02 0x70
0x18 0xf8 0xff 0x5f
0x15 0xf8 0x04 0x2f
0x14 0xf8 0x04 0x1d
0x14 0xf8 0x00 0x1f
0x13 0xf8 0xff 0xeb
0x12 0xf8 0x04 0x9b
0x1d 0xf8 0x04 0x39


#------------------------------------------------------------------------------
# LDRB(literal)
#------------------------------------------------------------------------------
# CHECK: ldrb.w r6, [pc, #-0]
# CHECK: ldrb.w r10, [pc, #227]
# CHECK: ldrb.w r5, [pc, #0]
0x1f 0xf8 0x00 0x60
0x9f 0xf8 0xe3 0xa0
0x9f 0xf8 0x00 0x50


#------------------------------------------------------------------------------
# LDRBT
#------------------------------------------------------------------------------
# CHECK: ldrbt r1, [r2]
# CHECK: ldrbt r1, [r8]
# CHECK: ldrbt r1, [r8, #3]
# CHECK: ldrbt r1, [r8, #255]

0x12 0xf8 0x00 0x1e
0x18 0xf8 0x00 0x1e
0x18 0xf8 0x03 0x1e
0x18 0xf8 0xff 0x1e


#------------------------------------------------------------------------------
# LDRD(immediate)
#------------------------------------------------------------------------------
# CHECK: ldrd r3, r5, [r6, #24]
# CHECK: ldrd r3, r5, [r6, #24]!
# CHECK: ldrd r3, r5, [r6], #4
# CHECK: ldrd r3, r5, [r6], #-8
# CHECK: ldrd r3, r5, [r6]
# CHECK: ldrd r8, r1, [r3]
# CHECK: ldrd r0, r1, [r2], #-0
# CHECK: ldrd r0, r1, [r2, #-0]!
# CHECK: ldrd r0, r1, [r2, #0]!
# CHECK: ldrd r0, r1, [r2, #-0]
# CHECK: ldrd r1, r1, [r0], #0

0xd6 0xe9 0x06 0x35
0xf6 0xe9 0x06 0x35
0xf6 0xe8 0x01 0x35
0x76 0xe8 0x02 0x35
0xd6 0xe9 0x00 0x35
0xd3 0xe9 0x00 0x81
0x72 0xe8 0x00 0x01
0x72 0xe9 0x00 0x01
0xf2 0xe9 0x00 0x01
0x52 0xe9 0x00 0x01
0xf0 0xe8 0x00 0x11


#------------------------------------------------------------------------------
# FIXME: LDRD(literal)
#------------------------------------------------------------------------------


#------------------------------------------------------------------------------
# LDREX/LDREXB/LDREXH/LDREXD
#------------------------------------------------------------------------------
# CHECK: ldrex r1, [r4]
# CHECK: ldrex r8, [r4]
# CHECK: ldrex r2, [sp, #128]
# CHECK: ldrexb r5, [r7]
# CHECK: ldrexh r9, [r12]
# CHECK: ldrexd r9, r3, [r4]

0x54 0xe8 0x00 0x1f
0x54 0xe8 0x00 0x8f
0x5d 0xe8 0x20 0x2f
0xd7 0xe8 0x4f 0x5f
0xdc 0xe8 0x5f 0x9f
0xd4 0xe8 0x7f 0x93


#------------------------------------------------------------------------------
# LDRH(immediate)
#------------------------------------------------------------------------------
# CHECK: ldrh r5, [r5, #-4]
# CHECK: ldrh r5, [r6, #32]
# CHECK: ldrh.w r5, [r6, #33]
# CHECK: ldrh.w r5, [r6, #257]
# CHECK: ldrh.w lr, [r7, #257]

0x35 0xf8 0x04 0x5c
0x35 0x8c
0xb6 0xf8 0x21 0x50
0xb6 0xf8 0x01 0x51
0xb7 0xf8 0x01 0xe1


#------------------------------------------------------------------------------
# LDRH(register)
#------------------------------------------------------------------------------
# CHECK: ldrh.w r1, [r8, r1]
# CHECK: ldrh.w r4, [r5, r2]
# CHECK: ldrh.w r6, [r0, r2, lsl #3]
# CHECK: ldrh.w r8, [r8, r2, lsl #2]
# CHECK: ldrh.w r7, [sp, r2, lsl #1]
# CHECK: ldrh.w r7, [sp, r2]
# CHECK: ldrh r5, [r8, #255]!
# CHECK: ldrh r2, [r5, #4]!
# CHECK: ldrh r1, [r4, #-4]!
# CHECK: ldrh r1, [r4, #0]!
# CHECK: ldrh lr, [r3], #255
# CHECK: ldrh r9, [r2], #4
# CHECK: ldrh r3, [sp], #-4

0x38 0xf8 0x01 0x10
0x35 0xf8 0x02 0x40
0x30 0xf8 0x32 0x60
0x38 0xf8 0x22 0x80
0x3d 0xf8 0x12 0x70
0x3d 0xf8 0x02 0x70
0x38 0xf8 0xff 0x5f
0x35 0xf8 0x04 0x2f
0x34 0xf8 0x04 0x1d
0x34 0xf8 0x00 0x1f
0x33 0xf8 0xff 0xeb
0x32 0xf8 0x04 0x9b
0x3d 0xf8 0x04 0x39


#------------------------------------------------------------------------------
# LDRH(literal)
#------------------------------------------------------------------------------
# CHECK: ldrh.w r7, [pc, #-0]
# CHECK: ldrh.w r5, [pc, #121]
# CHECK: ldrh.w r4, [pc, #0]
0x3f 0xf8 0x00 0x70
0xbf 0xf8 0x79 0x50
0xbf 0xf8 0x00 0x40


#------------------------------------------------------------------------------
# LDRSB(immediate)
#------------------------------------------------------------------------------
# CHECK: ldrsb r5, [r5, #-4]
# CHECK: ldrsb.w r5, [r6, #32]
# CHECK: ldrsb.w r5, [r6, #33]
# CHECK: ldrsb.w r5, [r6, #257]
# CHECK: ldrsb.w lr, [r7, #257]

0x15 0xf9 0x04 0x5c
0x96 0xf9 0x20 0x50
0x96 0xf9 0x21 0x50
0x96 0xf9 0x01 0x51
0x97 0xf9 0x01 0xe1


#------------------------------------------------------------------------------
# LDRSB(register)
#------------------------------------------------------------------------------
# CHECK: ldrsb.w r1, [r8, r1]
# CHECK: ldrsb.w r4, [r5, r2]
# CHECK: ldrsb.w r6, [r0, r2, lsl #3]
# CHECK: ldrsb.w r8, [r8, r2, lsl #2]
# CHECK: ldrsb.w r7, [sp, r2, lsl #1]
# CHECK: ldrsb.w r7, [sp, r2]
# CHECK: ldrsb r5, [r8, #255]!
# CHECK: ldrsb r2, [r5, #4]!
# CHECK: ldrsb r1, [r4, #-4]!
# CHECK: ldrsb r1, [r4, #0]!
# CHECK: ldrsb lr, [r3], #255
# CHECK: ldrsb r9, [r2], #4
# CHECK: ldrsb r3, [sp], #-4

0x18 0xf9 0x01 0x10
0x15 0xf9 0x02 0x40
0x10 0xf9 0x32 0x60
0x18 0xf9 0x22 0x80
0x1d 0xf9 0x12 0x70
0x1d 0xf9 0x02 0x70
0x18 0xf9 0xff 0x5f
0x15 0xf9 0x04 0x2f
0x14 0xf9 0x04 0x1d
0x14 0xf9 0x00 0x1f
0x13 0xf9 0xff 0xeb
0x12 0xf9 0x04 0x9b
0x1d 0xf9 0x04 0x39


#------------------------------------------------------------------------------
# LDRSB(literal)
#------------------------------------------------------------------------------
# CHECK: ldrsb.w r0, [pc, #-0]
# CHECK: ldrsb.w r12, [pc, #80]
# CHECK: ldrsb.w r3, [pc, #0]
0x1f 0xf9 0x00 0x00
0x9f 0xf9 0x50 0xc0
0x9f 0xf9 0x00 0x30


#------------------------------------------------------------------------------
# LDRSBT
#------------------------------------------------------------------------------
# CHECK: ldrsbt r1, [r2]
# CHECK: ldrsbt r1, [r8]
# CHECK: ldrsbt r1, [r8, #3]
# CHECK: ldrsbt r1, [r8, #255]

0x12 0xf9 0x00 0x1e
0x18 0xf9 0x00 0x1e
0x18 0xf9 0x03 0x1e
0x18 0xf9 0xff 0x1e


#------------------------------------------------------------------------------
# LDRSH(immediate)
#------------------------------------------------------------------------------
# CHECK: ldrsh r5, [r5, #-4]
# CHECK: ldrsh.w r5, [r6, #32]
# CHECK: ldrsh.w r5, [r6, #33]
# CHECK: ldrsh.w r5, [r6, #257]
# CHECK: ldrsh.w lr, [r7, #257]
# CHECK: ldrsh r10, [r5, #-0]

0x35 0xf9 0x04 0x5c
0xb6 0xf9 0x20 0x50
0xb6 0xf9 0x21 0x50
0xb6 0xf9 0x01 0x51
0xb7 0xf9 0x01 0xe1
0x35 0xf9 0x00 0xac

#------------------------------------------------------------------------------
# LDRSH(register)
#------------------------------------------------------------------------------
# CHECK: ldrsh.w r1, [r8, r1]
# CHECK: ldrsh.w r4, [r5, r2]
# CHECK: ldrsh.w r6, [r0, r2, lsl #3]
# CHECK: ldrsh.w r8, [r8, r2, lsl #2]
# CHECK: ldrsh.w r7, [sp, r2, lsl #1]
# CHECK: ldrsh.w r7, [sp, r2]
# CHECK: ldrsh r5, [r8, #255]!
# CHECK: ldrsh r2, [r5, #4]!
# CHECK: ldrsh r1, [r4, #-4]!
# CHECK: ldrsh r1, [r4, #0]!
# CHECK: ldrsh lr, [r3], #255
# CHECK: ldrsh r9, [r2], #4
# CHECK: ldrsh r3, [sp], #-4

0x38 0xf9 0x01 0x10
0x35 0xf9 0x02 0x40
0x30 0xf9 0x32 0x60
0x38 0xf9 0x22 0x80
0x3d 0xf9 0x12 0x70
0x3d 0xf9 0x02 0x70
0x38 0xf9 0xff 0x5f
0x35 0xf9 0x04 0x2f
0x34 0xf9 0x04 0x1d
0x34 0xf9 0x00 0x1f
0x33 0xf9 0xff 0xeb
0x32 0xf9 0x04 0x9b
0x3d 0xf9 0x04 0x39


#------------------------------------------------------------------------------
# LDRSH(literal)
#------------------------------------------------------------------------------
# CHECK: ldrsh.w r0, [pc, #-0]
# CHECK: ldrsh.w r10, [pc, #-231]
# CHECK: ldrsh.w r6, [pc, #0]
0x3f 0xf9 0x00 0x00
0x3f 0xf9 0xe7 0xa0
0xbf 0xf9 0x00 0x60


#------------------------------------------------------------------------------
# LDRSHT
#------------------------------------------------------------------------------
# CHECK: ldrsht r1, [r2]
# CHECK: ldrsht r1, [r8]
# CHECK: ldrsht r1, [r8, #3]
# CHECK: ldrsht r1, [r8, #255]

0x32 0xf9 0x00 0x1e
0x38 0xf9 0x00 0x1e
0x38 0xf9 0x03 0x1e
0x38 0xf9 0xff 0x1e


#------------------------------------------------------------------------------
# LDRT
#------------------------------------------------------------------------------
# CHECK: ldrt r1, [r2]
# CHECK: ldrt r2, [r6]
# CHECK: ldrt r3, [r7, #3]
# CHECK: ldrt r4, [r9, #255]

0x52 0xf8 0x00 0x1e
0x56 0xf8 0x00 0x2e
0x57 0xf8 0x03 0x3e
0x59 0xf8 0xff 0x4e


#------------------------------------------------------------------------------
# LSL (immediate)
#------------------------------------------------------------------------------
# CHECK: lsl.w r2, r3, #12
# CHECK: lsls.w r8, r3, #31
# CHECK: lsls.w r2, r3, #1
# CHECK: lsl.w r2, r3, #4
# CHECK: lsls.w r2, r12, #15

# CHECK: lsl.w r3, r3, #19
# CHECK: lsls.w r8, r8, #2
# CHECK: lsls.w r7, r7, #5
# CHECK: lsl.w r12, r12, #21

0x4f 0xea 0x03 0x32
0x5f 0xea 0xc3 0x78
0x5f 0xea 0x43 0x02
0x4f 0xea 0x03 0x12
0x5f 0xea 0xcc 0x32

0x4f 0xea 0xc3 0x43
0x5f 0xea 0x88 0x08
0x5f 0xea 0x47 0x17
0x4f 0xea 0x4c 0x5c


#------------------------------------------------------------------------------
# LSL (register)
#------------------------------------------------------------------------------
# CHECK: lsl.w r3, r4, r2
# CHECK: lsl.w r1, r1, r2
# CHECK: lsls.w r3, r4, r8

0x04 0xfa 0x02 0xf3
0x01 0xfa 0x02 0xf1
0x14 0xfa 0x08 0xf3


#------------------------------------------------------------------------------
# LSR (immediate)
#------------------------------------------------------------------------------
# CHECK: lsr.w r2, r3, #12
# CHECK: lsrs.w r8, r3, #32
# CHECK: lsrs.w r2, r3, #1
# CHECK: lsr.w r2, r3, #4
# CHECK: lsrs.w r2, r12, #15

# CHECK: lsr.w r3, r3, #19
# CHECK: lsrs.w r8, r8, #2
# CHECK: lsrs.w r7, r7, #5
# CHECK: lsr.w r12, r12, #21

0x4f 0xea 0x13 0x32
0x5f 0xea 0x13 0x08
0x5f 0xea 0x53 0x02
0x4f 0xea 0x13 0x12
0x5f 0xea 0xdc 0x32

0x4f 0xea 0xd3 0x43
0x5f 0xea 0x98 0x08
0x5f 0xea 0x57 0x17
0x4f 0xea 0x5c 0x5c


#------------------------------------------------------------------------------
# LSR (register)
#------------------------------------------------------------------------------
# CHECK: lsr.w r3, r4, r2
# CHECK: lsr.w r1, r1, r2
# CHECK: lsrs.w r3, r4, r8

0x24 0xfa 0x02 0xf3
0x21 0xfa 0x02 0xf1
0x34 0xfa 0x08 0xf3

#------------------------------------------------------------------------------
# MCR/MCR2
#------------------------------------------------------------------------------
# CHECK: mcr  p7, #1, r5, c1, c1, #4
# CHECK: mcr2  p7, #1, r5, c1, c1, #4

0x21 0xee 0x91 0x57
0x21 0xfe 0x91 0x57


#------------------------------------------------------------------------------
# MCRR/MCRR2
#------------------------------------------------------------------------------
# CHECK: mcrr  p7, #15, r5, r4, c1
# CHECK: mcrr2  p7, #15, r5, r4, c1

0x44 0xec 0xf1 0x57
0x44 0xfc 0xf1 0x57


#------------------------------------------------------------------------------
# MLA/MLS
#------------------------------------------------------------------------------
# CHECK: mla  r1, r2, r3, r4
# CHECK: mls  r1, r2, r3, r4

0x02 0xfb 0x03 0x41
0x02 0xfb 0x13 0x41


#------------------------------------------------------------------------------
# MOV(immediate)
#------------------------------------------------------------------------------
# CHECK: movs r1, #21
# CHECK: movs.w r1, #21
# CHECK: movs.w r8, #21
# CHECK: movw r0, #65535
# CHECK: movw r1, #43777
# CHECK: movw r1, #43792
# CHECK: mov.w r0, #66846720
# CHECK: mov.w r0, #66846720
# CHECK: movs.w r0, #66846720

0x15 0x21
0x5f 0xf0 0x15 0x01
0x5f 0xf0 0x15 0x08
0x4f 0xf6 0xff 0x70
0x4a 0xf6 0x01 0x31
0x4a 0xf6 0x10 0x31
0x4f 0xf0 0x7f 0x70
0x4f 0xf0 0x7f 0x70
0x5f 0xf0 0x7f 0x70

#------------------------------------------------------------------------------
# MOVT
#------------------------------------------------------------------------------
# CHECK: movt r3, #7
# CHECK: movt r6, #65535
# CHECK: it eq
# CHECK: movteq r4, #4080

0xc0 0xf2 0x07 0x03
0xcf 0xf6 0xff 0x76
0x08 0xbf
0xc0 0xf6 0xf0 0x74

#------------------------------------------------------------------------------
# MRC/MRC2
#------------------------------------------------------------------------------
# CHECK: mrc  p14, #0, r1, c1, c2, #4
# CHECK: mrc2  p14, #0, r1, c1, c2, #4

0x11 0xee 0x92 0x1e
0x11 0xfe 0x92 0x1e


#------------------------------------------------------------------------------
# MRRC/MRRC2
#------------------------------------------------------------------------------
# CHECK: mrrc  p7, #1, r5, r4, c1
# CHECK: mrrc2  p7, #1, r5, r4, c1

0x54 0xec 0x11 0x57
0x54 0xfc 0x11 0x57


#------------------------------------------------------------------------------
# MRS
#------------------------------------------------------------------------------
# CHECK: mrs  r8, apsr
# CHECK: mrs  r8, spsr

0xef 0xf3 0x00 0x88
0xff 0xf3 0x00 0x88


#------------------------------------------------------------------------------
# MSR
#------------------------------------------------------------------------------
# CHECK: msr  APSR_nzcvq, r1
# CHECK: msr  APSR_g, r2
# CHECK: msr  APSR_nzcvq, r3
# CHECK: msr  APSR_nzcvq, r4
# CHECK: msr  APSR_nzcvqg, r5
# CHECK: msr  CPSR_fc, r6
# CHECK: msr  CPSR_c, r7
# CHECK: msr  CPSR_x, r8
# CHECK: msr  CPSR_fc, r9
# CHECK: msr  CPSR_fc, r11
# CHECK: msr  CPSR_fsx, r12
# CHECK: msr  SPSR_fc, r0
# CHECK: msr  SPSR_fsxc, r5
# CHECK: msr  CPSR_fsxc, r8

0x81 0xf3 0x00 0x88
0x82 0xf3 0x00 0x84
0x83 0xf3 0x00 0x88
0x84 0xf3 0x00 0x88
0x85 0xf3 0x00 0x8c
0x86 0xf3 0x00 0x89
0x87 0xf3 0x00 0x81
0x88 0xf3 0x00 0x82
0x89 0xf3 0x00 0x89
0x8b 0xf3 0x00 0x89
0x8c 0xf3 0x00 0x8e
0x90 0xf3 0x00 0x89
0x95 0xf3 0x00 0x8f
0x88 0xf3 0x00 0x8f


#------------------------------------------------------------------------------
# MUL
#------------------------------------------------------------------------------
# CHECK: muls r3, r4, r3
# CHECK: mul r3, r4, r3
# CHECK: mul r3, r4, r6
# CHECK: it eq
# CHECK: muleq r3, r4, r5

0x63 0x43
0x04 0xfb 0x03 0xf3
0x04 0xfb 0x06 0xf3
0x08 0xbf
0x04 0xfb 0x05 0xf3


#------------------------------------------------------------------------------
# MVN(immediate)
#------------------------------------------------------------------------------
# CHECK: mvns r8, #21
# CHECK: mvn r0, #66846720
# CHECK: mvns r0, #66846720
# CHECK: itte eq
# CHECK: mvnseq r1, #12
# CHECK: mvneq r1, #12
# CHECK: mvnne r1, #12

0x7f 0xf0 0x15 0x08
0x6f 0xf0 0x7f 0x70
0x7f 0xf0 0x7f 0x70
0x06 0xbf
0x7f 0xf0 0x0c 0x01
0x6f 0xf0 0x0c 0x01
0x6f 0xf0 0x0c 0x01


#------------------------------------------------------------------------------
# MVN(register)
#------------------------------------------------------------------------------
# CHECK: mvn.w r2, r3
# CHECK: mvns r2, r3
# CHECK: mvn.w r5, r6, lsl #19
# CHECK: mvn.w r5, r6, lsr #9
# CHECK: mvn.w r5, r6, asr #4
# CHECK: mvn.w r5, r6, ror #6
# CHECK: mvn.w r5, r6, rrx
# CHECK: it eq
# CHECK: mvneq r2, r3

0x6f 0xea 0x03 0x02
0xda 0x43
0x6f 0xea 0xc6 0x45
0x6f 0xea 0x56 0x25
0x6f 0xea 0x26 0x15
0x6f 0xea 0xb6 0x15
0x6f 0xea 0x36 0x05
0x08 0xbf
0xda 0x43

#------------------------------------------------------------------------------
# NOP
#------------------------------------------------------------------------------
# CHECK: nop.w

0xaf 0xf3 0x00 0x80


#------------------------------------------------------------------------------
# ORN
#------------------------------------------------------------------------------
# CHECK: orn r4, r5, #61440
# CHECK: orn r4, r5, r6
# CHECK: orns r4, r5, r6
# CHECK: orn r4, r5, r6, lsl #5
# CHECK: orns r4, r5, r6, lsr #5
# CHECK: orn r4, r5, r6, lsr #5
# CHECK: orns r4, r5, r6, asr #5
# CHECK: orn r4, r5, r6, ror #5

0x65 0xf4 0x70 0x44
0x65 0xea 0x06 0x04
0x75 0xea 0x06 0x04
0x65 0xea 0x46 0x14
0x75 0xea 0x56 0x14
0x65 0xea 0x56 0x14
0x75 0xea 0x66 0x14
0x65 0xea 0x76 0x14


#------------------------------------------------------------------------------
# ORR
#------------------------------------------------------------------------------
# CHECK: orr r4, r5, #61440
# CHECK: orr.w r4, r5, r6
# CHECK: orr.w r4, r5, r6, lsl #5
# CHECK: orrs.w r4, r5, r6, lsr #5
# CHECK: orr.w r4, r5, r6, lsr #5
# CHECK: orrs.w r4, r5, r6, asr #5
# CHECK: orr.w r4, r5, r6, ror #5

0x45 0xf4 0x70 0x44
0x45 0xea 0x06 0x04
0x45 0xea 0x46 0x14
0x55 0xea 0x56 0x14
0x45 0xea 0x56 0x14
0x55 0xea 0x66 0x14
0x45 0xea 0x76 0x14


#------------------------------------------------------------------------------
# PKH
#------------------------------------------------------------------------------
# CHECK: pkhbt r2, r2, r3
# CHECK: pkhbt r2, r2, r3, lsl #31
# CHECK: pkhbt r2, r2, r3, lsl #15

# CHECK: pkhtb r2, r2, r3, asr #31
# CHECK: pkhtb r2, r2, r3, asr #15

0xc2 0xea 0x03 0x02
0xc2 0xea 0xc3 0x72
0xc2 0xea 0xc3 0x32

0xc2 0xea 0xe3 0x72
0xc2 0xea 0xe3 0x32


#------------------------------------------------------------------------------
# PLD(immediate)
#------------------------------------------------------------------------------
# CHECK: pld [r5, #-4]
# CHECK: pld [r6, #32]
# CHECK: pld [r6, #33]
# CHECK: pld [r6, #257]
# CHECK: pld [r7, #257]

0x15 0xf8 0x04 0xfc
0x96 0xf8 0x20 0xf0
0x96 0xf8 0x21 0xf0
0x96 0xf8 0x01 0xf1
0x97 0xf8 0x01 0xf1

#------------------------------------------------------------------------------
# PLD(register)
#------------------------------------------------------------------------------
# CHECK: pld [r8, r1]
# CHECK: pld [r5, r2]
# CHECK: pld [r0, r2, lsl #3]
# CHECK: pld [r8, r2, lsl #2]
# CHECK: pld [sp, r2, lsl #1]
# CHECK: pld [sp, r2]

0x18 0xf8 0x01 0xf0
0x15 0xf8 0x02 0xf0
0x10 0xf8 0x32 0xf0
0x18 0xf8 0x22 0xf0
0x1d 0xf8 0x12 0xf0
0x1d 0xf8 0x02 0xf0

#------------------------------------------------------------------------------
# PLD(literal)
#------------------------------------------------------------------------------
# CHECK: pld [pc, #-0]
# CHECK: pld [pc, #455]
# CHECK: pld [pc, #0]

0x1f 0xf8 0x00 0xf0
0x9f 0xf8 0xc7 0xf1
0x9f 0xf8 0x00 0xf0

#------------------------------------------------------------------------------
# PLI(immediate)
#------------------------------------------------------------------------------
# CHECK: pli [r5, #-4]
# CHECK: pli [r6, #32]
# CHECK: pli [r6, #33]
# CHECK: pli [r6, #257]
# CHECK: pli [r7, #257]

0x15 0xf9 0x04 0xfc
0x96 0xf9 0x20 0xf0
0x96 0xf9 0x21 0xf0
0x96 0xf9 0x01 0xf1
0x97 0xf9 0x01 0xf1

#------------------------------------------------------------------------------
# PLI(register)
#------------------------------------------------------------------------------
# CHECK: pli [r8, r1]
# CHECK: pli [r5, r2]
# CHECK: pli [r0, r2, lsl #3]
# CHECK: pli [r8, r2, lsl #2]
# CHECK: pli [sp, r2, lsl #1]
# CHECK: pli [sp, r2]

0x18 0xf9 0x01 0xf0
0x15 0xf9 0x02 0xf0
0x10 0xf9 0x32 0xf0
0x18 0xf9 0x22 0xf0
0x1d 0xf9 0x12 0xf0
0x1d 0xf9 0x02 0xf0

#------------------------------------------------------------------------------
# PLI(literal)
#------------------------------------------------------------------------------
# CHECK: pli [pc, #-0]
# CHECK: pli [pc, #-328]
# CHECK: pli [pc, #0]

0x1f 0xf9 0x00 0xf0
0x1f 0xf9 0x48 0xf1
0x9f 0xf9 0x00 0xf0


#------------------------------------------------------------------------------
# QADD/QADD16/QADD8
#------------------------------------------------------------------------------
# CHECK: qadd r1, r2, r3
# CHECK: qadd16 r1, r2, r3
# CHECK: qadd8 r1, r2, r3
# CHECK: itte gt
# CHECK: qaddgt r1, r2, r3
# CHECK: qadd16gt r1, r2, r3
# CHECK: qadd8le r1, r2, r3

0x83 0xfa 0x82 0xf1
0x92 0xfa 0x13 0xf1
0x82 0xfa 0x13 0xf1
0xc6 0xbf
0x83 0xfa 0x82 0xf1
0x92 0xfa 0x13 0xf1
0x82 0xfa 0x13 0xf1


#------------------------------------------------------------------------------
# QDADD/QDSUB
#------------------------------------------------------------------------------
# CHECK: qdadd r6, r7, r8
# CHECK: qdsub r6, r7, r8
# CHECK: itt hi
# CHECK: qdaddhi r6, r7, r8
# CHECK: qdsubhi r6, r7, r8

0x88 0xfa 0x97 0xf6
0x88 0xfa 0xb7 0xf6
0x84 0xbf
0x88 0xfa 0x97 0xf6
0x88 0xfa 0xb7 0xf6


#------------------------------------------------------------------------------
# QSAX
#------------------------------------------------------------------------------
# CHECK: qsax r9, r12, r0
# CHECK: it eq
# CHECK: qsaxeq r9, r12, r0

0xec 0xfa 0x10 0xf9
0x08 0xbf
0xec 0xfa 0x10 0xf9


#------------------------------------------------------------------------------
# QSUB/QSUB16/QSUB8
#------------------------------------------------------------------------------
# CHECK: qsub r1, r2, r3
# CHECK: qsub16 r1, r2, r3
# CHECK: qsub8 r1, r2, r3
# CHECK: itet le
# CHECK: qsuble r1, r2, r3
# CHECK: qsub16gt r1, r2, r3
# CHECK: qsub8le r1, r2, r3

0x83 0xfa 0xa2 0xf1
0xd2 0xfa 0x13 0xf1
0xc2 0xfa 0x13 0xf1
0xd6 0xbf
0x83 0xfa 0xa2 0xf1
0xd2 0xfa 0x13 0xf1
0xc2 0xfa 0x13 0xf1


#------------------------------------------------------------------------------
# RBIT
#------------------------------------------------------------------------------
# CHECK: rbit r1, r2
# CHECK: it ne
# CHECK: rbitne r1, r2

0x92 0xfa 0xa2 0xf1
0x18 0xbf
0x92 0xfa 0xa2 0xf1


#------------------------------------------------------------------------------
# REV
#------------------------------------------------------------------------------
# CHECK: rev.w r1, r2
# CHECK: rev.w r2, r8
# CHECK: itt ne
# CHECK: revne r1, r2
# CHECK: revne.w r1, r8

0x92 0xfa 0x82 0xf1
0x98 0xfa 0x88 0xf2
0x1c 0xbf
0x11 0xba
0x98 0xfa 0x88 0xf1


#------------------------------------------------------------------------------
# REV16
#------------------------------------------------------------------------------
# CHECK: rev16.w r1, r2
# CHECK: rev16.w r2, r8
# CHECK: itt ne
# CHECK: rev16ne r1, r2
# CHECK: rev16ne.w r1, r8

0x92 0xfa 0x92 0xf1
0x98 0xfa 0x98 0xf2
0x1c 0xbf
0x51 0xba
0x98 0xfa 0x98 0xf1


#------------------------------------------------------------------------------
# REVSH
#------------------------------------------------------------------------------
# CHECK: revsh.w r1, r2
# CHECK: revsh.w r2, r8
# CHECK: itt ne
# CHECK: revshne r1, r2
# CHECK: revshne.w r1, r8

0x92 0xfa 0xb2 0xf1
0x98 0xfa 0xb8 0xf2
0x1c 0xbf
0xd1 0xba
0x98 0xfa 0xb8 0xf1


#------------------------------------------------------------------------------
# ROR (immediate)
#------------------------------------------------------------------------------
# CHECK: ror.w r2, r3, #12
# CHECK: rors.w r8, r3, #31
# CHECK: rors.w r2, r3, #1
# CHECK: ror.w r2, r3, #4
# CHECK: rors.w r2, r12, #15

# CHECK: ror.w r3, r3, #19
# CHECK: rors.w r8, r8, #2
# CHECK: rors.w r7, r7, #5
# CHECK: ror.w r12, r12, #21

0x4f 0xea 0x33 0x32
0x5f 0xea 0xf3 0x78
0x5f 0xea 0x73 0x02
0x4f 0xea 0x33 0x12
0x5f 0xea 0xfc 0x32

0x4f 0xea 0xf3 0x43
0x5f 0xea 0xb8 0x08
0x5f 0xea 0x77 0x17
0x4f 0xea 0x7c 0x5c


#------------------------------------------------------------------------------
# ROR (register)
#------------------------------------------------------------------------------
# CHECK: ror.w r3, r4, r2
# CHECK: ror.w r1, r1, r2
# CHECK: rors.w r3, r4, r8

0x64 0xfa 0x02 0xf3
0x61 0xfa 0x02 0xf1
0x74 0xfa 0x08 0xf3


#------------------------------------------------------------------------------
# RRX
#------------------------------------------------------------------------------
# CHECK: rrx r1, r2
# CHECK: rrxs r1, r2
# CHECK: ite lt
# CHECK: rrxlt r9, r12
# CHECK: rrxsge r8, r3

0x4f 0xea 0x32 0x01
0x5f 0xea 0x32 0x01
0xb4 0xbf
0x4f 0xea 0x3c 0x09
0x5f 0xea 0x33 0x08

#------------------------------------------------------------------------------
# RSB (immediate)
#------------------------------------------------------------------------------
# CHECK: rsb.w r2, r5, #1044480
# CHECK: rsbs.w r3, r12, #15
# CHECK: rsb.w r1, r1, #255

0xc5 0xf5 0x7f 0x22
0xdc 0xf1 0x0f 0x03
0xc1 0xf1 0xff 0x01


#------------------------------------------------------------------------------
# RSB (register)
#------------------------------------------------------------------------------
# CHECK: rsb r4, r4, r8
# CHECK: rsb r4, r9, r8
# CHECK: rsb r1, r4, r8, asr #3
# CHECK: rsbs r2, r1, r7, lsl #1

0xc4 0xeb 0x08 0x04
0xc9 0xeb 0x08 0x04
0xc4 0xeb 0xe8 0x01
0xd1 0xeb 0x47 0x02


#------------------------------------------------------------------------------
# SADD16
#------------------------------------------------------------------------------
# CHECK: sadd16 r3, r4, r8
# CHECK: it ne
# CHECK: sadd16ne r3, r4, r8

0x94 0xfa 0x08 0xf3
0x18 0xbf
0x94 0xfa 0x08 0xf3


#------------------------------------------------------------------------------
# SADD8
#------------------------------------------------------------------------------
# CHECK: sadd8 r3, r4, r8
# CHECK: it ne
# CHECK: sadd8ne r3, r4, r8

0x84 0xfa 0x08 0xf3
0x18 0xbf
0x84 0xfa 0x08 0xf3


#------------------------------------------------------------------------------
# SASX
#------------------------------------------------------------------------------
# CHECK: sasx r9, r2, r7
# CHECK: it ne
# CHECK: sasxne r2, r5, r6

0xa2 0xfa 0x07 0xf9
0x18 0xbf
0xa5 0xfa 0x06 0xf2


#------------------------------------------------------------------------------
# SBC (immediate)
#------------------------------------------------------------------------------
# CHECK: sbc r0, r1, #4
# CHECK: sbcs r0, r1, #0
# CHECK: sbc r1, r2, #255
# CHECK: sbc r3, r7, #5570645
# CHECK: sbc r8, r12, #2852170240
# CHECK: sbc r9, r7, #2779096485
# CHECK: sbc r5, r3, #2264924160
# CHECK: sbc r4, r2, #2139095040
# CHECK: sbc r4, r2, #1664

0x61 0xf1 0x04 0x00
0x71 0xf1 0x00 0x00
0x62 0xf1 0xff 0x01
0x67 0xf1 0x55 0x13
0x6c 0xf1 0xaa 0x28
0x67 0xf1 0xa5 0x39
0x63 0xf1 0x07 0x45
0x62 0xf1 0xff 0x44
0x62 0xf5 0xd0 0x64


#------------------------------------------------------------------------------
# SBC (register)
#------------------------------------------------------------------------------
# CHECK: sbc.w r4, r5, r6
# CHECK: sbcs.w r4, r5, r6
# CHECK: sbc.w r9, r1, r3
# CHECK: sbcs.w r9, r1, r3
# CHECK: sbc.w r0, r1, r3, ror #4
# CHECK: sbcs.w r0, r1, r3, lsl #7
# CHECK: sbc.w r0, r1, r3, lsr #31
# CHECK: sbcs.w r0, r1, r3, asr #32

0x65 0xeb 0x06 0x04
0x75 0xeb 0x06 0x04
0x61 0xeb 0x03 0x09
0x71 0xeb 0x03 0x09
0x61 0xeb 0x33 0x10
0x71 0xeb 0xc3 0x10
0x61 0xeb 0xd3 0x70
0x71 0xeb 0x23 0x00


#------------------------------------------------------------------------------
# SBFX
#------------------------------------------------------------------------------
# CHECK: sbfx r4, r5, #16, #1
# CHECK: it gt
# CHECK: sbfxgt r4, r5, #16, #16

0x45 0xf3 0x00 0x44
0xc8 0xbf
0x45 0xf3 0x0f 0x44


#------------------------------------------------------------------------------
# SEL
#------------------------------------------------------------------------------
# CHECK: sel r5, r9, r2
# CHECK: it le
# CHECK: selle r5, r9, r2

0xa9 0xfa 0x82 0xf5
0xd8 0xbf
0xa9 0xfa 0x82 0xf5


#------------------------------------------------------------------------------
# SEV
#------------------------------------------------------------------------------
# CHECK: sev.w
# CHECK: it eq
# CHECK: seveq.w

0xaf 0xf3 0x04 0x80
0x08 0xbf
0xaf 0xf3 0x04 0x80


#------------------------------------------------------------------------------
# SADD16/SADD8
#------------------------------------------------------------------------------
# CHECK: sadd16 r1, r2, r3
# CHECK: sadd8 r1, r2, r3
# CHECK: ite gt
# CHECK: sadd16gt r1, r2, r3
# CHECK: sadd8le r1, r2, r3

0x92 0xfa 0x03 0xf1
0x82 0xfa 0x03 0xf1
0xcc 0xbf
0x92 0xfa 0x03 0xf1
0x82 0xfa 0x03 0xf1


#------------------------------------------------------------------------------
# SHASX
#------------------------------------------------------------------------------
# CHECK: shasx r4, r8, r2
# CHECK: it gt
# CHECK: shasxgt r4, r8, r2

0xa8 0xfa 0x22 0xf4
0xc8 0xbf
0xa8 0xfa 0x22 0xf4


#------------------------------------------------------------------------------
# SHASX
#------------------------------------------------------------------------------
# CHECK: shsax r4, r8, r2
# CHECK: it gt
# CHECK: shsaxgt r4, r8, r2

0xe8 0xfa 0x22 0xf4
0xc8 0xbf
0xe8 0xfa 0x22 0xf4


#------------------------------------------------------------------------------
# SHSUB16/SHSUB8
#------------------------------------------------------------------------------
# CHECK: shsub16 r4, r8, r2
# CHECK: shsub8 r4, r8, r2
# CHECK: itt gt
# CHECK: shsub16gt r4, r8, r2
# CHECK: shsub8gt r4, r8, r2

0xd8 0xfa 0x22 0xf4
0xc8 0xfa 0x22 0xf4
0xc4 0xbf
0xd8 0xfa 0x22 0xf4
0xc8 0xfa 0x22 0xf4


#------------------------------------------------------------------------------
# SMLABB/SMLABT/SMLATB/SMLATT
#------------------------------------------------------------------------------
# CHECK: smlabb r3, r1, r9, r0
# CHECK: smlabt r5, r6, r4, r1
# CHECK: smlatb r4, r2, r3, r2
# CHECK: smlatt r8, r3, r8, r4
# CHECK: itete gt
# CHECK: smlabbgt r3, r1, r9, r0
# CHECK: smlabtle r5, r6, r4, r1
# CHECK: smlatbgt r4, r2, r3, r2
# CHECK: smlattle r8, r3, r8, r4

0x11 0xfb 0x09 0x03
0x16 0xfb 0x14 0x15
0x12 0xfb 0x23 0x24
0x13 0xfb 0x38 0x48
0xcb 0xbf
0x11 0xfb 0x09 0x03
0x16 0xfb 0x14 0x15
0x12 0xfb 0x23 0x24
0x13 0xfb 0x38 0x48


#------------------------------------------------------------------------------
# SMLAD/SMLADX
#------------------------------------------------------------------------------
# CHECK: smlad r2, r3, r5, r8
# CHECK: smladx r2, r3, r5, r8
# CHECK: itt hi
# CHECK: smladhi r2, r3, r5, r8
# CHECK: smladxhi r2, r3, r5, r8

0x23 0xfb 0x05 0x82
0x23 0xfb 0x15 0x82
0x84 0xbf
0x23 0xfb 0x05 0x82
0x23 0xfb 0x15 0x82


#------------------------------------------------------------------------------
# SMLAL
#------------------------------------------------------------------------------
# CHECK: smlal r2, r3, r5, r8
# CHECK: it eq
# CHECK: smlaleq r2, r3, r5, r8

0xc5 0xfb 0x08 0x23
0x08 0xbf
0xc5 0xfb 0x08 0x23


#------------------------------------------------------------------------------
# SMLALBB/SMLALBT/SMLALTB/SMLALTT
#------------------------------------------------------------------------------
# CHECK: smlalbb r3, r1, r9, r0
# CHECK: smlalbt r5, r6, r4, r1
# CHECK: smlaltb r4, r2, r3, r2
# CHECK: smlaltt r8, r3, r8, r4
# CHECK: iteet ge
# CHECK: smlalbbge r3, r1, r9, r0
# CHECK: smlalbtlt r5, r6, r4, r1
# CHECK: smlaltblt r4, r2, r3, r2
# CHECK: smlalttge r8, r3, r8, r4

0xc9 0xfb 0x80 0x31
0xc4 0xfb 0x91 0x56
0xc3 0xfb 0xa2 0x42
0xc8 0xfb 0xb4 0x83
0xad 0xbf
0xc9 0xfb 0x80 0x31
0xc4 0xfb 0x91 0x56
0xc3 0xfb 0xa2 0x42
0xc8 0xfb 0xb4 0x83

#------------------------------------------------------------------------------
# SMLALD/SMLALDX
#------------------------------------------------------------------------------
# CHECK: smlald r2, r3, r5, r8
# CHECK: smlaldx r2, r3, r5, r8
# CHECK: ite eq
# CHECK: smlaldeq r2, r3, r5, r8
# CHECK: smlaldxne r2, r3, r5, r8

0xc5 0xfb 0xc8 0x23
0xc5 0xfb 0xd8 0x23
0x0c 0xbf
0xc5 0xfb 0xc8 0x23
0xc5 0xfb 0xd8 0x23


#------------------------------------------------------------------------------
# SMLAWB/SMLAWT
#------------------------------------------------------------------------------
# CHECK: smlawb r2, r3, r10, r8
# CHECK: smlawt r8, r3, r5, r9
# CHECK: ite eq
# CHECK: smlawbeq r2, r7, r5, r8
# CHECK: smlawtne r1, r3, r0, r8

0x33 0xfb 0x0a 0x82
0x33 0xfb 0x15 0x98
0x0c 0xbf
0x37 0xfb 0x05 0x82
0x33 0xfb 0x10 0x81


#------------------------------------------------------------------------------
# SMLSD/SMLSDX
#------------------------------------------------------------------------------
# CHECK: smlsd r2, r3, r5, r8
# CHECK: smlsdx r2, r3, r5, r8
# CHECK: ite le
# CHECK: smlsdle r2, r3, r5, r8
# CHECK: smlsdxgt r2, r3, r5, r8

0x43 0xfb 0x05 0x82
0x43 0xfb 0x15 0x82
0xd4 0xbf
0x43 0xfb 0x05 0x82
0x43 0xfb 0x15 0x82


#------------------------------------------------------------------------------
# SMLSLD/SMLSLDX
#------------------------------------------------------------------------------
# CHECK: smlsld r2, r9, r5, r1
# CHECK: smlsldx r4, r11, r2, r8
# CHECK: ite ge
# CHECK: smlsldge r8, r2, r5, r6
# CHECK: smlsldxlt r1, r0, r3, r8

0xd5 0xfb 0xc1 0x29
0xd2 0xfb 0xd8 0x4b
0xac 0xbf
0xd5 0xfb 0xc6 0x82
0xd3 0xfb 0xd8 0x10


#------------------------------------------------------------------------------
# SMMLA/SMMLAR
#------------------------------------------------------------------------------
# CHECK: smmla r1, r2, r3, r4
# CHECK: smmlar r4, r3, r2, r1
# CHECK: ite lo
# CHECK: smmlalo r1, r2, r3, r4
# CHECK: smmlarhs r4, r3, r2, r1

0x52 0xfb 0x03 0x41
0x53 0xfb 0x12 0x14
0x34 0xbf
0x52 0xfb 0x03 0x41
0x53 0xfb 0x12 0x14


#------------------------------------------------------------------------------
# SMMLS/SMMLSR
#------------------------------------------------------------------------------
# CHECK: smmls r1, r2, r3, r4
# CHECK: smmlsr r4, r3, r2, r1
# CHECK: ite lo
# CHECK: smmlslo r1, r2, r3, r4
# CHECK: smmlsrhs r4, r3, r2, r1

0x62 0xfb 0x03 0x41
0x63 0xfb 0x12 0x14
0x34 0xbf
0x62 0xfb 0x03 0x41
0x63 0xfb 0x12 0x14

#------------------------------------------------------------------------------
# SSAT
#------------------------------------------------------------------------------
# CHECK: ssat r9, #30, r0, asr #2

0x20 0xf3 0x9d 0x09

#------------------------------------------------------------------------------
# STR (immediate)
#------------------------------------------------------------------------------
# CHECK: str r10, [r11], #0

0x4b 0xf8 0x00 0xab

#------------------------------------------------------------------------------
# STRD (immediate)
#------------------------------------------------------------------------------
# CHECK: strd r1, r1, [r0], #0
# CHECK: strd r6, r3, [r5], #-8
# CHECK: strd r8, r5, [r5], #-0
# CHECK: strd r7, r4, [r5], #-4
# CHECK: strd r0, r1, [r2, #-0]!
# CHECK: strd r0, r1, [r2, #0]!
# CHECK: strd r0, r1, [r2, #-0]

0xe0 0xe8 0x00 0x11
0x65 0xe8 0x02 0x63
0x65 0xe8 0x00 0x85
0x65 0xe8 0x01 0x74
0x62 0xe9 0x00 0x01
0xe2 0xe9 0x00 0x01
0x42 0xe9 0x00 0x01

#------------------------------------------------------------------------------
# STREX/STREXB/STREXH/STREXD
#------------------------------------------------------------------------------
# CHECK: strex r1, r8, [r4]
# CHECK: strex r8, r2, [r4]
# CHECK: strex r2, r12, [sp, #128]
# CHECK: strexb r5, r1, [r7]
# CHECK: strexh r9, r7, [r12]
# CHECK: strexd r9, r3, r6, [r4]

0x44 0xe8 0x00 0x81
0x44 0xe8 0x00 0x28
0x4d 0xe8 0x20 0xc2
0xc7 0xe8 0x45 0x1f
0xcc 0xe8 0x59 0x7f
0xc4 0xe8 0x79 0x36


#------------------------------------------------------------------------------
# STRH(immediate)
#------------------------------------------------------------------------------
# CHECK: strh r5, [r5, #-4]
# CHECK: strh r5, [r6, #32]
# CHECK: strh.w r5, [r6, #33]
# CHECK: strh.w r5, [r6, #257]
# CHECK: strh.w lr, [r7, #257]
# CHECK: strh r5, [r8, #255]!
# CHECK: strh r2, [r5, #4]!
# CHECK: strh r1, [r4, #-4]!
# CHECK: strh r1, [r4, #0]!
# CHECK: strh lr, [r3], #255
# CHECK: strh r9, [r2], #4
# CHECK: strh r3, [sp], #-4

0x25 0xf8 0x04 0x5c
0x35 0x84
0xa6 0xf8 0x21 0x50
0xa6 0xf8 0x01 0x51
0xa7 0xf8 0x01 0xe1
0x28 0xf8 0xff 0x5f
0x25 0xf8 0x04 0x2f
0x24 0xf8 0x04 0x1d
0x24 0xf8 0x00 0x1f
0x23 0xf8 0xff 0xeb
0x22 0xf8 0x04 0x9b
0x2d 0xf8 0x04 0x39


#------------------------------------------------------------------------------
# STRH(register)
#------------------------------------------------------------------------------
# CHECK: strh.w r1, [r8, r1]
# CHECK: strh.w r4, [r5, r2]
# CHECK: strh.w r6, [r0, r2, lsl #3]
# CHECK: strh.w r8, [r8, r2, lsl #2]
# CHECK: strh.w r7, [sp, r2, lsl #1]
# CHECK: strh.w r7, [sp, r2]

0x28 0xf8 0x01 0x10
0x25 0xf8 0x02 0x40
0x20 0xf8 0x32 0x60
0x28 0xf8 0x22 0x80
0x2d 0xf8 0x12 0x70
0x2d 0xf8 0x02 0x70


#------------------------------------------------------------------------------
# STRHT
#------------------------------------------------------------------------------
# CHECK: strht r1, [r2]
# CHECK: strht r1, [r8]
# CHECK: strht r1, [r8, #3]
# CHECK: strht r1, [r8, #255]

0x22 0xf8 0x00 0x1e
0x28 0xf8 0x00 0x1e
0x28 0xf8 0x03 0x1e
0x28 0xf8 0xff 0x1e


#------------------------------------------------------------------------------
# STRT
#------------------------------------------------------------------------------
# CHECK: strt r1, [r2]
# CHECK: strt r1, [r8]
# CHECK: strt r1, [r8, #3]
# CHECK: strt r1, [r8, #255]

0x42 0xf8 0x00 0x1e
0x48 0xf8 0x00 0x1e
0x48 0xf8 0x03 0x1e
0x48 0xf8 0xff 0x1e


#------------------------------------------------------------------------------
# SUB (immediate)
#------------------------------------------------------------------------------
# CHECK: itet eq
# CHECK: subeq r1, r2, #4
# CHECK: subwne r5, r3, #1023
# CHECK: subweq r4, r5, #293
# CHECK: sub.w r2, sp, #1024
# CHECK: sub.w r2, r8, #65280
# CHECK: subw r2, r3, #257
# CHECK: sub.w r12, r6, #256
# CHECK: subw r12, r6, #256
# CHECK: subs.w r1, r2, #496
# CHECK: subs pc, lr, #4

0x0a 0xbf
0x11 0x1f
0xa3 0xf2 0xff 0x35
0xa5 0xf2 0x25 0x14
0xad 0xf5 0x80 0x62
0xa8 0xf5 0x7f 0x42
0xa3 0xf2 0x01 0x12
0xa6 0xf5 0x80 0x7c
0xa6 0xf2 0x00 0x1c
0xb2 0xf5 0xf8 0x71
0xde 0xf3 0x04 0x8f


#------------------------------------------------------------------------------
# SUB (register)
#------------------------------------------------------------------------------
# CHECK: sub.w r4, r5, r6
# CHECK: sub.w r4, r5, r6, lsl #5
# CHECK: sub.w r4, r5, r6, lsr #5
# CHECK: sub.w r4, r5, r6, lsr #5
# CHECK: sub.w r4, r5, r6, asr #5
# CHECK: sub.w r4, r5, r6, ror #5
# CHECK: sub.w r5, r2, r12, rrx

0xa5 0xeb 0x06 0x04
0xa5 0xeb 0x46 0x14
0xa5 0xeb 0x56 0x14
0xa5 0xeb 0x56 0x14
0xa5 0xeb 0x66 0x14
0xa5 0xeb 0x76 0x14
0xa2 0xeb 0x3c 0x05


#------------------------------------------------------------------------------
# SVC
#------------------------------------------------------------------------------
# CHECK: svc #0
# CHECK: ite eq
# CHECK: svceq #255
# CHECK: svcne #33

0x00 0xdf
0x0c 0xbf
0xff 0xdf
0x21 0xdf

#------------------------------------------------------------------------------
# SXTAB
#------------------------------------------------------------------------------
# CHECK:  sxtab r2, r3, r4
# CHECK:  sxtab r4, r5, r6
# CHECK:  it lt
# CHECK:  sxtablt r6, r2, r9, ror #8
# CHECK:  sxtab r5, r1, r4, ror #16
# CHECK:  sxtab r7, r8, r3, ror #24

0x43 0xfa 0x84 0xf2
0x45 0xfa 0x86 0xf4
0xb8 0xbf
0x42 0xfa 0x99 0xf6
0x41 0xfa 0xa4 0xf5
0x48 0xfa 0xb3 0xf7


#------------------------------------------------------------------------------
# SXTAB16
#------------------------------------------------------------------------------
# CHECK:  sxtab16 r6, r2, r7
# CHECK:  sxtab16 r3, r5, r8, ror #8
# CHECK:  sxtab16 r3, r2, r1, ror #16
# CHECK:  ite ne
# CHECK:  sxtab16ne r0, r1, r4
# CHECK:  sxtab16eq r1, r2, r3, ror #24

0x22 0xfa 0x87 0xf6
0x25 0xfa 0x98 0xf3
0x22 0xfa 0xa1 0xf3
0x14 0xbf
0x21 0xfa 0x84 0xf0
0x22 0xfa 0xb3 0xf1


#------------------------------------------------------------------------------
# SXTAH
#------------------------------------------------------------------------------
# CHECK:  sxtah r1, r3, r9
# CHECK:  sxtah r3, r8, r3, ror #8
# CHECK:  sxtah r9, r3, r3, ror #24
# CHECK:  ite hi
# CHECK:  sxtahhi r6, r1, r6
# CHECK:  sxtahls r2, r2, r4, ror #16

0x03 0xfa 0x89 0xf1
0x08 0xfa 0x93 0xf3
0x03 0xfa 0xb3 0xf9
0x8c 0xbf
0x01 0xfa 0x86 0xf6
0x02 0xfa 0xa4 0xf2


#------------------------------------------------------------------------------
# SXTB
#------------------------------------------------------------------------------
# CHECK:  sxtb r5, r6
# CHECK:  sxtb.w r6, r9, ror #8
# CHECK:  sxtb.w r8, r3, ror #24
# CHECK:  ite ge
# CHECK:  sxtbge r2, r4
# CHECK:  sxtblt.w r5, r1, ror #16

0x75 0xb2
0x4f 0xfa 0x99 0xf6
0x4f 0xfa 0xb3 0xf8
0xac 0xbf
0x62 0xb2
0x4f 0xfa 0xa1 0xf5


#------------------------------------------------------------------------------
# SXTB16
#------------------------------------------------------------------------------
# CHECK:  sxtb16 r1, r4
# CHECK:  sxtb16 r6, r7
# CHECK:  sxtb16 r3, r1, ror #16
# CHECK:  ite hs
# CHECK:  sxtb16hs r3, r5, ror #8
# CHECK:  sxtb16lo r2, r3, ror #24

0x2f 0xfa 0x84 0xf1
0x2f 0xfa 0x87 0xf6
0x2f 0xfa 0xa1 0xf3
0x2c 0xbf
0x2f 0xfa 0x95 0xf3
0x2f 0xfa 0xb3 0xf2


#------------------------------------------------------------------------------
# SXTH
#------------------------------------------------------------------------------
# CHECK:  sxth r1, r6
# CHECK:  sxth.w r3, r8, ror #8
# CHECK:  sxth.w r9, r3, ror #24
# CHECK:  itt ne
# CHECK:  sxthne.w r3, r9
# CHECK:  sxthne.w r2, r2, ror #16

0x31 0xb2
0x0f 0xfa 0x98 0xf3
0x0f 0xfa 0xb3 0xf9
0x1c 0xbf
0x0f 0xfa 0x89 0xf3
0x0f 0xfa 0xa2 0xf2


#------------------------------------------------------------------------------
# SXTB
#------------------------------------------------------------------------------
# CHECK:  sxtb r5, r6
# CHECK:  sxtb.w r6, r9, ror #8
# CHECK:  sxtb.w r8, r3, ror #24
# CHECK:  ite ge
# CHECK:  sxtbge r2, r4
# CHECK:  sxtblt.w r5, r1, ror #16

0x75 0xb2
0x4f 0xfa 0x99 0xf6
0x4f 0xfa 0xb3 0xf8
0xac 0xbf
0x62 0xb2
0x4f 0xfa 0xa1 0xf5


#------------------------------------------------------------------------------
# SXTB16
#------------------------------------------------------------------------------
# CHECK:  sxtb16 r1, r4
# CHECK:  sxtb16 r6, r7
# CHECK:  sxtb16 r3, r1, ror #16
# CHECK:  ite hs
# CHECK:  sxtb16hs r3, r5, ror #8
# CHECK:  sxtb16lo r2, r3, ror #24

0x2f 0xfa 0x84 0xf1
0x2f 0xfa 0x87 0xf6
0x2f 0xfa 0xa1 0xf3
0x2c 0xbf
0x2f 0xfa 0x95 0xf3
0x2f 0xfa 0xb3 0xf2


#------------------------------------------------------------------------------
# SXTH
#------------------------------------------------------------------------------
# CHECK:  sxth r1, r6
# CHECK:  sxth.w r3, r8, ror #8
# CHECK:  sxth.w r9, r3, ror #24
# CHECK:  itt ne
# CHECK:  sxthne.w r3, r9
# CHECK:  sxthne.w r2, r2, ror #16

0x31 0xb2
0x0f 0xfa 0x98 0xf3
0x0f 0xfa 0xb3 0xf9
0x1c 0xbf
0x0f 0xfa 0x89 0xf3
0x0f 0xfa 0xa2 0xf2


#------------------------------------------------------------------------------
# TBB/TBH
#------------------------------------------------------------------------------
# CHECK:  tbb [r3, r8]
# CHECK:  tbh [r3, r8, lsl #1]
# CHECK:  it eq
# CHECK:  tbbeq [r3, r8]
# CHECK:  it hs
# CHECK:  tbhhs [r3, r8, lsl #1]

0xd3 0xe8 0x08 0xf0
0xd3 0xe8 0x18 0xf0
0x08 0xbf
0xd3 0xe8 0x08 0xf0
0x28 0xbf
0xd3 0xe8 0x18 0xf0


#------------------------------------------------------------------------------
# TEQ
#------------------------------------------------------------------------------
# CHECK:  teq.w r5, #61440
# CHECK:  teq.w r4, r5
# CHECK:  teq.w r4, r5, lsl #5
# CHECK:  teq.w r4, r5, lsr #5
# CHECK:  teq.w r4, r5, lsr #5
# CHECK:  teq.w r4, r5, asr #5
# CHECK:  teq.w r4, r5, ror #5

0x95 0xf4 0x70 0x4f
0x94 0xea 0x05 0x0f
0x94 0xea 0x45 0x1f
0x94 0xea 0x55 0x1f
0x94 0xea 0x55 0x1f
0x94 0xea 0x65 0x1f
0x94 0xea 0x75 0x1f


#------------------------------------------------------------------------------
# TST
#------------------------------------------------------------------------------
# CHECK:  tst.w r5, #61440
# CHECK:  tst r2, r5
# CHECK:  tst.w r3, r12, lsl #5
# CHECK:  tst.w r4, r11, lsr #4
# CHECK:  tst.w r5, r10, lsr #12
# CHECK:  tst.w r6, r9, asr #30
# CHECK:  tst.w r7, r8, ror #2

0x15 0xf4 0x70 0x4f
0x2a 0x42
0x13 0xea 0x4c 0x1f
0x14 0xea 0x1b 0x1f
0x15 0xea 0x1a 0x3f
0x16 0xea 0xa9 0x7f
0x17 0xea 0xb8 0x0f


#------------------------------------------------------------------------------
# UADD16/UADD8
#------------------------------------------------------------------------------
# CHECK:  uadd16 r1, r2, r3
# CHECK:  uadd8 r1, r2, r3
# CHECK:  ite gt
# CHECK:  uadd16gt r1, r2, r3
# CHECK:  uadd8le r1, r2, r3

0x92 0xfa 0x43 0xf1
0x82 0xfa 0x43 0xf1
0xcc 0xbf
0x92 0xfa 0x43 0xf1
0x82 0xfa 0x43 0xf1


#------------------------------------------------------------------------------
# UASX
#------------------------------------------------------------------------------
# CHECK:  uasx r9, r12, r0
# CHECK:  it eq
# CHECK:  uasxeq r9, r12, r0
# CHECK:  uasx r9, r12, r0
# CHECK:  it eq
# CHECK:  uasxeq r9, r12, r0

0xac 0xfa 0x40 0xf9
0x08 0xbf
0xac 0xfa 0x40 0xf9
0xac 0xfa 0x40 0xf9
0x08 0xbf
0xac 0xfa 0x40 0xf9


#------------------------------------------------------------------------------
# UBFX
#------------------------------------------------------------------------------
# CHECK:  ubfx r4, r5, #16, #1
# CHECK:  it gt
# CHECK:  ubfxgt r4, r5, #16, #16

0xc5 0xf3 0x00 0x44
0xc8 0xbf
0xc5 0xf3 0x0f 0x44


#------------------------------------------------------------------------------
# UHADD16/UHADD8
#------------------------------------------------------------------------------
# CHECK:  uhadd16 r4, r8, r2
# CHECK:  uhadd8 r4, r8, r2
# CHECK:  itt gt
# CHECK:  uhadd16gt r4, r8, r2
# CHECK:  uhadd8gt r4, r8, r2

0x98 0xfa 0x62 0xf4
0x88 0xfa 0x62 0xf4
0xc4 0xbf
0x98 0xfa 0x62 0xf4
0x88 0xfa 0x62 0xf4


#------------------------------------------------------------------------------
# UHASX/UHSAX
#------------------------------------------------------------------------------
# CHECK:  uhasx r4, r1, r5
# CHECK:  uhsax r5, r6, r6
# CHECK:  itt gt
# CHECK:  uhasxgt r6, r9, r8
# CHECK:  uhsaxgt r7, r8, r12

0xa1 0xfa 0x65 0xf4
0xe6 0xfa 0x66 0xf5
0xc4 0xbf
0xa9 0xfa 0x68 0xf6
0xe8 0xfa 0x6c 0xf7

#------------------------------------------------------------------------------
# UHSUB16/UHSUB8
#------------------------------------------------------------------------------
# CHECK:  uhsub16 r5, r8, r3
# CHECK:  uhsub8 r1, r7, r6
# CHECK:  itt lt
# CHECK:  uhsub16lt r4, r9, r12
# CHECK:  uhsub8lt r3, r1, r5

0xd8 0xfa 0x63 0xf5
0xc7 0xfa 0x66 0xf1
0xbc 0xbf
0xd9 0xfa 0x6c 0xf4
0xc1 0xfa 0x65 0xf3


#------------------------------------------------------------------------------
# UMAAL
#------------------------------------------------------------------------------
# CHECK:  umaal r3, r4, r5, r6
# CHECK:  it lt
# CHECK:  umaallt r3, r4, r5, r6

0xe5 0xfb 0x66 0x34
0xb8 0xbf
0xe5 0xfb 0x66 0x34


#------------------------------------------------------------------------------
# UMLAL
#------------------------------------------------------------------------------
# CHECK:  umlal r2, r4, r6, r8
# CHECK:  it gt
# CHECK:  umlalgt r6, r1, r2, r6

0xe6 0xfb 0x08 0x24
0xc8 0xbf
0xe2 0xfb 0x06 0x61


#------------------------------------------------------------------------------
# UMULL
#------------------------------------------------------------------------------
# CHECK:  umull r2, r4, r6, r8
# CHECK:  it gt
# CHECK:  umullgt r6, r1, r2, r6

0xa6 0xfb 0x08 0x24
0xc8 0xbf
0xa2 0xfb 0x06 0x61


#------------------------------------------------------------------------------
# UQADD16/UQADD8
#------------------------------------------------------------------------------
# CHECK:  uqadd16 r1, r2, r3
# CHECK:  uqadd8 r3, r4, r8
# CHECK:  ite gt
# CHECK:  uqadd16gt r4, r7, r9
# CHECK:  uqadd8le r8, r1, r2

0x92 0xfa 0x53 0xf1
0x84 0xfa 0x58 0xf3
0xcc 0xbf
0x97 0xfa 0x59 0xf4
0x81 0xfa 0x52 0xf8


#------------------------------------------------------------------------------
# UQASX/UQSAX
#------------------------------------------------------------------------------
# CHECK:  uqasx r1, r2, r3
# CHECK:  uqsax r3, r4, r8
# CHECK:  ite gt
# CHECK:  uqasxgt r4, r7, r9
# CHECK:  uqsaxle r8, r1, r2

0xa2 0xfa 0x53 0xf1
0xe4 0xfa 0x58 0xf3
0xcc 0xbf
0xa7 0xfa 0x59 0xf4
0xe1 0xfa 0x52 0xf8


#------------------------------------------------------------------------------
# UQSUB16/UQSUB8
#------------------------------------------------------------------------------
# CHECK:  uqsub8 r8, r2, r9
# CHECK:  uqsub16 r1, r9, r7
# CHECK:  ite gt
# CHECK:  uqsub8gt r3, r1, r6
# CHECK:  uqsub16le r4, r6, r4

0xc2 0xfa 0x59 0xf8
0xd9 0xfa 0x57 0xf1
0xcc 0xbf
0xc1 0xfa 0x56 0xf3
0xd6 0xfa 0x54 0xf4


#------------------------------------------------------------------------------
# UQSUB16/UQSUB8
#------------------------------------------------------------------------------
# CHECK:  usad8 r1, r9, r7
# CHECK:  usada8 r8, r2, r9, r12
# CHECK:  ite gt
# CHECK:  usada8gt r3, r1, r6, r9
# CHECK:  usad8le r4, r6, r4

0x79 0xfb 0x07 0xf1
0x72 0xfb 0x09 0xc8
0xcc 0xbf
0x71 0xfb 0x06 0x93
0x76 0xfb 0x04 0xf4


#------------------------------------------------------------------------------
# USAT
#------------------------------------------------------------------------------
# CHECK:  usat r8, #1, r10
# CHECK:  usat r8, #4, r10
# CHECK:  usat r8, #5, r10, lsl #31
# CHECK:  usat r8, #16, r10, asr #1

0x8a 0xf3 0x01 0x08
0x8a 0xf3 0x04 0x08
0x8a 0xf3 0xc5 0x78
0xaa 0xf3 0x50 0x08


#------------------------------------------------------------------------------
# USAT16
#------------------------------------------------------------------------------
# CHECK:  usat16	r2, #2, r7
# CHECK:  usat16	r3, #15, r5

0xa7 0xf3 0x02 0x02
0xa5 0xf3 0x0f 0x03


#------------------------------------------------------------------------------
# USAX
#------------------------------------------------------------------------------
# CHECK:  usax r2, r3, r4
# CHECK:  it ne
# CHECK:  usaxne r6, r1, r9
# CHECK:  usax r2, r3, r4
# CHECK:  it ne
# CHECK:  usaxne r6, r1, r9

0xe3 0xfa 0x44 0xf2
0x18 0xbf
0xe1 0xfa 0x49 0xf6
0xe3 0xfa 0x44 0xf2
0x18 0xbf
0xe1 0xfa 0x49 0xf6


#------------------------------------------------------------------------------
# USUB16/USUB8
#------------------------------------------------------------------------------
# CHECK:  usub16 r4, r2, r7
# CHECK:  usub8 r1, r8, r5
# CHECK:  ite hi
# CHECK:  usub16hi r1, r1, r3
# CHECK:  usub8ls r9, r2, r3

0xd2 0xfa 0x47 0xf4
0xc8 0xfa 0x45 0xf1
0x8c 0xbf
0xd1 0xfa 0x43 0xf1
0xc2 0xfa 0x43 0xf9


#------------------------------------------------------------------------------
# UXTAB
#------------------------------------------------------------------------------
# CHECK:  uxtab r2, r3, r4
# CHECK:  uxtab r4, r5, r6
# CHECK:  it lt
# CHECK:  uxtablt r6, r2, r9, ror #8
# CHECK:  uxtab r5, r1, r4, ror #16
# CHECK:  uxtab r7, r8, r3, ror #24

0x53 0xfa 0x84 0xf2
0x55 0xfa 0x86 0xf4
0xb8 0xbf
0x52 0xfa 0x99 0xf6
0x51 0xfa 0xa4 0xf5
0x58 0xfa 0xb3 0xf7


#------------------------------------------------------------------------------
# UXTAB16
#------------------------------------------------------------------------------
# CHECK:  it ge
# CHECK:  uxtab16ge r0, r1, r4
# CHECK:  uxtab16 r6, r2, r7
# CHECK:  uxtab16 r3, r5, r8, ror #8
# CHECK:  uxtab16 r3, r2, r1, ror #16
# CHECK:  it eq
# CHECK:  uxtab16eq r1, r2, r3, ror #24

0xa8 0xbf
0x31 0xfa 0x84 0xf0
0x32 0xfa 0x87 0xf6
0x35 0xfa 0x98 0xf3
0x32 0xfa 0xa1 0xf3
0x08 0xbf
0x32 0xfa 0xb3 0xf1


#------------------------------------------------------------------------------
# UXTAH
#------------------------------------------------------------------------------
# CHECK:  uxtah r1, r3, r9
# CHECK:  it hi
# CHECK:  uxtahhi r6, r1, r6
# CHECK:  uxtah r3, r8, r3, ror #8
# CHECK:  it lo
# CHECK:  uxtahlo r2, r2, r4, ror #16
# CHECK:  uxtah r9, r3, r3, ror #24

0x13 0xfa 0x89 0xf1
0x88 0xbf
0x11 0xfa 0x86 0xf6
0x18 0xfa 0x93 0xf3
0x38 0xbf
0x12 0xfa 0xa4 0xf2
0x13 0xfa 0xb3 0xf9


#------------------------------------------------------------------------------
# UXTB
#------------------------------------------------------------------------------
# CHECK:  it ge
# CHECK:  uxtbge r2, r4
# CHECK:  uxtb r5, r6
# CHECK:  uxtb.w r6, r9, ror #8
# CHECK:  it lo
# CHECK:  uxtblo.w r5, r1, ror #16
# CHECK:  uxtb.w r8, r3, ror #24

0xa8 0xbf
0xe2 0xb2
0xf5 0xb2
0x5f 0xfa 0x99 0xf6
0x38 0xbf
0x5f 0xfa 0xa1 0xf5
0x5f 0xfa 0xb3 0xf8


#------------------------------------------------------------------------------
# UXTB16
#------------------------------------------------------------------------------
# CHECK:  uxtb16 r1, r4
# CHECK:  uxtb16 r6, r7
# CHECK:  it hs
# CHECK:  uxtb16hs r3, r5, ror #8
# CHECK:  uxtb16 r3, r1, ror #16
# CHECK:  it ge
# CHECK:  uxtb16ge r2, r3, ror #24

0x3f 0xfa 0x84 0xf1
0x3f 0xfa 0x87 0xf6
0x28 0xbf
0x3f 0xfa 0x95 0xf3
0x3f 0xfa 0xa1 0xf3
0xa8 0xbf
0x3f 0xfa 0xb3 0xf2


#------------------------------------------------------------------------------
# UXTH
#------------------------------------------------------------------------------
# CHECK:  it ne
# CHECK:  uxthne.w r3, r9
# CHECK:  uxth r1, r6
# CHECK:  uxth.w r3, r8, ror #8
# CHECK:  it le
# CHECK:  uxthle.w r2, r2, ror #16
# CHECK:  uxth.w r9, r3, ror #24

0x18 0xbf
0x1f 0xfa 0x89 0xf3
0xb1 0xb2
0x1f 0xfa 0x98 0xf3
0xd8 0xbf
0x1f 0xfa 0xa2 0xf2
0x1f 0xfa 0xb3 0xf9


#------------------------------------------------------------------------------
# WFE/WFI/YIELD
#------------------------------------------------------------------------------
# CHECK:  wfe
# CHECK:  wfi
# CHECK:  yield
# CHECK:  itet lt
# CHECK:  wfelt
# CHECK:  wfige
# CHECK:  yieldlt

0x20 0xbf
0x30 0xbf
0x10 0xbf
0xb6 0xbf
0x20 0xbf
0x30 0xbf
0x10 0xbf

#------------------------------------------------------------------------------
# Unallocated hints (They execute as NOPs, but software must not use them.)
#------------------------------------------------------------------------------
# CHECK: hint #6
# CHECK: hint.w #6
# CHECK: hint.w #102

0x60 0xbf
0xaf 0xf3 0x06 0x80
0xaf 0xf3 0x66 0x80