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

x86_64: Support run-time detection for cmpxchg16b on pre-1.69 rustc #154

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Mar 9, 2024

Unlike AArch64 and RISC-V, x86's assembler doesn't check instruction requirements for the currently enabled target features. In the first place, there is no option in the x86 assembly for such case, like ARM .arch_extension, RISC-V .option arch, PowerPC .machine, etc.
(However, we set target_feature(enable) when available (Rust 1.69+) in case a new codegen backend is added that checks for it in the future, or an option is added to the assembler to check for it.)

@taiki-e taiki-e added the O-x86 Target: x86/x64 processors label Mar 9, 2024
@taiki-e taiki-e merged commit cf87e37 into main Mar 9, 2024
98 checks passed
@taiki-e taiki-e deleted the cmpxchg16b branch March 9, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-x86 Target: x86/x64 processors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant