Skip to content

ARM: Only allow using d16-d31 with asm! when supported by the target - #94339

Merged
bors merged 1 commit into
rust-lang:masterfrom
Amanieu:arm-d32
Mar 4, 2022
Merged

ARM: Only allow using d16-d31 with asm! when supported by the target#94339
bors merged 1 commit into
rust-lang:masterfrom
Amanieu:arm-d32

Conversation

@Amanieu

Copy link
Copy Markdown
Member

Support can be determined by checking for the "d32" LLVM feature.

r? @nagisa

Support can be determined by checking for the "d32" LLVM feature.
@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Feb 24, 2022
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 24, 2022
// #[target_feature].
("thumb-mode", Some(sym::arm_target_feature)),
("thumb2", Some(sym::arm_target_feature)),
("d32", Some(sym::arm_target_feature)),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, given that these three features seem to be fated to remain unstable, maybe a different feature gate would be warranted for these?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 32-bit ARM features are bit of a mess and will need to be reworked anyways before stabilization can be considered.

@nagisanagisa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with or without feature gate rename. We can consider different feature gate later when its time to stabilize 32-bit arm features, but in that case maybe we should have a test that ensures d32 is feature-gated with a comment inside that this should never be ungated?

@Amanieu

Copy link
Copy Markdown
MemberAuthor

@bors r=nagisa

@bors

bors commented Mar 1, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 7cee1b4 has been approved by nagisa

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 1, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 1, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? `@nagisa`
@Dylan-DPCDylan-DPC mentioned this pull request Mar 1, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 2, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? ``@nagisa``
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 2, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? ```@nagisa```
This was referenced Mar 2, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 2, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? ````@nagisa````
@Dylan-DPCDylan-DPC mentioned this pull request Mar 2, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 3, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? `````@nagisa`````
@Dylan-DPCDylan-DPC mentioned this pull request Mar 3, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 3, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? `````````@nagisa`````````
@Dylan-DPCDylan-DPC mentioned this pull request Mar 3, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 4, 2022
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
r? `````````````@nagisa`````````````
@Dylan-DPCDylan-DPC mentioned this pull request Mar 4, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Mar 4, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 4, 2022
Rollup of 10 pull requests
Successful merges:
- rust-lang#88805 (Clarification of default socket flags)
- rust-lang#93418 (rustdoc & doc: no `shortcut` for `rel="icon"`)
- rust-lang#93913 (Remove the everybody loops pass)
- rust-lang#93965 (Make regular stdio lock() return 'static handles)
- rust-lang#94339 (ARM: Only allow using d16-d31 with asm! when supported by the target)
- rust-lang#94404 (Make Ord and PartialOrd opt-out in `newtype_index`)
- rust-lang#94466 (bootstrap: correct reading of flags for llvm)
- rust-lang#94572 (Use `HandleOrNull` and `HandleOrInvalid` in the Windows FFI bindings.)
- rust-lang#94575 (CTFE SwitchInt: update comment)
- rust-lang#94582 (Fix a bug in `x.py fmt` that prevents some files being formatted.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 79c71d1 into rust-lang:masterMar 4, 2022
@rustbotrustbot added this to the 1.61.0 milestone Mar 4, 2022
@workingjubileeworkingjubilee added the A-inline-assembly Area: Inline assembly (`asm!(…)`) label Feb 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-inline-assemblyArea: Inline assembly (`asm!(…)`)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Amanieu@bors@nagisa@rust-highfive@workingjubilee@rustbot