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/71554] Miscompilation of __builtin_mul_overflow on i686


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 16 10:38:21 2016
New Revision: 237520

URL: https://gcc.gnu.org/viewcvs?rev=237520&root=gcc&view=rev
Log:
        PR target/71554
        * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
        (setcc + and peephole2): Likewise.

        * gcc.c-torture/execute/pr71554.c: New test.

        Backported from mainline
        2015-04-29  Uros Bizjak  <ubizjak@gmail.com>

        * config/i386/i386.md (setcc+movzbl peephole2): Check also clobbered
        reg.
        (setcc+andl peephole2): Ditto.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr71554.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/i386/i386.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]