Skip to content

Reimplement _xgetbv with inline assembly #333

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
Feb 27, 2018

Conversation

alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented Feb 27, 2018

Looks like LLVM 3.9 doesn't have the intrinsic, and this implementation is
modeled after clang's.

Looks like LLVM 6 may have removed the intrinsic, and this implementation is
modeled after clang's.
Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

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

LGTM

@alexcrichton alexcrichton merged commit d0a6c2c into rust-lang:master Feb 27, 2018
@alexcrichton alexcrichton deleted the reimplement-xgetbv branch February 27, 2018 13:52
sadlerap added a commit to sadlerap/stdarch that referenced this pull request Nov 24, 2020
`_xgetbv` was reimplemented to use inline assembly in rust-lang#333 since LLVM
3.9 didn't export the intrinsic we needed to use.  LLVM 4.0 has since
rectified that issue, and since rust's minimum supported version of LLVM
is 8.0, this change can be reverted.
Amanieu pushed a commit that referenced this pull request Nov 24, 2020
`_xgetbv` was reimplemented to use inline assembly in #333 since LLVM
3.9 didn't export the intrinsic we needed to use.  LLVM 4.0 has since
rectified that issue, and since rust's minimum supported version of LLVM
is 8.0, this change can be reverted.
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.

2 participants