re PR target/80706 (peephole2 uses uninitialized stack variables on i686)
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 11 May 2017 18:12:25 +0000 (20:12 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 11 May 2017 18:12:25 +0000 (20:12 +0200)
commit7c85c9fec43464462528c5ecfb22af8505d85431
tree8c7b6995b18dbaa39263a5ac7171cc0c6840be48
parentd7a33a4cb02589a3f336ae831e67c8981ab24b4f
re PR target/80706 (peephole2 uses uninitialized stack variables on i686)

PR target/80706
* config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
(UNSPEC_STX_ATOMIC): Ditto.
(loaddi_via_sse): New insn.
(storedi_via_sse): Ditto.
(atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
Update corresponding peephole2 patterns.
(atomic_storedi_fpu): Ditto.

testsuite/ChangeLog:

PR target/80706
* gcc.target/i386/pr80706.c: New test.

From-SVN: r247921
gcc/ChangeLog
gcc/config/i386/sync.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr80706.c [new file with mode: 0644]