Skip to content

target: support scalable vectors on arm64ec#154984

Closed
davidtwco wants to merge 1 commit intorust-lang:mainfrom
davidtwco:scalable-vectors-arm64ec
Closed

target: support scalable vectors on arm64ec#154984
davidtwco wants to merge 1 commit intorust-lang:mainfrom
davidtwco:scalable-vectors-arm64ec

Conversation

@davidtwco
Copy link
Copy Markdown
Member

This architecture is also AArch64, just with a different ABI, and so supports scalable vectors too.

This is part of what is becoming a series of small PRs which fix CI failures in rust-lang/stdarch#2071 once they reach nightly.

This architecture is also AArch64, just with a different ABI, and so
supports scalable vectors too.
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 8, 2026

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 8, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 8, 2026

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 69 candidates
  • Random selection from 10 candidates

@taiki-e
Copy link
Copy Markdown
Member

taiki-e commented Apr 8, 2026

supports scalable vectors too.

AFAIK, arm64ec doesn't support SVE: #131332 (comment).

@Amanieu
Copy link
Copy Markdown
Member

Amanieu commented Apr 8, 2026

I can confirm that arm64ec doesn't support SVE. The OS only saves the low 128 bits of vector registers, which means that the upper bits could be clobbered at any point from random interrupts. Most likely the OS just disables SVE instructions entirely and makes them unavailable to user mode.

@davidtwco
Copy link
Copy Markdown
Member Author

Oh, I didn't know that. I'll close this and adjust the cfgs on the stdarch side, thanks.

@davidtwco davidtwco closed this Apr 8, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2026
@davidtwco davidtwco deleted the scalable-vectors-arm64ec branch April 8, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-compiler Relevant 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.

5 participants