Skip to content

Add x86-64-v2, x86-64-v3, and x86-64-v4 as available target_cpus #82024

Closed

Description

Page 14 of the 2020-08-31 version of the AMD64 supplement to the System V ABI defines new microarchitecture levels that bundle instruction set extensions: x86-64-v2, x86-64-v3, and x86-64-v4. According to a Red Hat blog post, LLVM 12 will support these.

rustc should support these as target_cpu values, enable the right target_features, and pass them appropriately to LLVM.

Internals thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.O-x86_64Target: x86-64 processors (like x86_64-*)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions