Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update stdarch #105784

Merged
merged 3 commits into from
Jan 27, 2023
Merged

update stdarch #105784

merged 3 commits into from
Jan 27, 2023

Conversation

yanns
Copy link
Contributor

@yanns yanns commented Dec 16, 2022

This will allow using miri on simd instructions
rust-lang/stdarch#1347 (comment)

@rustbot
Copy link
Collaborator

rustbot commented Dec 16, 2022

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon.

Please see the contribution instructions for more information.

@rustbot
Copy link
Collaborator

rustbot commented Dec 16, 2022

⚠️ Warning ⚠️

  • These commits modify submodules.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Dec 16, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 16, 2022

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@Amanieu
Copy link
Member

Amanieu commented Dec 16, 2022

cc @calebzulawski Any idea why this is failing? I would have thought your PR #103750 makes this work.

@calebzulawski
Copy link
Member

It looks like std is built with the beta compiler, which doesn't have those changes yet

@Amanieu
Copy link
Member

Amanieu commented Dec 16, 2022

The beta compiler should have been updated just last week though, so I would expect it to include these changes.

@Amanieu Amanieu self-assigned this Dec 16, 2022
@calebzulawski
Copy link
Member

The log shows downloading the beta compiler from Nov 1, that sounds like 1.66 rather than 1.67

@Amanieu
Copy link
Member

Amanieu commented Dec 16, 2022

Blocked on #105741.

@Amanieu Amanieu added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 16, 2022
@rust-log-analyzer

This comment has been minimized.

@Amanieu
Copy link
Member

Amanieu commented Dec 29, 2022

#105741 is now merged, can you rebase?

This will allow using miri on simd instructions
rust-lang/stdarch#1347 (comment)
@rust-log-analyzer

This comment has been minimized.

@yanns
Copy link
Contributor Author

yanns commented Dec 30, 2022

@Amanieu Do you have an idea why it is failing? Can I help somehow?

@calebzulawski
Copy link
Member

Those errors are due to changes from #100752. Some feature names have been deprecated in the is_x86_feature_detected macro. I added allow(deprecated) to the tests that use the old names, though...

@calebzulawski
Copy link
Member

calebzulawski commented Jan 4, 2023

Ah actually, as part of this update, this file needs to change too:

println!("avx512gfni: {:?}", is_x86_feature_detected!("avx512gfni"));
println!("avx512vaes: {:?}", is_x86_feature_detected!("avx512vaes"));
println!("avx512vpclmulqdq: {:?}", is_x86_feature_detected!("avx512vpclmulqdq"));

avx512gfni, avx512vaes, and avx512vpclmulqdq should all have the avx512 prefix removed.

@yanns
Copy link
Contributor Author

yanns commented Jan 26, 2023

@calebzulawski thanks for the help. The CI checks are passing now.

@Amanieu
Copy link
Member

Amanieu commented Jan 26, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jan 26, 2023

📌 Commit 2e8162a has been approved by Amanieu

It is now in the queue for this repository.

@bors bors removed the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Jan 26, 2023
@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 26, 2023
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 27, 2023
update stdarch

This will allow using miri on simd instructions
rust-lang/stdarch#1347 (comment)
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2023
Rollup of 8 pull requests

Successful merges:

 - rust-lang#105784 (update stdarch)
 - rust-lang#106856 (core: Support variety of atomic widths in width-agnostic functions)
 - rust-lang#107171 (rustc_metadata: Fix `encode_attrs`)
 - rust-lang#107242 (rustdoc: make item links consistently use `title="{shortty} {path}"`)
 - rust-lang#107279 (Use new solver during selection)
 - rust-lang#107284 (rustdoc: use smarter encoding for playground URL)
 - rust-lang#107325 (rustdoc: Stop using `HirId`s)
 - rust-lang#107336 (rustdoc: remove mostly-unused CSS classes `import-item` and `module-item`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 4b4aeae into rust-lang:master Jan 27, 2023
@rustbot rustbot added this to the 1.69.0 milestone Jan 27, 2023
@yanns yanns deleted the update_stdarch branch January 27, 2023 09:33
bors bot added a commit to taiki-e/portable-atomic that referenced this pull request Feb 11, 2023
76: detect: Workaround Exynos 9810 bug on aarch64 Android r=taiki-e a=taiki-e

Samsung Exynos 9810 has a bug that big and little cores have different ISAs. And on older Android (pre-9), the kernel incorrectly reports that features available only on some cores are available on all cores.

See https://reviews.llvm.org/D114523 for details.

Our own run-time detection code has not been released yet and is not a problem, but portable-atomic < 1.1 may have been affected by this issue since rustc 1.69-nightly when is_aarch64_feature_detected supported run-time detection on Android. (rust-lang/stdarch#1351, rust-lang/rust#105784)

A patch on stdarch side: rust-lang/stdarch#1378

Co-authored-by: Taiki Endo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants