rust/compiler/rustc_target/src
Matthias Krüger 3108dfaced
Rollup merge of #126849 - workingjubilee:correctly-classify-arm-low-dregs, r=Amanieu
Fix 32-bit Arm reg classes by hierarchically sorting them

We were rejecting legal `asm!` because we were asking for the "greatest" feature that includes a register class, instead of the "least" feature that includes a register class. This was only revealed on certain 32-bit Arm targets because not all have the same register limitations.

This is a somewhat hacky solution, but other solutions would require potentially rearchitecting how the internals of parsing or rejecting register classes work for all targets.

Fixes #126797

r​? ``@Amanieu``
2024-06-24 06:27:16 +02:00
..
abi Auto merge of #125141 - SergioGasquez:feat/no_std-xtensa, r=davidtwco 2024-06-12 13:43:31 +00:00
asm compiler: Fix arm32 asm issues by hierarchically sorting reg classes 2024-06-22 21:39:58 -07:00
spec compiler: Add FramePointer::ratchet 2024-06-23 00:36:33 -07:00
json.rs Add metadata to targets 2024-03-10 20:46:08 +01:00
lib.rs Improve naming and path operations in crate loader 2024-06-06 21:53:29 +02:00
target_features.rs Add the target-features 2024-06-19 11:19:23 +05:30
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00