https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69802
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:30:40 2016 New Revision: 234550 URL: https://gcc.gnu.org/viewcvs?rev=234550&root=gcc&view=rev Log: Backported from mainline 2016-02-16 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/69802 * tree-ssa-reassoc.c (update_range_test): If op is SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive op == 1 test of precision 1 integral op, otherwise handle that case as op itself. Fix up formatting. (optimize_range_tests_to_bit_test, optimize_range_tests): Fix up formatting. * gcc.dg/pr69802.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr69802.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/tree-ssa-reassoc.c