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/71245] std::atomic<double> load/store bounces the data to the stack using fild/fistp


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

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Sun May 29 20:50:32 2016
New Revision: 236863

URL: https://gcc.gnu.org/viewcvs?rev=236863&root=gcc&view=rev
Log:
        PR target/71245
        * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
        New peepholes to remove unneeded fild/fistp pairs.
        (define_peephole2 atomic_loaddi_fpu): Ditto.

testsuite/ChangeLog:

        PR target/71245
        * gcc.target/i386/pr71245-1.c: New test.
        * gcc.target/i386/pr71245-2.c: Ditto.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr71245-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr71245-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sync.md
    trunk/gcc/testsuite/ChangeLog

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