2004-05-03 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/15618 * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE the same as INTEGER_TYPE. (fold_binary): Fold "bool_var != 0" to bool_var. Fold "bool_var == 1" to bool_var. 2005-05-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/15618 * gcc.dg/tree-ssa/bool-[1-9].c: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99207 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 8 additions, 0 deletionsgcc/ChangeLog
- gcc/fold-const.c 13 additions, 2 deletionsgcc/fold-const.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/tree-ssa/bool-1.c 19 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-1.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-2.c 22 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-2.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-3.c 18 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-3.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-4.c 17 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-4.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-5.c 19 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-5.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-6.c 22 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-6.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-7.c 18 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-7.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-8.c 17 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-8.c
- gcc/testsuite/gcc.dg/tree-ssa/bool-9.c 17 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/bool-9.c
Loading
Please register or sign in to comment