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

[LoongArch] Override LoongArchTargetLowering::getExtendForAtomicCmpSwapArg #83656

Merged
merged 1 commit into from
Mar 4, 2024

Commits on Mar 2, 2024

  1. [LoongArch] Override LoongArchTargetLowering::getExtendForAtomicCmpSw…

    …apArg
    
    This patch aims to solve Firefox issue:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1882301
    
    Similar to 616289e. Currently LoongArch uses an ll.[wd]/sc.[wd]
    loop for ATOMIC_CMP_XCHG. Because the comparison in the loop is
    full-width (i.e. the `bne` instruction), we must sign extend the input
    comparsion argument.
    
    Note that LoongArch ISA manual V1.1 has introduced compare-and-swap
    instructions. We would change the implementation (return `ANY_EXTEND`)
    when we support them.
    SixWeining committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    7e5126d View commit details
    Browse the repository at this point in the history