re PR tree-optimization/54810 (VRP doesn't handle comparison of narrowing cast…
re PR tree-optimization/54810 (VRP doesn't handle comparison of narrowing cast like comparison of BIT_AND_EXPR) PR tree-optimization/54810 * tree-vrp.c (register_edge_assert_for_2): Handle NAME = (unsigned) NAME2; if (NAME cmp CST) for narrowing casts to unsigned integral type like NAME = NAME2 & CST2; if (NAME cmp CST) where CST2 is the max value of the unsigned integral type. * gcc.dg/tree-ssa/vrp85.c: New test. From-SVN: r192115
Showing
gcc/testsuite/gcc.dg/tree-ssa/vrp85.c
0 → 100644
Please
register
or
sign in
to comment