Skip to content

Allow llvm.x86.sse2.pause instrinsic to be called without SSE2 #3393

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

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Allow llvm.x86.sse2.pause instrinsic to be called without SSE2 #3393

merged 1 commit into from
Mar 21, 2024

Conversation

eduardosm
Copy link
Contributor

The instrinsic is compiled to a pause instruction, which behaves like a no-op when SSE2 is not available.

https://www.felixcloutier.com/x86/pause.html

@eduardosm
Copy link
Contributor Author

This probably had regressed with #3180

// SSSE3 implicitly enables SSE3
//@compile-flags: -C target-feature=-sse2
Copy link
Member

Choose a reason for hiding this comment

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

What's the connection between the comment and the line that follows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy-paste leftover

The instrinsic is compiled to a `pause` instruction, which behaves like a no-op when SSE2 is not available.

https://www.felixcloutier.com/x86/pause.html
@RalfJung
Copy link
Member

Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Mar 21, 2024

📌 Commit d086522 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Mar 21, 2024

⌛ Testing commit d086522 with merge 862915a...

@bors
Copy link
Contributor

bors commented Mar 21, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 862915a to master...

@bors bors merged commit 862915a into rust-lang:master Mar 21, 2024
@eduardosm eduardosm deleted the x86-pause-without-sse2 branch March 21, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants