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

ABI checks: add support for loongarch #133249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 24, 2024

  1. ABI checks: add support for loongarch

    LoongArch psABI[^1] specifies that LSX vector types are passed via general-purpose
    registers, while LASX vector types are passed indirectly through the stack.
    
    This patch addresses the following warnings:
    
    ```
    warning: this function call uses a SIMD vector type that is not currently supported with the chosen ABI
        --> .../library/core/src/../../stdarch/crates/core_arch/src/loongarch64/lsx/generated.rs:3695:5
         |
    3695 |     __lsx_vreplgr2vr_b(a)
         |     ^^^^^^^^^^^^^^^^^^^^^ function called here
         |
         = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
         = note: for more information, see issue rust-lang#116558 <rust-lang#116558>
         = note: `#[warn(abi_unsupported_vector_types)]` on by default
    ```
    
    [^1]: https://github.com/loongson/la-abi-specs/blob/release/lapcs.adoc
    heiher committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    3faef27 View commit details
    Browse the repository at this point in the history