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 tree-optimization/60930] [4.8/4.9/4.10 Regression] Wrong folding of - ((unsigned long long) a * (unsigned long long) (unsigned int)-1)


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

--- Comment #13 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Fri May  2 21:49:26 2014
New Revision: 210020

URL: http://gcc.gnu.org/viewcvs?rev=210020&root=gcc&view=rev
Log:
[gcc]

2014-05-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR tree-optimization/60930
    * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
    creating a multiply candidate by folding two constant
    multiplicands when the result overflows.

[gcc/testsuite]

2014-05-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

    PR tree-optimization/60930
    * gcc.dg/torture/pr60930.c:  New test.



Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr60930.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/gimple-ssa-strength-reduction.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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