-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 873a0fc
Stabilize 28 RISC-V target features (
This commit stabilizes RISC-V target features with following constraints:
* Describes a ratified extension.
* Implemented on Rust 1.88.0 or before.
Waiting for three+ version cycles seems sufficient.
* Does not disrupt current rustc's target feature + ABI handling.
It excludes "E" and all floating point-arithmetic extensions.
"Zfinx" family does not involve floating point registers but
not stabilizing for now to avoid possible confusion between
the "F" extension family.
* Not vector-related (floating point and integer).
While integer vector subsets should not cause any ABI issues
(as they don't use ABI-dependent floating point registers),
we need to discuss before stabilizing them.
* Supported by the lowest LLVM version supported by rustc.
It excludes the "Zacas" extension, newly supported in LLVM 20
(while the minimum LLVM version supported by rustc is 19).
List of target features to be stabilized:
1. "b"
2. "za64rs" (no-RT)
3. "za128rs" (no-RT)
4. "zaamo"
5. "zabha"
6. "zalrsc"
7. "zama16b" (no-RT)
8. "zawrs"
9. "zca"
10. "zcb"
11. "zcmop"
12. "zic64b" (no-RT)
13. "zicbom"
14. "zicbop" (no-RT)
15. "zicboz"
16. "ziccamoa" (no-RT)
17. "ziccif" (no-RT)
18. "zicclsm" (no-RT)
19. "ziccrse" (no-RT)
20. "zicntr"
21. "zicond"
22. "zicsr"
23. "zifencei"
24. "zihintntl"
25. "zihintpause"
26. "zihpm"
27. "zimop"
28. "ztso"
Of which, 19 of them (28 minus 9 "no-RT" target features) support
runtime detection through `std::arch::is_riscv_feature_detected!()`.riscv_ratified_v2
)1 parent cd60c60 commit 873a0fc
File tree
3 files changed
+49
-51
lines changed- compiler
- rustc_codegen_ssa/src/back
- rustc_target/src
- library/std_detect/src/detect/arch
3 files changed
+49
-51
lines changedLines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 | - | ||
334 | - | ||
333 | + | ||
335 | 334 |
| |
336 | 335 |
| |
337 | 336 |
| |
338 | 337 |
| |
339 | - | ||
340 | - | ||
338 | + | ||
341 | 339 |
| |
342 | 340 |
| |
343 | 341 |
| |
|
Lines changed: 28 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
592 | - | ||
592 | + | ||
593 | 593 |
| |
594 | 594 |
| |
595 | 595 |
| |
| |||
647 | 647 |
| |
648 | 648 |
| |
649 | 649 |
| |
650 | - | ||
651 | - | ||
652 | - | ||
653 | - | ||
650 | + | ||
651 | + | ||
652 | + | ||
653 | + | ||
654 | 654 |
| |
655 | - | ||
656 | - | ||
657 | - | ||
655 | + | ||
656 | + | ||
657 | + | ||
658 | 658 |
| |
659 | 659 |
| |
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
664 | 664 |
| |
665 | - | ||
666 | - | ||
667 | - | ||
665 | + | ||
666 | + | ||
667 | + | ||
668 | 668 |
| |
669 | 669 |
| |
670 | 670 |
| |
| |||
673 | 673 |
| |
674 | 674 |
| |
675 | 675 |
| |
676 | - | ||
677 | - | ||
678 | - | ||
679 | - | ||
680 | - | ||
681 | - | ||
682 | - | ||
683 | - | ||
684 | - | ||
685 | - | ||
686 | - | ||
687 | - | ||
688 | - | ||
689 | - | ||
690 | - | ||
691 | - | ||
676 | + | ||
677 | + | ||
678 | + | ||
679 | + | ||
680 | + | ||
681 | + | ||
682 | + | ||
683 | + | ||
684 | + | ||
685 | + | ||
686 | + | ||
687 | + | ||
688 | + | ||
689 | + | ||
690 | + | ||
691 | + | ||
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
| |||
699 | 699 |
| |
700 | 700 |
| |
701 | 701 |
| |
702 | - | ||
702 | + | ||
703 | 703 |
| |
704 | 704 |
| |
705 | 705 |
| |
|
Lines changed: 19 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 | - | ||
197 | + | ||
198 | 198 |
| |
199 | - | ||
199 | + | ||
200 | 200 |
| |
201 | - | ||
201 | + | ||
202 | 202 |
| |
203 | - | ||
203 | + | ||
204 | 204 |
| |
205 | 205 |
| |
206 | - | ||
206 | + | ||
207 | 207 |
| |
208 | - | ||
208 | + | ||
209 | 209 |
| |
210 | - | ||
210 | + | ||
211 | 211 |
| |
212 | - | ||
212 | + | ||
213 | 213 |
| |
214 | - | ||
214 | + | ||
215 | 215 |
| |
216 | - | ||
216 | + | ||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
224 | - | ||
224 | + | ||
225 | 225 |
| |
226 | - | ||
226 | + | ||
227 | 227 |
| |
228 | - | ||
228 | + | ||
229 | 229 |
| |
230 | - | ||
230 | + | ||
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
237 | - | ||
237 | + | ||
238 | 238 |
| |
239 | 239 |
| |
240 | 240 |
| |
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 | - | ||
267 | + | ||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 | - | ||
275 | + | ||
276 | 276 |
| |
277 | - | ||
277 | + | ||
278 | 278 |
| |
279 | 279 |
| |
280 | - | ||
280 | + | ||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
|
0 commit comments