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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 14 08:26:26 2017
New Revision: 245420

URL: https://gcc.gnu.org/viewcvs?rev=245420&root=gcc&view=rev
Log:
        PR tree-optimization/79408
        * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
        case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
        (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
        also if rhs1 is INTEGER_CST.

        * gcc.dg/tree-ssa/pr79408-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79408-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c

Reply via email to