This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/69875] [4.9/5 Regression] Wrong barrier placement for 64-bit atomic loads on arm


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69875

--- Comment #4 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Mar 29 13:28:34 2016
New Revision: 234521

URL: https://gcc.gnu.org/viewcvs?rev=234521&root=gcc&view=rev
Log:
[ARM][5 Backport] PR target/69875 Fix atomic_loaddi expansion

        PR target/69875
        * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
        * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
        * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
        (atomic_loaddi_1): Delete.
        (atomic_loaddi): Rewrite expander using the above changes.

        * gcc.target/arm/atomic_loaddi_acquire.x: New file.
        * gcc.target/arm/atomic_loaddi_relaxed.x: Likewise.
        * gcc.target/arm/atomic_loaddi_seq_cst.x: Likewise.
        * gcc.target/arm/atomic_loaddi_1.c: New test.
        * gcc.target/arm/atomic_loaddi_2.c: Likewise.
        * gcc.target/arm/atomic_loaddi_3.c: Likewise.
        * gcc.target/arm/atomic_loaddi_4.c: Likewise.
        * gcc.target/arm/atomic_loaddi_5.c: Likewise.
        * gcc.target/arm/atomic_loaddi_6.c: Likewise.
        * gcc.target/arm/atomic_loaddi_7.c: Likewise.
        * gcc.target/arm/atomic_loaddi_8.c: Likewise.
        * gcc.target/arm/atomic_loaddi_9.c: Likewise.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_1.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_2.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_3.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_4.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_5.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_6.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_7.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_8.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_9.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_acquire.x
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_relaxed.x
    branches/gcc-5-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_seq_cst.x
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/arm/arm.h
    branches/gcc-5-branch/gcc/config/arm/sync.md
    branches/gcc-5-branch/gcc/config/arm/unspecs.md
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]