https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69802
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Feb 16 09:12:37 2016 New Revision: 233446 URL: https://gcc.gnu.org/viewcvs?rev=233446&root=gcc&view=rev Log: 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: trunk/gcc/testsuite/gcc.dg/pr69802.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-reassoc.c