basic-arm-instructions.txt 63.7 KB
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
# RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -disassemble < %s | FileCheck %s

#------------------------------------------------------------------------------
# ADC (immediate)
#------------------------------------------------------------------------------
# CHECK: adc r1, r2, #15
# CHECK: adc r1, r2, #240
# CHECK: adc r1, r2, #3840
# CHECK: adc r1, r2, #61440
# CHECK: adc r1, r2, #983040
# CHECK: adc r1, r2, #15728640
# CHECK: adc r1, r2, #251658240
# CHECK: adc r1, r2, #-268435456
# CHECK: adc r1, r2, #-268435441
# CHECK: adc r7, r8, #-2147483638
# CHECK: adc r7, r8, #40, #2
# CHECK: adcs r1, r2, #3840
# CHECK: adcs r7, r8, #40, #2
# CHECK: adcseq r1, r2, #3840
# CHECK: adceq r1, r2, #3840

0x0f 0x10 0xa2 0xe2
0xf0 0x10 0xa2 0xe2
0x0f 0x1c 0xa2 0xe2
0x0f 0x1a 0xa2 0xe2
0x0f 0x18 0xa2 0xe2
0x0f 0x16 0xa2 0xe2
0x0f 0x14 0xa2 0xe2
0x0f 0x12 0xa2 0xe2
0xff 0x12 0xa2 0xe2
0x2a 0x71 0xa8 0xe2
0x28 0x71 0xa8 0xe2

0x0f 0x1c 0xb2 0xe2
0x28 0x71 0xb8 0xe2
0x0f 0x1c 0xb2 0x02
0x0f 0x1c 0xa2 0x02

#------------------------------------------------------------------------------
# ADC (register)
# ADC (shifted register)
#------------------------------------------------------------------------------
# CHECK: adc r4, r5, r6

# CHECK: adc r4, r5, r6, lsl #1
# CHECK: adc r4, r5, r6, lsl #31
# CHECK: adc r4, r5, r6, lsr #1
# CHECK: adc r4, r5, r6, lsr #31
# CHECK: adc r4, r5, r6, lsr #32
# CHECK: adc r4, r5, r6, asr #1
# CHECK: adc r4, r5, r6, asr #31
# CHECK: adc r4, r5, r6, asr #32
# CHECK: adc r4, r5, r6, ror #1
# CHECK: adc r4, r5, r6, ror #31

# CHECK: adc r6, r7, r8, lsl r9
# CHECK: adc r6, r7, r8, lsr r9
# CHECK: adc r6, r7, r8, asr r9
# CHECK: adc r6, r7, r8, ror r9
# CHECK: adc r4, r5, r6, rrx

# CHECK: adc r5, r5, r6
# CHECK: adc r4, r4, r5, lsl #1
# CHECK: adc r4, r4, r5, lsl #31
# CHECK: adc r4, r4, r5, lsr #1
# CHECK: adc r4, r4, r5, lsr #31
# CHECK: adc r4, r4, r5, lsr #32
# CHECK: adc r4, r4, r5, asr #1
# CHECK: adc r4, r4, r5, asr #31
# CHECK: adc r4, r4, r5, asr #32
# CHECK: adc r4, r4, r5, ror #1
# CHECK: adc r4, r4, r5, ror #31
# CHECK: adc r4, r4, r5, rrx
# CHECK: adc r6, r6, r7, lsl r9
# CHECK: adc r6, r6, r7, lsr r9
# CHECK: adc r6, r6, r7, asr r9
# CHECK: adc r6, r6, r7, ror r9
# CHECK: adc r4, r4, r5, rrx

0x06 0x40 0xa5 0xe0

0x86 0x40 0xa5 0xe0
0x86 0x4f 0xa5 0xe0
0xa6 0x40 0xa5 0xe0
0xa6 0x4f 0xa5 0xe0
0x26 0x40 0xa5 0xe0
0xc6 0x40 0xa5 0xe0
0xc6 0x4f 0xa5 0xe0
0x46 0x40 0xa5 0xe0
0xe6 0x40 0xa5 0xe0
0xe6 0x4f 0xa5 0xe0

0x18 0x69 0xa7 0xe0
0x38 0x69 0xa7 0xe0
0x58 0x69 0xa7 0xe0
0x78 0x69 0xa7 0xe0
0x66 0x40 0xa5 0xe0

0x06 0x50 0xa5 0xe0
0x85 0x40 0xa4 0xe0
0x85 0x4f 0xa4 0xe0
0xa5 0x40 0xa4 0xe0
0xa5 0x4f 0xa4 0xe0
0x25 0x40 0xa4 0xe0
0xc5 0x40 0xa4 0xe0
0xc5 0x4f 0xa4 0xe0
0x45 0x40 0xa4 0xe0
0xe5 0x40 0xa4 0xe0
0xe5 0x4f 0xa4 0xe0
0x65 0x40 0xa4 0xe0
0x17 0x69 0xa6 0xe0
0x37 0x69 0xa6 0xe0
0x57 0x69 0xa6 0xe0
0x77 0x69 0xa6 0xe0
0x65 0x40 0xa4 0xe0

#------------------------------------------------------------------------------
# ADD
#------------------------------------------------------------------------------
# CHECK: add r4, r5, #61440
# CHECK: add r7, r8, #-2147483638
# CHECK: add r7, r8, #40, #2
# CHECK: add r4, r5, r6
# CHECK: add r4, r5, r6, lsl #5
# CHECK: add r4, r5, r6, lsr #5
# CHECK: add r4, r5, r6, lsr #5
# CHECK: add r4, r5, r6, asr #5
# CHECK: add r4, r5, r6, ror #5
# CHECK: add r6, r7, r8, lsl r9
# CHECK: add r6, r7, r8, lsr r9
# CHECK: add r6, r7, r8, asr r9
# CHECK: add r6, r7, r8, ror r9
# CHECK: add r4, r5, r6, rrx

# CHECK: add r5, r5, #61440
# CHECK: add r4, r4, r5
# CHECK: add r4, r4, r5, lsl #5
# CHECK: add r4, r4, r5, lsr #5
# CHECK: add r4, r4, r5, lsr #5
# CHECK: add r4, r4, r5, asr #5
# CHECK: add r4, r4, r5, ror #5
# CHECK: add r6, r6, r7, lsl r9
# CHECK: add r6, r6, r7, lsr r9
# CHECK: add r6, r6, r7, asr r9
# CHECK: add r6, r6, r7, ror r9
# CHECK: add r4, r4, r5, rrx

0x0f 0x4a 0x85 0xe2
0x2a 0x71 0x88 0xe2
0x28 0x71 0x88 0xe2
0x06 0x40 0x85 0xe0
0x86 0x42 0x85 0xe0
0xa6 0x42 0x85 0xe0
0xa6 0x42 0x85 0xe0
0xc6 0x42 0x85 0xe0
0xe6 0x42 0x85 0xe0
0x18 0x69 0x87 0xe0
0x38 0x69 0x87 0xe0
0x58 0x69 0x87 0xe0
0x78 0x69 0x87 0xe0
0x66 0x40 0x85 0xe0


0x0f 0x5a 0x85 0xe2
0x05 0x40 0x84 0xe0
0x85 0x42 0x84 0xe0
0xa5 0x42 0x84 0xe0
0xa5 0x42 0x84 0xe0
0xc5 0x42 0x84 0xe0
0xe5 0x42 0x84 0xe0
0x17 0x69 0x86 0xe0
0x37 0x69 0x86 0xe0
0x57 0x69 0x86 0xe0
0x77 0x69 0x86 0xe0
0x65 0x40 0x84 0xe0

#------------------------------------------------------------------------------
# ADDS
#------------------------------------------------------------------------------
# CHECK: adds   r7, r8, #-2147483638
# CHECK: adds   r7, r8, #40, #2

0x2a 0x71 0x98 0xe2
0x28 0x71 0x98 0xe2

#------------------------------------------------------------------------------
# ADR
#------------------------------------------------------------------------------
# CHECK: add	r2, pc, #3
# CHECK: sub	r2, pc, #3
# CHECK: sub	r1, pc, #0
# CHECK: sub	r1, pc, #301989888
# CHECK: add	r1, pc, #301989888

0x03 0x20 0x8f 0xe2
0x03 0x20 0x4f 0xe2
0x00 0x10 0x4f 0xe2
0x12 0x14 0x4f 0xe2
0x12 0x14 0x8f 0xe2

#------------------------------------------------------------------------------
# AND
#------------------------------------------------------------------------------
# CHECK: and r10, r1, #15
# CHECK: and r7, r8, #-2147483638
# CHECK: and r7, r8, #40, #2
# CHECK: and r10, r1, r6
# CHECK: and r10, r1, r6, lsl #10
# CHECK: and r10, r1, r6, lsr #10
# CHECK: and r10, r1, r6, lsr #10
# CHECK: and r10, r1, r6, asr #10
# CHECK: and r10, r1, r6, ror #10
# CHECK: and r6, r7, r8, lsl r2
# CHECK: and r6, r7, r8, lsr r2
# CHECK: and r6, r7, r8, asr r2
# CHECK: and r6, r7, r8, ror r2
# CHECK: and r10, r1, r6, rrx

# CHECK: and r1, r1, #15
# CHECK: and r10, r10, r1
# CHECK: and r10, r10, r1, lsl #10
# CHECK: and r10, r10, r1, lsr #10
# CHECK: and r10, r10, r1, lsr #10
# CHECK: and r10, r10, r1, asr #10
# CHECK: and r10, r10, r1, ror #10
# CHECK: and r6, r6, r7, lsl r2
# CHECK: and r6, r6, r7, lsr r2
# CHECK: and r6, r6, r7, asr r2
# CHECK: and r6, r6, r7, ror r2
# CHECK: and r10, r10, r1, rrx

0x0f 0xa0 0x01 0xe2
0x2a 0x71 0x08 0xe2
0x28 0x71 0x08 0xe2
0x06 0xa0 0x01 0xe0
0x06 0xa5 0x01 0xe0
0x26 0xa5 0x01 0xe0
0x26 0xa5 0x01 0xe0
0x46 0xa5 0x01 0xe0
0x66 0xa5 0x01 0xe0
0x18 0x62 0x07 0xe0
0x38 0x62 0x07 0xe0
0x58 0x62 0x07 0xe0
0x78 0x62 0x07 0xe0
0x66 0xa0 0x01 0xe0

0x0f 0x10 0x01 0xe2
0x01 0xa0 0x0a 0xe0
0x01 0xa5 0x0a 0xe0
0x21 0xa5 0x0a 0xe0
0x21 0xa5 0x0a 0xe0
0x41 0xa5 0x0a 0xe0
0x61 0xa5 0x0a 0xe0
0x17 0x62 0x06 0xe0
0x37 0x62 0x06 0xe0
0x57 0x62 0x06 0xe0
0x77 0x62 0x06 0xe0
0x61 0xa0 0x0a 0xe0

#------------------------------------------------------------------------------
# FIXME: ASR
#------------------------------------------------------------------------------

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

0x9f 0x51 0xd3 0xe7
0x9f 0x51 0xd3 0x37


#------------------------------------------------------------------------------
# BFI
#------------------------------------------------------------------------------
# CHECK: bfi r5, r2, #3, #17
# CHECK: bfine r5, r2, #3, #17

0x92 0x51 0xd3 0xe7
0x92 0x51 0xd3 0x17


#------------------------------------------------------------------------------
# BIC
#------------------------------------------------------------------------------
# CHECK: bic r10, r1, #15
# CHECK: bic r7, r8, #-2147483638
# CHECK: bic r7, r8, #40, #2
# CHECK: bic r10, r1, r6
# CHECK: bic r10, r1, r6, lsl #10
# CHECK: bic r10, r1, r6, lsr #10
# CHECK: bic r10, r1, r6, lsr #10
# CHECK: bic r10, r1, r6, asr #10
# CHECK: bic r10, r1, r6, ror #10
# CHECK: bic r6, r7, r8, lsl r2
# CHECK: bic r6, r7, r8, lsr r2
# CHECK: bic r6, r7, r8, asr r2
# CHECK: bic r6, r7, r8, ror r2
# CHECK: bic r10, r1, r6, rrx

# CHECK: bic r1, r1, #15
# CHECK: bic r10, r10, r1
# CHECK: bic r10, r10, r1, lsl #10
# CHECK: bic r10, r10, r1, lsr #10
# CHECK: bic r10, r10, r1, lsr #10
# CHECK: bic r10, r10, r1, asr #10
# CHECK: bic r10, r10, r1, ror #10
# CHECK: bic r6, r6, r7, lsl r2
# CHECK: bic r6, r6, r7, lsr r2
# CHECK: bic r6, r6, r7, asr r2
# CHECK: bic r6, r6, r7, ror r2
# CHECK: bic r10, r10, r1, rrx

0x0f 0xa0 0xc1 0xe3
0x2a 0x71 0xc8 0xe3
0x28 0x71 0xc8 0xe3
0x06 0xa0 0xc1 0xe1
0x06 0xa5 0xc1 0xe1
0x26 0xa5 0xc1 0xe1
0x26 0xa5 0xc1 0xe1
0x46 0xa5 0xc1 0xe1
0x66 0xa5 0xc1 0xe1
0x18 0x62 0xc7 0xe1
0x38 0x62 0xc7 0xe1
0x58 0x62 0xc7 0xe1
0x78 0x62 0xc7 0xe1
0x66 0xa0 0xc1 0xe1


0x0f 0x10 0xc1 0xe3
0x01 0xa0 0xca 0xe1
0x01 0xa5 0xca 0xe1
0x21 0xa5 0xca 0xe1
0x21 0xa5 0xca 0xe1
0x41 0xa5 0xca 0xe1
0x61 0xa5 0xca 0xe1
0x17 0x62 0xc6 0xe1
0x37 0x62 0xc6 0xe1
0x57 0x62 0xc6 0xe1
0x77 0x62 0xc6 0xe1
0x61 0xa0 0xca 0xe1

#------------------------------------------------------------------------------
# BKPT
#------------------------------------------------------------------------------
# CHECK: bkpt #10
# CHECK: bkpt #65535

0x7a 0x00 0x20 0xe1
0x7f 0xff 0x2f 0xe1

#------------------------------------------------------------------------------
# BLX (register)
#------------------------------------------------------------------------------
# CHECK: blx r2
# CHECK: blxne r2

0x32 0xff 0x2f 0xe1
0x32 0xff 0x2f 0x11

#------------------------------------------------------------------------------
# BLX (immediate)
#------------------------------------------------------------------------------
# CHECK: blx	#32424576
# CHECK: blx	#16212288

0xa0 0xb0 0x7b 0xfa
0x50 0xd8 0x3d 0xfa

#------------------------------------------------------------------------------
# BX
#------------------------------------------------------------------------------

# CHECK: bx r2
# CHECK: bxne r2

0x12 0xff 0x2f 0xe1
0x12 0xff 0x2f 0x11

#------------------------------------------------------------------------------
# BXJ
#------------------------------------------------------------------------------

# CHECK: bxj r2
# CHECK: bxjne r2

0x22 0xff 0x2f 0xe1
0x22 0xff 0x2f 0x11


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

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


#------------------------------------------------------------------------------
# CLREX
#------------------------------------------------------------------------------
# CHECK: clrex

0x1f 0xf0 0x7f 0xf5


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

0x12 0x1f 0x6f 0xe1
0x12 0x1f 0x6f 0x01

#------------------------------------------------------------------------------
# CMN
#------------------------------------------------------------------------------
# CHECK: cmn r1, #15
# CHECK: cmn r7, #40, #2
# CHECK: cmn r7, #-2147483638
# CHECK: cmn r1, r6
# CHECK: cmn r1, r6, lsl #10
# CHECK: cmn r1, r6, lsr #10
# CHECK: cmn sp, r6, lsr #10
# CHECK: cmn r1, r6, asr #10
# CHECK: cmn r1, r6, ror #10
# CHECK: cmn r7, r8, lsl r2
# CHECK: cmn sp, r8, lsr r2
# CHECK: cmn r7, r8, asr r2
# CHECK: cmn r7, r8, ror r2
# CHECK: cmn r1, r6, rrx

0x0f 0x00 0x71 0xe3
0x28 0x01 0x77 0xe3
0x2a 0x01 0x77 0xe3
0x06 0x00 0x71 0xe1
0x06 0x05 0x71 0xe1
0x26 0x05 0x71 0xe1
0x26 0x05 0x7d 0xe1
0x46 0x05 0x71 0xe1
0x66 0x05 0x71 0xe1
0x18 0x02 0x77 0xe1
0x38 0x02 0x7d 0xe1
0x58 0x02 0x77 0xe1
0x78 0x02 0x77 0xe1
0x66 0x00 0x71 0xe1

#------------------------------------------------------------------------------
# CMP
#------------------------------------------------------------------------------
# CHECK: cmp r1, #15
# CHECK: cmp r7, #40, #2
# CHECK: cmp r7, #-2147483638
# CHECK: cmp r1, r6
# CHECK: cmp r1, r6, lsl #10
# CHECK: cmp r1, r6, lsr #10
# CHECK: cmp sp, r6, lsr #10
# CHECK: cmp r1, r6, asr #10
# CHECK: cmp r1, r6, ror #10
# CHECK: cmp r7, r8, lsl r2
# CHECK: cmp sp, r8, lsr r2
# CHECK: cmp r7, r8, asr r2
# CHECK: cmp r7, r8, ror r2
# CHECK: cmp r1, r6, rrx

0x0f 0x00 0x51 0xe3
0x28 0x01 0x57 0xe3
0x2a 0x01 0x57 0xe3
0x06 0x00 0x51 0xe1
0x06 0x05 0x51 0xe1
0x26 0x05 0x51 0xe1
0x26 0x05 0x5d 0xe1
0x46 0x05 0x51 0xe1
0x66 0x05 0x51 0xe1
0x18 0x02 0x57 0xe1
0x38 0x02 0x5d 0xe1
0x58 0x02 0x57 0xe1
0x78 0x02 0x57 0xe1
0x66 0x00 0x51 0xe1


#------------------------------------------------------------------------------
# CPS
#------------------------------------------------------------------------------
# CHECK: cpsie  aif
# CHECK: cps  #15
# CHECK: cpsid  if, #10
# CHECK: cpsid  af, #17
# CHECK: cpsie  f, #26

0xc0 0x01 0x08 0xf1
0x0f 0x00 0x02 0xf1
0xca 0x00 0x0e 0xf1
0x51 0x01 0x0e 0xf1
0x5a 0x00 0x0a 0xf1


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

0xf0 0xf0 0x20 0xe3
0xf5 0xf0 0x20 0xe3
0xff 0xf0 0x20 0xe3


#------------------------------------------------------------------------------
# DMB
#------------------------------------------------------------------------------

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

0x50 0xf0 0x7f 0xf5
0x51 0xf0 0x7f 0xf5
0x52 0xf0 0x7f 0xf5
0x53 0xf0 0x7f 0xf5
0x54 0xf0 0x7f 0xf5
0x55 0xf0 0x7f 0xf5
0x56 0xf0 0x7f 0xf5
0x57 0xf0 0x7f 0xf5
0x58 0xf0 0x7f 0xf5
0x59 0xf0 0x7f 0xf5
0x5a 0xf0 0x7f 0xf5
0x5b 0xf0 0x7f 0xf5
0x5c 0xf0 0x7f 0xf5
0x5d 0xf0 0x7f 0xf5
0x5e 0xf0 0x7f 0xf5
0x5f 0xf0 0x7f 0xf5

#------------------------------------------------------------------------------
# DSB
#------------------------------------------------------------------------------

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

0x40 0xf0 0x7f 0xf5
0x41 0xf0 0x7f 0xf5
0x42 0xf0 0x7f 0xf5
0x43 0xf0 0x7f 0xf5
0x44 0xf0 0x7f 0xf5
0x45 0xf0 0x7f 0xf5
0x46 0xf0 0x7f 0xf5
0x47 0xf0 0x7f 0xf5
0x48 0xf0 0x7f 0xf5
0x49 0xf0 0x7f 0xf5
0x4a 0xf0 0x7f 0xf5
0x4b 0xf0 0x7f 0xf5
0x4c 0xf0 0x7f 0xf5
0x4d 0xf0 0x7f 0xf5
0x4e 0xf0 0x7f 0xf5
0x4f 0xf0 0x7f 0xf5

#------------------------------------------------------------------------------
# EOR
#------------------------------------------------------------------------------
# CHECK: eor r4, r5, #61440
# CHECK: eor r7, r8, #-2147483638
# CHECK: eor r7, r8, #40, #2
# CHECK: eor r4, r5, r6
# CHECK: eor r4, r5, r6, lsl #5
# CHECK: eor r4, r5, r6, lsr #5
# CHECK: eor r4, r5, r6, lsr #5
# CHECK: eor r4, r5, r6, asr #5
# CHECK: eor r4, r5, r6, ror #5
# CHECK: eor r6, r7, r8, lsl r9
# CHECK: eor r6, r7, r8, lsr r9
# CHECK: eor r6, r7, r8, asr r9
# CHECK: eor r6, r7, r8, ror r9
# CHECK: eor r4, r5, r6, rrx

# CHECK: eor r5, r5, #61440
# CHECK: eor r4, r4, r5
# CHECK: eor r4, r4, r5, lsl #5
# CHECK: eor r4, r4, r5, lsr #5
# CHECK: eor r4, r4, r5, lsr #5
# CHECK: eor r4, r4, r5, asr #5
# CHECK: eor r4, r4, r5, ror #5
# CHECK: eor r6, r6, r7, lsl r9
# CHECK: eor r6, r6, r7, lsr r9
# CHECK: eor r6, r6, r7, asr r9
# CHECK: eor r6, r6, r7, ror r9
# CHECK: eor r4, r4, r5, rrx

0x0f 0x4a 0x25 0xe2
0x2a 0x71 0x28 0xe2
0x28 0x71 0x28 0xe2
0x06 0x40 0x25 0xe0
0x86 0x42 0x25 0xe0
0xa6 0x42 0x25 0xe0
0xa6 0x42 0x25 0xe0
0xc6 0x42 0x25 0xe0
0xe6 0x42 0x25 0xe0
0x18 0x69 0x27 0xe0
0x38 0x69 0x27 0xe0
0x58 0x69 0x27 0xe0
0x78 0x69 0x27 0xe0
0x66 0x40 0x25 0xe0


0x0f 0x5a 0x25 0xe2
0x05 0x40 0x24 0xe0
0x85 0x42 0x24 0xe0
0xa5 0x42 0x24 0xe0
0xa5 0x42 0x24 0xe0
0xc5 0x42 0x24 0xe0
0xe5 0x42 0x24 0xe0
0x17 0x69 0x26 0xe0
0x37 0x69 0x26 0xe0
0x57 0x69 0x26 0xe0
0x77 0x69 0x26 0xe0
0x65 0x40 0x24 0xe0


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

0x6f 0xf0 0x7f 0xf5
0x6a 0xf0 0x7f 0xf5



#------------------------------------------------------------------------------
# LDM*
#------------------------------------------------------------------------------
# CHECK: ldm       r2, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmib     r2, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmda     r2, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmdb     r2, {r1, r3, r4, r5, r6, sp}


# CHECK: ldm       r2!, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmib     r2!, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmda     r2!, {r1, r3, r4, r5, r6, sp}
# CHECK: ldmdb     r2!, {r1, r3, r4, r5, r6, sp}

0x7a 0x20 0x92 0xe8
0x7a 0x20 0x92 0xe9
0x7a 0x20 0x12 0xe8
0x7a 0x20 0x12 0xe9

0x7a 0x20 0xb2 0xe8
0x7a 0x20 0xb2 0xe9
0x7a 0x20 0x32 0xe8
0x7a 0x20 0x32 0xe9


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

0x9f 0x3f 0xd4 0xe1
0x9f 0x2f 0xf5 0xe1
0x9f 0x1f 0x97 0xe1
0x9f 0x6f 0xb8 0xe1


#------------------------------------------------------------------------------
# FIXME: LSL
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# FIXME: LSR
#------------------------------------------------------------------------------

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

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

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

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


#------------------------------------------------------------------------------
# MLA
#------------------------------------------------------------------------------
# CHECK: mla  r1, r2, r3, r4
# CHECK: mlas r1, r2, r3, r4
# CHECK: mlane  r1, r2, r3, r4
# CHECK: mlasne r1, r2, r3, r4

0x92 0x43 0x21 0xe0
0x92 0x43 0x31 0xe0
0x92 0x43 0x21 0x10
0x92 0x43 0x31 0x10

#------------------------------------------------------------------------------
# MLS
#------------------------------------------------------------------------------
# CHECK: mls  r2, r5, r6, r3
# CHECK: mlsne  r2, r5, r6, r3

0x95 0x36 0x62 0xe0
0x95 0x36 0x62 0x10

#------------------------------------------------------------------------------
# MOV (immediate)
#------------------------------------------------------------------------------
# CHECK: mov r3, #7
# CHECK: mov r4, #4080
# CHECK: mov r5, #16711680
# CHECK: mov sp, #35
# CHECK: mov r9, #240, #30
# CHECK: mov r7, #-2147483638
# CHECK: mov pc, #2147483658
# CHECK: movw r6, #65535
# CHECK: movw r9, #65535
# CHECK: movw sp, #1193
# CHECK: movs r3, #7
# CHECK: movs r11, #99
# CHECK: movs r11, #240, #30
# CHECK: moveq r4, #4080
# CHECK: movseq r5, #16711680

0x07 0x30 0xa0 0xe3
0xff 0x4e 0xa0 0xe3
0xff 0x58 0xa0 0xe3
0x23 0xd0 0xa0 0xe3
0xf0 0x9f 0xa0 0xe3
0x2a 0x71 0xa0 0xe3
0x2a 0xf1 0xa0 0xe3
0xff 0x6f 0x0f 0xe3
0xff 0x9f 0x0f 0xe3
0xa9 0xd4 0x00 0xe3
0x07 0x30 0xb0 0xe3
0x63 0xb0 0xb0 0xe3
0xf0 0xbf 0xb0 0xe3
0xff 0x4e 0xa0 0x03
0xff 0x58 0xb0 0x03

#------------------------------------------------------------------------------
# MOV (register)
#------------------------------------------------------------------------------
# CHECK: mov r2, r3
# CHECK: movs r2, r3
# CHECK: moveq r2, r3
# CHECK: movseq r2, r3

0x03 0x20 0xa0 0xe1
0x03 0x20 0xb0 0xe1
0x03 0x20 0xa0 0x01
0x03 0x20 0xb0 0x01

#------------------------------------------------------------------------------
# MOVT
#------------------------------------------------------------------------------
# CHECK: movt r3, #7
# CHECK: movt r6, #65535
# CHECK: movt sp, #3397 
# CHECK: movteq r4, #4080

0x07 0x30 0x40 0xe3
0xff 0x6f 0x4f 0xe3
0x45 0xdd 0x40 0xe3
0xf0 0x4f 0x40 0x03


#------------------------------------------------------------------------------
# MRC/MRC2
#------------------------------------------------------------------------------
# CHECK: mrc  p14, #0, r1, c1, c2, #4
# CHECK: mrc  p15, #7, apsr_nzcv, c15, c6, #6
# CHECK: mrc2  p14, #0, r1, c1, c2, #4
# CHECK: mrc2  p9, #7, apsr_nzcv, c15, c0, #1

0x92 0x1e 0x11 0xee
0xd6 0xff 0xff 0xee
0x92 0x1e 0x11 0xfe
0x30 0xf9 0xff 0xfe

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

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


#------------------------------------------------------------------------------
# MRS
#------------------------------------------------------------------------------
# CHECK: mrs  r8, apsr
# CHECK: mrs  r8, spsr
0x00 0x80 0x0f 0xe1
0x00 0x80 0x4f 0xe1



#------------------------------------------------------------------------------
# MSR
#------------------------------------------------------------------------------

# CHECK: msr  CPSR_fc, #5
# CHECK: msr  APSR_g, #5
# CHECK: msr  APSR_nzcvq, #5
# CHECK: msr  APSR_nzcvq, #5
# CHECK: msr  APSR_nzcvqg, #5
# CHECK: msr  CPSR_fc, #5
# CHECK: msr  CPSR_c, #5
# CHECK: msr  CPSR_x, #5
# CHECK: msr  CPSR_fc, #5
# CHECK: msr  CPSR_fc, #5
# CHECK: msr  CPSR_fsx, #5
# CHECK: msr  SPSR_fc, #5
# CHECK: msr  SPSR_fsxc, #5
# CHECK: msr  CPSR_fsxc, #5
# CHECK: msr  APSR_nzcvq, #2147483658
# CHECK: msr  SPSR_fsxc, #40, #2

0x05 0xf0 0x29 0xe3
0x05 0xf0 0x24 0xe3
0x05 0xf0 0x28 0xe3
0x05 0xf0 0x28 0xe3
0x05 0xf0 0x2c 0xe3
0x05 0xf0 0x29 0xe3
0x05 0xf0 0x21 0xe3
0x05 0xf0 0x22 0xe3
0x05 0xf0 0x29 0xe3
0x05 0xf0 0x29 0xe3
0x05 0xf0 0x2e 0xe3
0x05 0xf0 0x69 0xe3
0x05 0xf0 0x6f 0xe3
0x05 0xf0 0x2f 0xe3
0x2a 0xf1 0x28 0xe3
0x28 0xf1 0x6f 0xe3

# CHECK: msr  CPSR_fc, r0
# CHECK: msr  APSR_g, r0
# CHECK: msr  APSR_nzcvq, r0
# CHECK: msr  APSR_nzcvq, r0
# CHECK: msr  APSR_nzcvqg, r0
# CHECK: msr  CPSR_fc, r0
# CHECK: msr  CPSR_c, r0
# CHECK: msr  CPSR_x, r0
# CHECK: msr  CPSR_fc, r0
# CHECK: msr  CPSR_fc, r0
# CHECK: msr  CPSR_fsx, r0
# CHECK: msr  SPSR_fc, r0
# CHECK: msr  SPSR_fsxc, r0
# CHECK: msr  CPSR_fsxc, r0

0x00 0xf0 0x29 0xe1
0x00 0xf0 0x24 0xe1
0x00 0xf0 0x28 0xe1
0x00 0xf0 0x28 0xe1
0x00 0xf0 0x2c 0xe1
0x00 0xf0 0x29 0xe1
0x00 0xf0 0x21 0xe1
0x00 0xf0 0x22 0xe1
0x00 0xf0 0x29 0xe1
0x00 0xf0 0x29 0xe1
0x00 0xf0 0x2e 0xe1
0x00 0xf0 0x69 0xe1
0x00 0xf0 0x6f 0xe1
0x00 0xf0 0x2f 0xe1

#------------------------------------------------------------------------------
# MUL
#------------------------------------------------------------------------------

# CHECK: mul r5, r6, r7
# CHECK: muls r5, r6, r7
# CHECK: mulgt r5, r6, r7
# CHECK: mulsle r5, r6, r7

0x96 0x07 0x05 0xe0
0x96 0x07 0x15 0xe0
0x96 0x07 0x05 0xc0
0x96 0x07 0x15 0xd0


#------------------------------------------------------------------------------
# MVN (immediate)
#------------------------------------------------------------------------------
# CHECK: mvn r3, #7
# CHECK: mvn r4, #4080
# CHECK: mvn r5, #16711680
# CHECK: mvn r7, #40, #2
# CHECK: mvn r7, #-2147483638
# CHECK: mvns r3, #7
# CHECK: mvns r11, #240, #30
# CHECK: mvns r11, #-2147483638
# CHECK: mvneq r4, #4080
# CHECK: mvnseq r5, #16711680

0x07 0x30 0xe0 0xe3
0xff 0x4e 0xe0 0xe3
0xff 0x58 0xe0 0xe3
0x28 0x71 0xe0 0xe3
0x2a 0x71 0xe0 0xe3
0x07 0x30 0xf0 0xe3
0xf0 0xbf 0xf0 0xe3
0x2a 0xb1 0xf0 0xe3
0xff 0x4e 0xe0 0x03
0xff 0x58 0xf0 0x03


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

0x03 0x20 0xe0 0xe1
0x03 0x20 0xf0 0xe1
0x86 0x59 0xe0 0xe1
0xa6 0x54 0xe0 0xe1
0x46 0x52 0xe0 0xe1
0x66 0x53 0xe0 0xe1
0x66 0x50 0xe0 0xe1
0x03 0x20 0xe0 0x01
0x03 0x25 0xf0 0x01


#------------------------------------------------------------------------------
# MVN (shifted register)
#------------------------------------------------------------------------------
# CHECK: mvn r5, r6, lsl r7
# CHECK: mvns r5, r6, lsr r7
# CHECK: mvngt r5, r6, asr r7
# CHECK: mvnslt r5, r6, ror r7

0x16 0x57 0xe0 0xe1
0x36 0x57 0xf0 0xe1
0x56 0x57 0xe0 0xc1
0x76 0x57 0xf0 0xb1

#------------------------------------------------------------------------------
# NOP
#------------------------------------------------------------------------------
# CHECK: nop
# CHECK: nopgt

0x00 0xf0 0x20 0xe3
0x00 0xf0 0x20 0xc3


#------------------------------------------------------------------------------
# ORR
#------------------------------------------------------------------------------
# CHECK: orr r4, r5, #61440
# CHECK: orr r7, r8, #-2147483638
# CHECK: orr r7, r8, #40, #2
# CHECK: orr r4, r5, r6
# CHECK: orr r4, r5, r6, lsl #5
# CHECK: orr r4, r5, r6, lsr #5
# CHECK: orr r4, r5, r6, lsr #5
# CHECK: orr r4, r5, r6, asr #5
# CHECK: orr r4, r5, r6, ror #5
# CHECK: orr r6, r7, r8, lsl r9
# CHECK: orr r6, r7, r8, lsr r9
# CHECK: orr r6, r7, r8, asr r9
# CHECK: orr r6, r7, r8, ror r9
# CHECK: orr r4, r5, r6, rrx

# CHECK: orr r5, r5, #61440
# CHECK: orr r4, r4, r5
# CHECK: orr r4, r4, r5, lsl #5
# CHECK: orr r4, r4, r5, lsr #5
# CHECK: orr r4, r4, r5, lsr #5
# CHECK: orr r4, r4, r5, asr #5
# CHECK: orr r4, r4, r5, ror #5
# CHECK: orr r6, r6, r7, lsl r9
# CHECK: orr r6, r6, r7, lsr r9
# CHECK: orr r6, r6, r7, asr r9
# CHECK: orr r6, r6, r7, ror r9
# CHECK: orr r4, r4, r5, rrx

0x0f 0x4a 0x85 0xe3
0x2a 0x71 0x88 0xe3
0x28 0x71 0x88 0xe3
0x06 0x40 0x85 0xe1
0x86 0x42 0x85 0xe1
0xa6 0x42 0x85 0xe1
0xa6 0x42 0x85 0xe1
0xc6 0x42 0x85 0xe1
0xe6 0x42 0x85 0xe1
0x18 0x69 0x87 0xe1
0x38 0x69 0x87 0xe1
0x58 0x69 0x87 0xe1
0x78 0x69 0x87 0xe1
0x66 0x40 0x85 0xe1

0x0f 0x5a 0x85 0xe3
0x05 0x40 0x84 0xe1
0x85 0x42 0x84 0xe1
0xa5 0x42 0x84 0xe1
0xa5 0x42 0x84 0xe1
0xc5 0x42 0x84 0xe1
0xe5 0x42 0x84 0xe1
0x17 0x69 0x86 0xe1
0x37 0x69 0x86 0xe1
0x57 0x69 0x86 0xe1
0x77 0x69 0x86 0xe1
0x65 0x40 0x84 0xe1

# CHECK: orrseq r4, r5, #61440
# CHECK: orrne r4, r5, r6
# CHECK: orrseq r4, r5, r6, lsl #5
# CHECK: orrlo r6, r7, r8, ror r9
# CHECK: orrshi r4, r5, r6, rrx
# CHECK: orrhs r5, r5, #61440
# CHECK: orrseq r4, r4, r5
# CHECK: orrne r6, r6, r7, asr r9
# CHECK: orrslt r6, r6, r7, ror r9
# CHECK: orrsgt r4, r4, r5, rrx

0x0f 0x4a 0x95 0x03
0x06 0x40 0x85 0x11
0x86 0x42 0x95 0x01
0x78 0x69 0x87 0x31
0x66 0x40 0x95 0x81
0x0f 0x5a 0x85 0x23
0x05 0x40 0x94 0x01
0x57 0x69 0x86 0x11
0x77 0x69 0x96 0xb1
0x65 0x40 0x94 0xc1

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

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

0x13 0x20 0x82 0xe6
0x93 0x2f 0x82 0xe6
0x13 0x20 0x82 0xe6
0x93 0x27 0x82 0xe6

0x13 0x20 0x82 0xe6
0xd3 0x2f 0x82 0xe6
0xd3 0x27 0x82 0xe6

#------------------------------------------------------------------------------
# FIXME: PLD
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# FIXME: PLI
#------------------------------------------------------------------------------


#------------------------------------------------------------------------------
# POP
#------------------------------------------------------------------------------
# CHECK: ldr r7, [sp], #4
# CHECK: pop {r7, r8, r9, r10}

0x04 0x70 0x9d 0xe4
0x80 0x07 0xbd 0xe8


#------------------------------------------------------------------------------
# PUSH
#------------------------------------------------------------------------------
# CHECK: str r7, [sp, #-4]!
# CHECK: push {r7, r8, r9, r10}

0x04 0x70 0x2d 0xe5
0x80 0x07 0x2d 0xe9


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

0x52 0x10 0x03 0xe1
0x52 0x10 0x03 0x11
0x13 0x1f 0x22 0xe6
0x13 0x1f 0x22 0xc6
0x93 0x1f 0x22 0xe6
0x93 0x1f 0x22 0xd6


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

0x57 0x60 0x48 0xe1
0x57 0x60 0x48 0x81
0x57 0x60 0x68 0xe1
0x57 0x60 0x68 0x81


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

0x50 0x9f 0x2c 0xe6
0x50 0x9f 0x2c 0x06


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

0x52 0x10 0x23 0xe1
0x52 0x10 0x23 0x11
0x73 0x1f 0x22 0xe6
0x73 0x1f 0x22 0xc6
0xf3 0x1f 0x22 0xe6
0xf3 0x1f 0x22 0xd6


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

0x32 0x1f 0xff 0xe6
0x32 0x1f 0xff 0x16


#------------------------------------------------------------------------------
# REV/REV16/REVSH
#------------------------------------------------------------------------------
# CHECK: rev r1, r9
# CHECK: revne r1, r5
# CHECK: rev16 r8, r3
# CHECK: rev16ne r12, r4
# CHECK: revsh r4, r9
# CHECK: revshne r9, r1

0x39 0x1f 0xbf 0xe6
0x35 0x1f 0xbf 0x16
0xb3 0x8f 0xbf 0xe6
0xb4 0xcf 0xbf 0x16
0xb9 0x4f 0xff 0xe6
0xb1 0x9f 0xff 0x16


#------------------------------------------------------------------------------
# RFE
#------------------------------------------------------------------------------
# CHECK: rfeda r2
# CHECK: rfedb r3
# CHECK: rfeia r5
# CHECK: rfeib r6

# CHECK: rfeda r4!
# CHECK: rfedb r7!
# CHECK: rfeia r9!
# CHECK: rfeib r8!

# CHECK: rfeda r2
# CHECK: rfedb r3
# CHECK: rfeia r5
# CHECK: rfeib r6

# CHECK: rfeda r4!
# CHECK: rfedb r7!
# CHECK: rfeia r9!
# CHECK: rfeib r8!

# CHECK: rfeia r1
# CHECK: rfeia r1!

0x00 0x0a 0x12 0xf8
0x00 0x0a 0x13 0xf9
0x00 0x0a 0x95 0xf8
0x00 0x0a 0x96 0xf9

0x00 0x0a 0x34 0xf8
0x00 0x0a 0x37 0xf9
0x00 0x0a 0xb9 0xf8
0x00 0x0a 0xb8 0xf9

0x00 0x0a 0x12 0xf8
0x00 0x0a 0x13 0xf9
0x00 0x0a 0x95 0xf8
0x00 0x0a 0x96 0xf9

0x00 0x0a 0x34 0xf8
0x00 0x0a 0x37 0xf9
0x00 0x0a 0xb9 0xf8
0x00 0x0a 0xb8 0xf9

0x00 0x0a 0x91 0xf8
0x00 0x0a 0xb1 0xf8


#------------------------------------------------------------------------------
# RSB
#------------------------------------------------------------------------------
# CHECK: rsb r4, r5, #61440
# CHECK: rsb r7, r8, #-2147483638
# CHECK: rsb r7, r8, #40, #2
# CHECK: rsb r4, r5, r6
# CHECK: rsb r4, r5, r6, lsl #5
# CHECK: rsblo r4, r5, r6, lsr #5
# CHECK: rsb r4, r5, r6, lsr #5
# CHECK: rsb r4, r5, r6, asr #5
# CHECK: rsb r4, r5, r6, ror #5
# CHECK: rsb r6, r7, r8, lsl r9
# CHECK: rsb r6, r7, r8, lsr r9
# CHECK: rsb r6, r7, r8, asr r9
# CHECK: rsble r6, r7, r8, ror r9
# CHECK: rsb r4, r5, r6, rrx

# CHECK: rsb r5, r5, #61440
# CHECK: rsb r4, r4, r5
# CHECK: rsb r4, r4, r5, lsl #5
# CHECK: rsb r4, r4, r5, lsr #5
# CHECK: rsbne r4, r4, r5, lsr #5
# CHECK: rsb r4, r4, r5, asr #5
# CHECK: rsb r4, r4, r5, ror #5
# CHECK: rsbgt r6, r6, r7, lsl r9
# CHECK: rsb r6, r6, r7, lsr r9
# CHECK: rsb r6, r6, r7, asr r9
# CHECK: rsb r6, r6, r7, ror r9
# CHECK: rsb r4, r4, r5, rrx

0x0f 0x4a 0x65 0xe2
0x2a 0x71 0x68 0xe2
0x28 0x71 0x68 0xe2
0x06 0x40 0x65 0xe0
0x86 0x42 0x65 0xe0
0xa6 0x42 0x65 0x30
0xa6 0x42 0x65 0xe0
0xc6 0x42 0x65 0xe0
0xe6 0x42 0x65 0xe0
0x18 0x69 0x67 0xe0
0x38 0x69 0x67 0xe0
0x58 0x69 0x67 0xe0
0x78 0x69 0x67 0xd0
0x66 0x40 0x65 0xe0

0x0f 0x5a 0x65 0xe2
0x05 0x40 0x64 0xe0
0x85 0x42 0x64 0xe0
0xa5 0x42 0x64 0xe0
0xa5 0x42 0x64 0x10
0xc5 0x42 0x64 0xe0
0xe5 0x42 0x64 0xe0
0x17 0x69 0x66 0xc0
0x37 0x69 0x66 0xe0
0x57 0x69 0x66 0xe0
0x77 0x69 0x66 0xe0
0x65 0x40 0x64 0xe0

#------------------------------------------------------------------------------
# RSBS
#------------------------------------------------------------------------------
# CHECK: rsbs   r7, r8, #-2147483638
# CHECK: rsbs   r7, r8, #40, #2

0x2a 0x71 0x78 0xe2
0x28 0x71 0x78 0xe2

#------------------------------------------------------------------------------
# RSC
#------------------------------------------------------------------------------
# CHECK: rsc r4, r5, #61440
# CHECK: rsc r7, r8, #-2147483638
# CHECK: rsc r7, r8, #40, #2
# CHECK: rsc r4, r5, r6
# CHECK: rsc r4, r5, r6, lsl #5
# CHECK: rsclo r4, r5, r6, lsr #5
# CHECK: rsc r4, r5, r6, lsr #5
# CHECK: rsc r4, r5, r6, asr #5
# CHECK: rsc r4, r5, r6, ror #5
# CHECK: rsc r6, r7, r8, lsl r9
# CHECK: rsc r6, r7, r8, lsr r9
# CHECK: rsc r6, r7, r8, asr r9
# CHECK: rscle r6, r7, r8, ror r9

# CHECK: rsc r5, r5, #61440
# CHECK: rsc r4, r4, r5
# CHECK: rsc r4, r4, r5, lsl #5
# CHECK: rsc r4, r4, r5, lsr #5
# CHECK: rscne r4, r4, r5, lsr #5
# CHECK: rsc r4, r4, r5, asr #5
# CHECK: rsc r4, r4, r5, ror #5
# CHECK: rscgt r6, r6, r7, lsl r9
# CHECK: rsc r6, r6, r7, lsr r9
# CHECK: rsc r6, r6, r7, asr r9
# CHECK: rsc r6, r6, r7, ror r9

0x0f 0x4a 0xe5 0xe2
0x2a 0x71 0xe8 0xe2
0x28 0x71 0xe8 0xe2
0x06 0x40 0xe5 0xe0
0x86 0x42 0xe5 0xe0
0xa6 0x42 0xe5 0x30
0xa6 0x42 0xe5 0xe0
0xc6 0x42 0xe5 0xe0
0xe6 0x42 0xe5 0xe0
0x18 0x69 0xe7 0xe0
0x38 0x69 0xe7 0xe0
0x58 0x69 0xe7 0xe0
0x78 0x69 0xe7 0xd0

0x0f 0x5a 0xe5 0xe2
0x05 0x40 0xe4 0xe0
0x85 0x42 0xe4 0xe0
0xa5 0x42 0xe4 0xe0
0xa5 0x42 0xe4 0x10
0xc5 0x42 0xe4 0xe0
0xe5 0x42 0xe4 0xe0
0x17 0x69 0xe6 0xc0
0x37 0x69 0xe6 0xe0
0x57 0x69 0xe6 0xe0
0x77 0x69 0xe6 0xe0

#------------------------------------------------------------------------------
# RRX/RRXS
#------------------------------------------------------------------------------
# CHECK: rrx	r0, r1
# CHECK: rrx	sp, pc
# CHECK: rrx	pc, lr
# CHECK: rrx	lr, sp

0x61 0x00 0xa0 0xe1
0x6f 0xd0 0xa0 0xe1
0x6e 0xf0 0xa0 0xe1
0x6d 0xe0 0xa0 0xe1

# CHECK: rrxs	r0, r1
# CHECK: rrxs	sp, pc
# CHECK: rrxs	pc, lr
# CHECK: rrxs	lr, sp

0x61 0x00 0xb0 0xe1
0x6f 0xd0 0xb0 0xe1
0x6e 0xf0 0xb0 0xe1
0x6d 0xe0 0xb0 0xe1

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

0x13 0x1f 0x12 0xe6
0x13 0x1f 0x12 0xc6
0x93 0x1f 0x12 0xe6
0x93 0x1f 0x12 0xd6


#------------------------------------------------------------------------------
# SASX
#------------------------------------------------------------------------------
# CHECK: sasx r9, r12, r0
# CHECK: sasxeq r9, r12, r0

0x30 0x9f 0x1c 0xe6
0x30 0x9f 0x1c 0x06


#------------------------------------------------------------------------------
# SBC
#------------------------------------------------------------------------------
# CHECK: sbc r4, r5, #61440
# CHECK: sbc r7, r8, #-2147483638
# CHECK: sbc r7, r8, #40, #2
# CHECK: sbc r4, r5, r6
# CHECK: sbc r4, r5, r6, lsl #5
# CHECK: sbc r4, r5, r6, lsr #5
# CHECK: sbc r4, r5, r6, lsr #5
# CHECK: sbc r4, r5, r6, asr #5
# CHECK: sbc r4, r5, r6, ror #5
# CHECK: sbc r6, r7, r8, lsl r9
# CHECK: sbc r6, r7, r8, lsr r9
# CHECK: sbc r6, r7, r8, asr r9
# CHECK: sbc r6, r7, r8, ror r9

# CHECK: sbc r5, r5, #61440
# CHECK: sbc r4, r4, r5
# CHECK: sbc r4, r4, r5, lsl #5
# CHECK: sbc r4, r4, r5, lsr #5
# CHECK: sbc r4, r4, r5, lsr #5
# CHECK: sbc r4, r4, r5, asr #5
# CHECK: sbc r4, r4, r5, ror #5
# CHECK: sbc r6, r6, r7, lsl r9
# CHECK: sbc r6, r6, r7, lsr r9
# CHECK: sbc r6, r6, r7, asr r9
# CHECK: sbc r6, r6, r7, ror r9

0x0f 0x4a 0xc5 0xe2
0x2a 0x71 0xc8 0xe2
0x28 0x71 0xc8 0xe2
0x06 0x40 0xc5 0xe0
0x86 0x42 0xc5 0xe0
0xa6 0x42 0xc5 0xe0
0xa6 0x42 0xc5 0xe0
0xc6 0x42 0xc5 0xe0
0xe6 0x42 0xc5 0xe0
0x18 0x69 0xc7 0xe0
0x38 0x69 0xc7 0xe0
0x58 0x69 0xc7 0xe0
0x78 0x69 0xc7 0xe0

0x0f 0x5a 0xc5 0xe2
0x05 0x40 0xc4 0xe0
0x85 0x42 0xc4 0xe0
0xa5 0x42 0xc4 0xe0
0xa5 0x42 0xc4 0xe0
0xc5 0x42 0xc4 0xe0
0xe5 0x42 0xc4 0xe0
0x17 0x69 0xc6 0xe0
0x37 0x69 0xc6 0xe0
0x57 0x69 0xc6 0xe0
0x77 0x69 0xc6 0xe0


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

0x55 0x48 0xa0 0xe7
0x55 0x48 0xaf 0xc7


#------------------------------------------------------------------------------
# SEL
#------------------------------------------------------------------------------
# CHECK: sel r9, r2, r1
# CHECK: selne r9, r2, r1

0xb1 0x9f 0x82 0xe6
0xb1 0x9f 0x82 0x16


#------------------------------------------------------------------------------
# SETEND
#------------------------------------------------------------------------------
# CHECK: setend be
# CHECK: setend le

0x00 0x02 0x01 0xf1
0x00 0x00 0x01 0xf1

#------------------------------------------------------------------------------
# SEV
#------------------------------------------------------------------------------
# CHECK: sev
# CHECK: seveq

0x04 0xf0 0x20 0xe3
0x04 0xf0 0x20 0x03

#------------------------------------------------------------------------------
# SHADD16/SHADD8
#------------------------------------------------------------------------------
# CHECK: shadd16 r4, r8, r2
# CHECK: shadd16gt r4, r8, r2
# CHECK: shadd8 r4, r8, r2
# CHECK: shadd8gt r4, r8, r2

0x12 0x4f 0x38 0xe6
0x12 0x4f 0x38 0xc6
0x92 0x4f 0x38 0xe6
0x92 0x4f 0x38 0xc6


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

0x32 0x4f 0x38 0xe6
0x32 0x4f 0x38 0xc6


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

0x72 0x4f 0x38 0xe6
0x72 0x4f 0x38 0xc6
0xf2 0x4f 0x38 0xe6
0xf2 0x4f 0x38 0xc6

#------------------------------------------------------------------------------
# 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: smlabbge r3, r1, r9, r0
# CHECK: smlabtle r5, r6, r4, r1
# CHECK: smlatbne r4, r2, r3, r2
# CHECK: smlatteq r8, r3, r8, r4

0x81 0x09 0x03 0xe1
0xc6 0x14 0x05 0xe1
0xa2 0x23 0x04 0xe1
0xe3 0x48 0x08 0xe1
0x81 0x09 0x03 0xa1
0xc6 0x14 0x05 0xd1
0xa2 0x23 0x04 0x11
0xe3 0x48 0x08 0x01

#------------------------------------------------------------------------------
# SMLAD/SMLADX
#------------------------------------------------------------------------------
# CHECK: smlad r2, r3, r5, r8
# CHECK: smladx r2, r3, r5, r8
# CHECK: smladeq r2, r3, r5, r8
# CHECK: smladxhi r2, r3, r5, r8

0x13 0x85 0x02 0xe7
0x33 0x85 0x02 0xe7
0x13 0x85 0x02 0x07
0x33 0x85 0x02 0x87


#------------------------------------------------------------------------------
# SMLAL
#------------------------------------------------------------------------------
# CHECK: smlal r2, r3, r5, r8
# CHECK: smlals r2, r3, r5, r8
# CHECK: smlaleq r2, r3, r5, r8
# CHECK: smlalshi r2, r3, r5, r8

0x95 0x28 0xe3 0xe0
0x95 0x28 0xf3 0xe0
0x95 0x28 0xe3 0x00
0x95 0x28 0xf3 0x80


#------------------------------------------------------------------------------
# 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: smlalbbge r3, r1, r9, r0
# CHECK: smlalbtle r5, r6, r4, r1
# CHECK: smlaltbne r4, r2, r3, r2
# CHECK: smlaltteq r8, r3, r8, r4

0x89 0x30 0x41 0xe1
0xc4 0x51 0x46 0xe1
0xa3 0x42 0x42 0xe1
0xe8 0x84 0x43 0xe1
0x89 0x30 0x41 0xa1
0xc4 0x51 0x46 0xd1
0xa3 0x42 0x42 0x11
0xe8 0x84 0x43 0x01


#------------------------------------------------------------------------------
# SMLALD/SMLALDX
#------------------------------------------------------------------------------
# CHECK: smlald r2, r3, r5, r8
# CHECK: smlaldx r2, r3, r5, r8
# CHECK: smlaldeq r2, r3, r5, r8
# CHECK: smlaldxhi r2, r3, r5, r8

0x15 0x28 0x43 0xe7
0x35 0x28 0x43 0xe7
0x15 0x28 0x43 0x07
0x35 0x28 0x43 0x87


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

0x83 0x8a 0x22 0xe1
0xc3 0x95 0x28 0xe1
0x87 0x85 0x22 0x01
0xc3 0x80 0x21 0x81


#------------------------------------------------------------------------------
# SMLSD/SMLSDX
#------------------------------------------------------------------------------
# CHECK: smlsd r2, r3, r5, r8
# CHECK: smlsdx r2, r3, r5, r8
# CHECK: smlsdeq r2, r3, r5, r8
# CHECK: smlsdxhi r2, r3, r5, r8

0x53 0x85 0x02 0xe7
0x73 0x85 0x02 0xe7
0x53 0x85 0x02 0x07
0x73 0x85 0x02 0x87


#------------------------------------------------------------------------------
# SMLSLD/SMLSLDX
#------------------------------------------------------------------------------
# CHECK: smlsld r2, r9, r5, r1
# CHECK: smlsldx r4, r11, r2, r8
# CHECK: smlsldeq r8, r2, r5, r6
# CHECK: smlsldxhi r1, r0, r3, r8

0x55 0x21 0x49 0xe7
0x72 0x48 0x4b 0xe7
0x55 0x86 0x42 0x07
0x73 0x18 0x40 0x87


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

0x12 0x43 0x51 0xe7
0x33 0x12 0x54 0xe7
0x12 0x43 0x51 0x37
0x33 0x12 0x54 0x27


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

0xd2 0x43 0x51 0xe7
0xf3 0x12 0x54 0xe7
0xd2 0x43 0x51 0x37
0xf3 0x12 0x54 0x27


#------------------------------------------------------------------------------
# SMMUL/SMMULR
#------------------------------------------------------------------------------
# CHECK: smmul r2, r3, r4
# CHECK: smmulr r3, r2, r1
# CHECK: smmullo r2, r3, r4
# CHECK: smmulrhs r3, r2, r1

0x13 0xf4 0x52 0xe7
0x32 0xf1 0x53 0xe7
0x13 0xf4 0x52 0x37
0x32 0xf1 0x53 0x27


#------------------------------------------------------------------------------
# SMUAD/SMUADX
#------------------------------------------------------------------------------
# CHECK: smuad r2, r3, r4
# CHECK: smuadx r3, r2, r1
# CHECK: smuadlt r2, r3, r4
# CHECK: smuadxge r3, r2, r1

0x13 0xf4 0x02 0xe7
0x32 0xf1 0x03 0xe7
0x13 0xf4 0x02 0xb7
0x32 0xf1 0x03 0xa7


#------------------------------------------------------------------------------
# SMULBB/SMLALBT/SMLALTB/SMLALTT
#------------------------------------------------------------------------------
# CHECK: smulbb r3, r9, r0
# CHECK: smulbt r5, r4, r1
# CHECK: smultb r4, r2, r2
# CHECK: smultt r8, r3, r4
# CHECK: smulbbge r1, r9, r0
# CHECK: smulbtle r5, r6, r4
# CHECK: smultbne r2, r3, r2
# CHECK: smultteq r8, r3, r4

0x89 0x00 0x63 0xe1
0xc4 0x01 0x65 0xe1
0xa2 0x02 0x64 0xe1
0xe3 0x04 0x68 0xe1
0x89 0x00 0x61 0xa1
0xc6 0x04 0x65 0xd1
0xa3 0x02 0x62 0x11
0xe3 0x04 0x68 0x01


#------------------------------------------------------------------------------
# SMULL
#------------------------------------------------------------------------------
# CHECK: smull r3, r9, r0, r1
# CHECK: smulls r3, r9, r0, r2
# CHECK: smulleq r8, r3, r4, r5
# CHECK: smullseq r8, r3, r4, r3

0x90 0x31 0xc9 0xe0
0x90 0x32 0xd9 0xe0
0x94 0x85 0xc3 0x00
0x94 0x83 0xd3 0x00


#------------------------------------------------------------------------------
# SMULWB/SMULWT
#------------------------------------------------------------------------------
# CHECK: smulwb r3, r9, r0
# CHECK: smulwt r3, r9, r2

0xa9 0x00 0x23 0xe1
0xe9 0x02 0x23 0xe1


#------------------------------------------------------------------------------
# SMUSD/SMUSDX
#------------------------------------------------------------------------------
# CHECK: smusd r3, r0, r1
# CHECK: smusdx r3, r9, r2
# CHECK: smusdeq r8, r3, r2
# CHECK: smusdxne r7, r4, r3

0x50 0xf1 0x03 0xe7
0x79 0xf2 0x03 0xe7
0x53 0xf2 0x08 0x07
0x74 0xf3 0x07 0x17


#------------------------------------------------------------------------------
# SRS
#------------------------------------------------------------------------------
# CHECK: srsda sp, #5
# CHECK: srsdb sp, #1
# CHECK: srsia sp, #0
# CHECK: srsib sp, #15

# CHECK: srsda sp!, #31
# CHECK: srsdb sp!, #19
# CHECK: srsia sp!, #2
# CHECK: srsib sp!, #14

# CHECK: srsda sp, #11
# CHECK: srsdb sp, #10
# CHECK: srsia sp, #9
# CHECK: srsib sp, #5

# CHECK: srsda sp!, #5
# CHECK: srsdb sp!, #5
# CHECK: srsia sp!, #5
# CHECK: srsib sp!, #5

# CHECK: srsia sp, #5
# CHECK: srsia sp!, #5

0x05 0x05 0x4d 0xf8
0x01 0x05 0x4d 0xf9
0x00 0x05 0xcd 0xf8
0x0f 0x05 0xcd 0xf9

0x1f 0x05 0x6d 0xf8
0x13 0x05 0x6d 0xf9
0x02 0x05 0xed 0xf8
0x0e 0x05 0xed 0xf9

0x0b 0x05 0x4d 0xf8
0x0a 0x05 0x4d 0xf9
0x09 0x05 0xcd 0xf8
0x05 0x05 0xcd 0xf9

0x05 0x05 0x6d 0xf8
0x05 0x05 0x6d 0xf9
0x05 0x05 0xed 0xf8
0x05 0x05 0xed 0xf9

0x05 0x05 0xcd 0xf8
0x05 0x05 0xed 0xf8


#------------------------------------------------------------------------------
# SSAT
#------------------------------------------------------------------------------
# CHECK: ssat	r8, #1, r10
# CHECK: ssat	r8, #1, r10, lsl #31
# CHECK: ssat	r8, #1, r10, asr #32
# CHECK: ssat	r8, #1, r10, asr #1

0x1a 0x80 0xa0 0xe6
0x9a 0x8f 0xa0 0xe6
0x5a 0x80 0xa0 0xe6
0xda 0x80 0xa0 0xe6


#------------------------------------------------------------------------------
# SSAT16
#------------------------------------------------------------------------------
# CHECK: ssat16	r2, #1, r7
# CHECK: ssat16	r3, #16, r5

0x37 0x2f 0xa0 0xe6
0x35 0x3f 0xaf 0xe6


#------------------------------------------------------------------------------
# SSAX
#------------------------------------------------------------------------------
# CHECK: ssax r2, r3, r4
# CHECK: ssaxlt r2, r3, r4

0x54 0x2f 0x13 0xe6
0x54 0x2f 0x13 0xb6

#------------------------------------------------------------------------------
# SSUB16/SSUB8
#------------------------------------------------------------------------------
# CHECK: ssub16 r1, r0, r6
# CHECK: ssub16ne r5, r3, r2
# CHECK: ssub8 r9, r2, r4
# CHECK: ssub8eq r5, r1, r2

0x76 0x1f 0x10 0xe6
0x72 0x5f 0x13 0x16
0xf4 0x9f 0x12 0xe6
0xf2 0x5f 0x11 0x06


#------------------------------------------------------------------------------
# STM*
#------------------------------------------------------------------------------
# CHECK: stm r2, {r1, r3, r4, r5, r6, sp}
# CHECK: stm r3, {r1, r3, r4, r5, r6, lr}
# CHECK: stmib     r4, {r1, r3, r4, r5, r6, sp}
# CHECK: stmda     r5, {r1, r3, r4, r5, r6, sp}
# CHECK: stmdb     r6, {r1, r3, r4, r5, r6, r8}
# CHECK: stmdb     sp, {r1, r3, r4, r5, r6, sp}


# CHECK: stm       r8!, {r1, r3, r4, r5, r6, sp}
# CHECK: stmib     r9!, {r1, r3, r4, r5, r6, sp}
# CHECK: stmda     sp!, {r1, r3, r4, r5, r6}
# CHECK: stmdb     r0!, {r1, r5, r7, sp}

0x7a 0x20 0x82 0xe8
0x7a 0x40 0x83 0xe8
0x7a 0x20 0x84 0xe9
0x7a 0x20 0x05 0xe8
0x7a 0x01 0x06 0xe9
0x7a 0x20 0x0d 0xe9

0x7a 0x20 0xa8 0xe8
0x7a 0x20 0xa9 0xe9
0x7a 0x00 0x2d 0xe8
0xa2 0x20 0x20 0xe9


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

0x93 0x1f 0xc4 0xe1
0x92 0x4f 0xe5 0xe1
0x91 0x2f 0x87 0xe1
0x92 0x6f 0xa8 0xe1
0x90 0xdf 0xa0 0xe1

#------------------------------------------------------------------------------
# SUB
#------------------------------------------------------------------------------
# CHECK: sub r4, r5, #61440
# CHECK: sub r7, r8, #-2147483638
# CHECK: sub r7, r8, #40, #2
# CHECK: sub r4, r5, r6
# CHECK: sub r4, r5, r6, lsl #5
# CHECK: sub r4, r5, r6, lsr #5
# CHECK: sub r4, r5, r6, lsr #5
# CHECK: sub r4, r5, r6, asr #5
# CHECK: sub r4, r5, r6, ror #5
# CHECK: sub r6, r7, r8, lsl r9
# CHECK: sub r6, r7, r8, lsr r9
# CHECK: sub r6, r7, r8, asr r9
# CHECK: sub r6, r7, r8, ror r9

# CHECK: sub r5, r5, #61440
# CHECK: sub r4, r4, r5
# CHECK: sub r4, r4, r5, lsl #5
# CHECK: sub r4, r4, r5, lsr #5
# CHECK: sub r4, r4, r5, lsr #5
# CHECK: sub r4, r4, r5, asr #5
# CHECK: sub r4, r4, r5, ror #5
# CHECK: sub r6, r6, r7, lsl r9
# CHECK: sub r6, r6, r7, lsr r9
# CHECK: sub r6, r6, r7, asr r9
# CHECK: sub r6, r6, r7, ror r9

0x0f 0x4a 0x45 0xe2
0x2a 0x71 0x48 0xe2
0x28 0x71 0x48 0xe2
0x06 0x40 0x45 0xe0
0x86 0x42 0x45 0xe0
0xa6 0x42 0x45 0xe0
0xa6 0x42 0x45 0xe0
0xc6 0x42 0x45 0xe0
0xe6 0x42 0x45 0xe0
0x18 0x69 0x47 0xe0
0x38 0x69 0x47 0xe0
0x58 0x69 0x47 0xe0
0x78 0x69 0x47 0xe0


0x0f 0x5a 0x45 0xe2
0x05 0x40 0x44 0xe0
0x85 0x42 0x44 0xe0
0xa5 0x42 0x44 0xe0
0xa5 0x42 0x44 0xe0
0xc5 0x42 0x44 0xe0
0xe5 0x42 0x44 0xe0
0x17 0x69 0x46 0xe0
0x37 0x69 0x46 0xe0
0x57 0x69 0x46 0xe0
0x77 0x69 0x46 0xe0

#------------------------------------------------------------------------------
# SUBS
#------------------------------------------------------------------------------
# CHECK: subs   r7, r8, #-2147483638
# CHECK: subs   r7, r8, #40, #2

0x2a 0x71 0x58 0xe2
0x28 0x71 0x58 0xe2

#------------------------------------------------------------------------------
# SVC
#------------------------------------------------------------------------------
# CHECK: svc #16
# CHECK: svc #0
# CHECK: svc #16777215

0x10 0x00 0x00 0xef
0x00 0x00 0x00 0xef
0xff 0xff 0xff 0xef


#------------------------------------------------------------------------------
# SWP/SWPB
#------------------------------------------------------------------------------
# CHECK: swp r1, r2, [r3
# CHECK: swp r4, r4, [r6
# CHECK: swpb r5, r1, [r9

0x92 0x10 0x03 0xe1
0x94 0x40 0x06 0xe1
0x91 0x50 0x49 0xe1


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

0x74 0x20 0xa3 0xe6
0x76 0x40 0xa5 0xe6
0x79 0x64 0xa2 0xb6
0x74 0x58 0xa1 0xe6
0x73 0x7c 0xa8 0xe6


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

0x74 0x00 0x81 0xa6
0x77 0x60 0x82 0xe6
0x78 0x34 0x85 0xe6
0x71 0x38 0x82 0xe6
0x73 0x1c 0x82 0x06

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

0x79 0x10 0xb3 0xe6
0x76 0x60 0xb1 0x86
0x73 0x34 0xb8 0xe6
0x74 0x28 0xb2 0x36
0x73 0x9c 0xb3 0xe6

#------------------------------------------------------------------------------
# SXTB
#------------------------------------------------------------------------------
# CHECK: sxtbge r2, r4
# CHECK: sxtb r5, r6
# CHECK: sxtb r6, r9, ror #8
# CHECK: sxtblo r5, r1, ror #16
# CHECK: sxtb r8, r3, ror #24

0x74 0x20 0xaf 0xa6
0x76 0x50 0xaf 0xe6
0x79 0x64 0xaf 0xe6
0x71 0x58 0xaf 0x36
0x73 0x8c 0xaf 0xe6


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

0x74 0x10 0x8f 0xe6
0x77 0x60 0x8f 0xe6
0x75 0x34 0x8f 0x26
0x71 0x38 0x8f 0xe6
0x73 0x2c 0x8f 0xa6


#------------------------------------------------------------------------------
# SXTH
#------------------------------------------------------------------------------
# CHECK: sxthne r3, r9
# CHECK: sxth r1, r6
# CHECK: sxth r3, r8, ror #8
# CHECK: sxthle r2, r2, ror #16
# CHECK: sxth r9, r3, ror #24

0x79 0x30 0xbf 0x16
0x76 0x10 0xbf 0xe6
0x78 0x34 0xbf 0xe6
0x72 0x28 0xbf 0xd6
0x73 0x9c 0xbf 0xe6


#------------------------------------------------------------------------------
# FIXME: TBB/TBH
#------------------------------------------------------------------------------


#------------------------------------------------------------------------------
# TEQ
#------------------------------------------------------------------------------
# CHECK: teq r5, #61440
# CHECK: teq r7, #-2147483638
# CHECK: teq r7, #40, #2
# CHECK: teq r4, r5
# CHECK: teq r4, r5, lsl #5
# CHECK: teq r4, r5, lsr #5
# CHECK: teq r4, r5, lsr #5
# CHECK: teq r4, r5, asr #5
# CHECK: teq r4, r5, ror #5
# CHECK: teq r6, r7, lsl r9
# CHECK: teq r6, r7, lsr r9
# CHECK: teq r6, r7, asr r9
# CHECK: teq r6, r7, ror r9

0x0f 0x0a 0x35 0xe3
0x2a 0x01 0x37 0xe3
0x28 0x01 0x37 0xe3
0x05 0x00 0x34 0xe1
0x85 0x02 0x34 0xe1
0xa5 0x02 0x34 0xe1
0xa5 0x02 0x34 0xe1
0xc5 0x02 0x34 0xe1
0xe5 0x02 0x34 0xe1
0x17 0x09 0x36 0xe1
0x37 0x09 0x36 0xe1
0x57 0x09 0x36 0xe1
0x77 0x09 0x36 0xe1


#------------------------------------------------------------------------------
# TST
#------------------------------------------------------------------------------
# CHECK: tst r5, #61440
# CHECK: tst r7, #-2147483638
# CHECK: tst r7, #40, #2
# CHECK: tst r4, r5
# CHECK: tst r4, r5, lsl #5
# CHECK: tst r4, r5, lsr #5
# CHECK: tst r4, r5, lsr #5
# CHECK: tst r4, r5, asr #5
# CHECK: tst r4, r5, ror #5
# CHECK: tst r6, r7, lsl r9
# CHECK: tst r6, r7, lsr r9
# CHECK: tst r6, r7, asr r9
# CHECK: tst r6, r7, ror r9

0x0f 0x0a 0x15 0xe3
0x2a 0x01 0x17 0xe3
0x28 0x01 0x17 0xe3
0x05 0x00 0x14 0xe1
0x85 0x02 0x14 0xe1
0xa5 0x02 0x14 0xe1
0xa5 0x02 0x14 0xe1
0xc5 0x02 0x14 0xe1
0xe5 0x02 0x14 0xe1
0x17 0x09 0x16 0xe1
0x37 0x09 0x16 0xe1
0x57 0x09 0x16 0xe1
0x77 0x09 0x16 0xe1


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

0x13 0x1f 0x52 0xe6
0x13 0x1f 0x52 0xc6
0x93 0x1f 0x52 0xe6
0x93 0x1f 0x52 0xd6


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

0x30 0x9f 0x5c 0xe6
0x30 0x9f 0x5c 0x06


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

0x55 0x48 0xe0 0xe7
0x55 0x48 0xef 0xc7


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

0x12 0x4f 0x78 0xe6
0x12 0x4f 0x78 0xc6
0x92 0x4f 0x78 0xe6
0x92 0x4f 0x78 0xc6


#------------------------------------------------------------------------------
# UHASX
#------------------------------------------------------------------------------
# CHECK: uhasx r4, r8, r2
# CHECK: uhasxgt r4, r8, r2

0x32 0x4f 0x78 0xe6
0x32 0x4f 0x78 0xc6


#------------------------------------------------------------------------------
# UHSUB16/UHSUB8
#------------------------------------------------------------------------------
# CHECK: uhsub16 r4, r8, r2
# CHECK: uhsub16gt r4, r8, r2
# CHECK: uhsub8 r4, r8, r2
# CHECK: uhsub8gt r4, r8, r2

0x72 0x4f 0x78 0xe6
0x72 0x4f 0x78 0xc6
0xf2 0x4f 0x78 0xe6
0xf2 0x4f 0x78 0xc6


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

0x95 0x36 0x44 0xe0
0x95 0x36 0x44 0xb0


#------------------------------------------------------------------------------
# UMLAL
#------------------------------------------------------------------------------
# CHECK: umlal r2, r4, r6, r8
# CHECK: umlalgt r6, r1, r2, r6
# CHECK: umlals r2, r9, r2, r3
# CHECK: umlalseq r3, r5, r1, r2

0x96 0x28 0xa4 0xe0
0x92 0x66 0xa1 0xc0
0x92 0x23 0xb9 0xe0
0x91 0x32 0xb5 0x00


#------------------------------------------------------------------------------
# UMULL
#------------------------------------------------------------------------------
# CHECK: umull r2, r4, r6, r8
# CHECK: umullgt r6, r1, r2, r6
# CHECK: umulls r2, r9, r2, r3
# CHECK: umullseq r3, r5, r1, r2

0x96 0x28 0x84 0xe0
0x92 0x66 0x81 0xc0
0x92 0x23 0x99 0xe0
0x91 0x32 0x95 0x00


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


0x13 0x1f 0x62 0xe6
0x19 0x4f 0x67 0xc6
0x98 0x3f 0x64 0xe6
0x92 0x8f 0x61 0xd6


#------------------------------------------------------------------------------
# UQASX
#------------------------------------------------------------------------------
# CHECK: uqasx r2, r4, r1
# CHECK: uqasxhi r5, r2, r9

0x31 0x2f 0x64 0xe6
0x39 0x5f 0x62 0x86


#------------------------------------------------------------------------------
# UQSAX
#------------------------------------------------------------------------------
# CHECK: uqsax r1, r3, r7
# CHECK: uqsax r3, r6, r2

0x57 0x1f 0x63 0xe6
0x52 0x3f 0x66 0xe6


#------------------------------------------------------------------------------
# UQSUB16/UQSUB8
#------------------------------------------------------------------------------
# CHECK: uqsub16 r1, r5, r3
# CHECK: uqsub16gt r3, r2, r5
# CHECK: uqsub8 r2, r1, r4
# CHECK: uqsub8le r4, r6, r9

0x73 0x1f 0x65 0xe6
0x75 0x3f 0x62 0xc6
0xf4 0x2f 0x61 0xe6
0xf9 0x4f 0x66 0xd6


#------------------------------------------------------------------------------
# USADA8/USAD8
#------------------------------------------------------------------------------
# CHECK: usad8 r2, r1, r4
# CHECK: usad8le r4, r6, r9
# CHECK: usada8 r1, r5, r3, r7
# CHECK: usada8gt r3, r2, r5, r1

0x11 0xf4 0x82 0xe7
0x16 0xf9 0x84 0xd7
0x15 0x73 0x81 0xe7
0x12 0x15 0x83 0xc7


#------------------------------------------------------------------------------
# USAT
#------------------------------------------------------------------------------

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

0x1a 0x80 0xe1 0xe6
0x1a 0x80 0xe4 0xe6
0x9a 0x8f 0xe5 0xe6
0x5a 0x80 0xff 0xe6
0xda 0x80 0xf0 0xe6

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

0x37 0x2f 0xe2 0xe6
0x35 0x3f 0xef 0xe6


#------------------------------------------------------------------------------
# USAX
#------------------------------------------------------------------------------
# CHECK: usax r2, r3, r4
# CHECK: usaxne r2, r3, r4

0x54 0x2f 0x53 0xe6
0x54 0x2f 0x53 0x16

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

0x77 0x4f 0x52 0xe6
0x73 0x1f 0x51 0x86
0xf5 0x1f 0x58 0xe6
0xf3 0x9f 0x52 0xd6


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

0x74 0x20 0xe3 0xe6
0x76 0x40 0xe5 0xe6
0x79 0x64 0xe2 0xb6
0x74 0x58 0xe1 0xe6
0x73 0x7c 0xe8 0xe6


#------------------------------------------------------------------------------
# UXTAB16
#------------------------------------------------------------------------------
# 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: uxtab16eq r1, r2, r3, ror #24

0x74 0x00 0xc1 0xa6
0x77 0x60 0xc2 0xe6
0x78 0x34 0xc5 0xe6
0x71 0x38 0xc2 0xe6
0x73 0x1c 0xc2 0x06

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

0x79 0x10 0xf3 0xe6
0x76 0x60 0xf1 0x86
0x73 0x34 0xf8 0xe6
0x74 0x28 0xf2 0x36
0x73 0x9c 0xf3 0xe6

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

0x74 0x20 0xef 0xa6
0x76 0x50 0xef 0xe6
0x79 0x64 0xef 0xe6
0x71 0x58 0xef 0x36
0x73 0x8c 0xef 0xe6


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

0x74 0x10 0xcf 0xe6
0x77 0x60 0xcf 0xe6
0x75 0x34 0xcf 0x26
0x71 0x38 0xcf 0xe6
0x73 0x2c 0xcf 0xa6


#------------------------------------------------------------------------------
# UXTH
#------------------------------------------------------------------------------
# CHECK: uxthne r3, r9
# CHECK: uxth r1, r6
# CHECK: uxth r3, r8, ror #8
# CHECK: uxthle r2, r2, ror #16
# CHECK: uxth r9, r3, ror #24

0x79 0x30 0xff 0x16
0x76 0x10 0xff 0xe6
0x78 0x34 0xff 0xe6
0x72 0x28 0xff 0xd6
0x73 0x9c 0xff 0xe6

#------------------------------------------------------------------------------
# WFE/WFI/YIELD
#------------------------------------------------------------------------------
# CHECK: wfe
# CHECK: wfehi
# CHECK: wfi
# CHECK: wfilt
# CHECK: yield
# CHECK: yieldne
# CHECK: hint #5

0x02 0xf0 0x20 0xe3
0x02 0xf0 0x20 0x83
0x03 0xf0 0x20 0xe3
0x03 0xf0 0x20 0xb3
0x01 0xf0 0x20 0xe3
0x01 0xf0 0x20 0x13
0x05 0xf0 0x20 0xe3