[Bug target/69875] [4.9/5 Regression] Wrong barrier placement for 64-bit atomic loads on arm
ktkachov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 29 13:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69875
--- Comment #5 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Mar 29 13:32:37 2016
New Revision: 234522
URL: https://gcc.gnu.org/viewcvs?rev=234522&root=gcc&view=rev
Log:
[ARM][4.9 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-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_1.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_2.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_3.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_4.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_5.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_6.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_7.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_8.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_9.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_acquire.x
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_relaxed.x
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/arm/atomic_loaddi_seq_cst.x
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/arm/arm.h
branches/gcc-4_9-branch/gcc/config/arm/sync.md
branches/gcc-4_9-branch/gcc/config/arm/unspecs.md
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list