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 rtl-optimization/57829] Wrong constant folding


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57829

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jul  8 08:11:08 2013
New Revision: 200768

URL: http://gcc.gnu.org/viewcvs?rev=200768&root=gcc&view=rev
Log:
    PR rtl-optimization/57829
    * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
    mask bits outside of mode are just sign-extension from mode to HWI.

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

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr57829.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/simplify-rtx.c
    trunk/gcc/testsuite/ChangeLog

Author: jakub
Date: Mon Jul  8 08:15:01 2013
New Revision: 200770

URL: http://gcc.gnu.org/viewcvs?rev=200770&root=gcc&view=rev
Log:
    PR rtl-optimization/57829
    * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
    mask bits outside of mode are just sign-extension from mode to HWI.

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

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr57829.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/simplify-rtx.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

Author: jakub
Date: Mon Jul  8 08:17:35 2013
New Revision: 200773

URL: http://gcc.gnu.org/viewcvs?rev=200773&root=gcc&view=rev
Log:
    PR rtl-optimization/57829
    * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
    mask bits outside of mode are just sign-extension from mode to HWI.

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

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/execute/pr57829.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/simplify-rtx.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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