Commit 80d3dd38 by Kai Tietz Committed by Kai Tietz

tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.

2011-07-01  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.

2011-07-01  Kai Tietz  <ktietz@redhat.com>

        * gcc.dg/tree-ssa/bitwise-sink.c: New test.

From-SVN: r175752
parent 179fc656
2011-07-01 Kai Tietz <ktietz@redhat.com>
* tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5. * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
......
2011-07-01 Kai Tietz <ktietz@redhat.com>
* gcc.dg/tree-ssa/bitwise-sink.c: New test.
2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libmudflap/49549 PR libmudflap/49549
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int
foo (_Bool x)
{
return (x ^ 1);
}
/* { dg-final { scan-tree-dump-times "x\[^ \]* \\^ 1" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
...@@ -1675,7 +1675,7 @@ simplify_bitwise_binary (gimple_stmt_iterator *gsi) ...@@ -1675,7 +1675,7 @@ simplify_bitwise_binary (gimple_stmt_iterator *gsi)
/* Try to fold (type) X op CST -> (type) (X op ((type-x) CST)). */ /* Try to fold (type) X op CST -> (type) (X op ((type-x) CST)). */
if (TREE_CODE (arg2) == INTEGER_CST if (TREE_CODE (arg2) == INTEGER_CST
&& CONVERT_EXPR_CODE_P (def1_code) && CONVERT_EXPR_CODE_P (def1_code)
&& INTEGRAL_TYPE_P (def1_arg1) && INTEGRAL_TYPE_P (TREE_TYPE (def1_arg1))
&& int_fits_type_p (arg2, TREE_TYPE (def1_arg1))) && int_fits_type_p (arg2, TREE_TYPE (def1_arg1)))
{ {
gimple newop; gimple newop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment