Skip to content

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

Merged
taiki-e merged 1 commit intomainfrom
cmpxchg16b
Mar 9, 2024
Merged

x86_64: Support run-time detection for cmpxchg16b on pre-1.69 rustc#154
taiki-e merged 1 commit intomainfrom
cmpxchg16b

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
@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