Commit de70798
authored
Rollup merge of rust-lang#147302 - esp-rs:xtensa-asm, r=Amanieu
asm! support for the Xtensa architecture
This implements the asm! support for Xtensa. We've been using this code for a few years in [our fork](https://github.com/esp-rs/rust) and it's been working well. I finally found some time to clean it up a bit and start the upstreaming process. This should be one of the final PRs for Xtensa support on the Rust side (minus bug fixes of course). After this, we're mostly just waiting on the LLVM upstreaming which is going well. This PR doesn't cover all possible asm options for Xtensa, but the base ISA plus a few extras that are used in Espressif chips.
r? Amanieu12 files changed
Lines changed: 665 additions & 2 deletions
File tree
- compiler
- rustc_codegen_gcc/src
- rustc_codegen_llvm/src
- rustc_feature/src
- rustc_span/src
- rustc_target/src
- asm
- src/doc/unstable-book/src/language-features
- tests
- assembly-llvm/asm
- ui
- check-cfg
- feature-gates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
754 | 759 | | |
755 | 760 | | |
756 | 761 | | |
| |||
872 | 877 | | |
873 | 878 | | |
874 | 879 | | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
875 | 885 | | |
876 | 886 | | |
877 | 887 | | |
| |||
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| 1083 | + | |
1073 | 1084 | | |
1074 | 1085 | | |
1075 | 1086 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
743 | 749 | | |
744 | 750 | | |
745 | 751 | | |
| |||
845 | 851 | | |
846 | 852 | | |
847 | 853 | | |
| 854 | + | |
848 | 855 | | |
849 | 856 | | |
850 | 857 | | |
| |||
939 | 946 | | |
940 | 947 | | |
941 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
942 | 954 | | |
943 | 955 | | |
944 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
| 779 | + | |
778 | 780 | | |
779 | 781 | | |
780 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
| 546 | + | |
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
| |||
706 | 708 | | |
707 | 709 | | |
708 | 710 | | |
| 711 | + | |
709 | 712 | | |
710 | 713 | | |
711 | 714 | | |
| |||
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
| 887 | + | |
884 | 888 | | |
885 | 889 | | |
886 | 890 | | |
| |||
907 | 911 | | |
908 | 912 | | |
909 | 913 | | |
| 914 | + | |
910 | 915 | | |
911 | 916 | | |
912 | 917 | | |
| |||
990 | 995 | | |
991 | 996 | | |
992 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
993 | 1001 | | |
994 | 1002 | | |
995 | 1003 | | |
| |||
1051 | 1059 | | |
1052 | 1060 | | |
1053 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
1054 | 1064 | | |
1055 | 1065 | | |
1056 | 1066 | | |
| |||
1111 | 1121 | | |
1112 | 1122 | | |
1113 | 1123 | | |
| 1124 | + | |
1114 | 1125 | | |
1115 | 1126 | | |
1116 | 1127 | | |
| |||
1206 | 1217 | | |
1207 | 1218 | | |
1208 | 1219 | | |
| 1220 | + | |
1209 | 1221 | | |
1210 | 1222 | | |
1211 | 1223 | | |
| |||
1318 | 1330 | | |
1319 | 1331 | | |
1320 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
1321 | 1335 | | |
1322 | 1336 | | |
1323 | 1337 | | |
| |||
1566 | 1580 | | |
1567 | 1581 | | |
1568 | 1582 | | |
| 1583 | + | |
| 1584 | + | |
1569 | 1585 | | |
1570 | 1586 | | |
1571 | 1587 | | |
| |||
1822 | 1838 | | |
1823 | 1839 | | |
1824 | 1840 | | |
| 1841 | + | |
1825 | 1842 | | |
| 1843 | + | |
1826 | 1844 | | |
1827 | 1845 | | |
1828 | 1846 | | |
| |||
2052 | 2070 | | |
2053 | 2071 | | |
2054 | 2072 | | |
| 2073 | + | |
2055 | 2074 | | |
2056 | 2075 | | |
2057 | 2076 | | |
| 2077 | + | |
2058 | 2078 | | |
2059 | 2079 | | |
2060 | 2080 | | |
| |||
2278 | 2298 | | |
2279 | 2299 | | |
2280 | 2300 | | |
| 2301 | + | |
2281 | 2302 | | |
2282 | 2303 | | |
2283 | 2304 | | |
| |||
2303 | 2324 | | |
2304 | 2325 | | |
2305 | 2326 | | |
| 2327 | + | |
2306 | 2328 | | |
2307 | 2329 | | |
2308 | 2330 | | |
| 2331 | + | |
2309 | 2332 | | |
2310 | 2333 | | |
2311 | 2334 | | |
| |||
0 commit comments