This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/57829] Wrong constant folding
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Jul 2013 08:51:27 +0000
- Subject: [Bug rtl-optimization/57829] Wrong constant folding
- Auto-submitted: auto-generated
- References: <bug-57829-4 at http dot gcc dot gnu dot org/bugzilla/>
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